Skip to content

Commit

Permalink
Prod deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Mar 9, 2023
1 parent 883bc93 commit cf20db8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ workflows:
context: [ deployment-development-ec-postcode-lookup ]
filters: { branches: { only: [ main, master ] } }


- sam_deploy:
name: sam_deploy_staging
dc-environment: staging
Expand All @@ -222,3 +223,26 @@ workflows:
- static_deploy_staging
context: [ deployment-staging-ec-postcode-lookup ]
filters: { branches: { only: [ main, master ] } }


- sam_deploy:
name: sam_deploy_production
dc-environment: production
requires:
- smoke_test_staging
context: [ deployment-production-ec-postcode-lookup ]
filters: { branches: { only: [ main, master ] } }
- static_deploy:
name: static_deploy_production
dc-environment: production
requires:
- sam_deploy_production
context: [ deployment-production-ec-postcode-lookup ]
filters: { branches: { only: [ main, master ] } }
- smoke_test:
name: smoke_test_production
dc-environment: production
requires:
- static_deploy_production
context: [ deployment-production-ec-postcode-lookup ]
filters: { branches: { only: [ main, master ] } }
21 changes: 21 additions & 0 deletions samconfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,24 @@ force_upload = true
stack_name = "ec-postcode-lookup-staging"
name = "ECPostcodeLookupFunction"
region = "eu-west-2"

[production]
[production.deploy]
[production.deploy.parameters]
stack_name = "ec-postcode-lookup-production"
s3_bucket = "aws-sam-cli-ec-postcode-lookup-production-mw1tdi3jmooz"
s3_prefix = "ec-postcode-lookup-production"
region = "eu-west-2"
capabilities = "CAPABILITY_NAMED_IAM"

confirm_changeset = false
tags = "dc-product=\"ec-postcode-lookup\" dc-environment=\"production\""
progressbar = false
fail_on_empty_changeset = false
force_upload = true

[production.logs]
[production.logs.parameters]
stack_name = "ec-postcode-lookup-production"
name = "ECPostcodeLookupFunction"
region = "eu-west-2"

0 comments on commit cf20db8

Please sign in to comment.