Architect makes deploying AWS CloudFormation “stacks” painless.
🧑🏫 CloudFormation stack identifiers are created from the name specified in the
@apppragma and are unique to an AWS region. Changing the project name or region will create a new CF stack.
Deploy a CloudFormation template to a
Protip: create arbitrary named staging environments with
arc deploy --name [your name]
Deploy a CloudFormation template to an identical
arc deploy --production
Rather than deploying the entire stack with CloudFormation you can quickly deploy code for one function by supplying a path.
arc deploy --direct path/to/code
Combine with the
--production flag to update one function to the production stack.
Sometimes you need to just update the frontend.
arc deploy --static
If your machine has an AWS credentials file (
~/.aws/credentials) but you would like to override those credentials using environment variables, you must also set
ARC_AWS_CREDS=env. For example:
ARC_AWS_CREDS=env AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... arc deploy --production