Deployment

Architect makes deploying AWS CloudFormation β€œstacks” painless.

πŸ§‘β€πŸ« CloudFormation stack identifiers are created from the name specified in the @app pragma and are unique to an AWS region. Changing the project name or region will create a new CF stack.

Command examples

Deploy to staging

Deploy a CloudFormation template to a staging environment.

arc deploy

Protip: create arbitrary named staging environments with arc deploy --name [your name]

Deploy to production

Deploy a CloudFormation template to an identical production environment.

arc deploy --production

Deploy a function directly

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.

Deploy static assets to S3

Sometimes you need to just update the frontend.

arc deploy --static

Deployment credentials

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