From cf20db87fcfab34e1a56907ed7f19b10a74a539f Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Thu, 9 Mar 2023 20:40:20 +0000 Subject: [PATCH] Prod deploy --- .circleci/config.yml | 24 ++++++++++++++++++++++++ samconfig.toml | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 814bec8..386e358 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 ] } } diff --git a/samconfig.toml b/samconfig.toml index 90afbcd..ae7cc56 100644 --- a/samconfig.toml +++ b/samconfig.toml @@ -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"