Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.44 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.44 KB

Deploy

Developer Deployment

You can deploy yourself a stack into the development account using the following steps! Alternatively you can use the Developer Environment Deployment Tool.

SAM Config

Modify and add the following snippet into deploy/samconfig.toml. The defines all the parameters that will be used by the sam deploy command we'll be using shortly.

[dev-<your-name>.deploy.parameters]
stack_name = "<your-name>-core-back-stack"
s3_bucket = "aws-sam-cli-managed-default-samclisourcebucket-ec647gpjuo2w"
s3_prefix = "<your-name>-core-back-stack"
region = "eu-west-2"
capabilities = "CAPABILITY_IAM"
parameter_overrides = "Environment=\"dev-<your-name>\""

SAM Build

sam build will convert the template.yaml and build all the lambdas ready to be uploaded to S3 during the deployment phase

gds aws di-ipv-dev -- sam build -t template.yaml

SAM Deploy

sam deploy will upload the artifacts built during the sam build phase. It'll then create a changeset and deploy any changes into AWS.

gds aws di-ipv-dev -- sam deploy --config-file samconfig.toml --config-env dev-<your-name>