Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Approve production TF plans before deployment #370

Merged
merged 16 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
proxy.golang.org:443
sum.golang.org:443
raw.githubusercontent.com:443
storage.googleapis.com:443
- name: Restore Go build sources
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -230,6 +231,7 @@ jobs:
proxy.golang.org:443
sum.golang.org:443
raw.githubusercontent.com:443
storage.googleapis.com:443
- name: Restore Go build sources
uses: actions/download-artifact@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
tf-validate-output: ${{ needs.tf-plan.outputs.validate-output }}

tf-apply:
name: Deploy to Staging
name: Deploy to Production
needs:
- build-lambdas
- aws-auth
Expand All @@ -98,6 +98,7 @@ jobs:
aws-region: us-west-2
concurrency-group: run_terraform-production
tf-backend-config-file: production.s3.tfbackend
environment-name: production
secrets:
aws-access-key-id: ${{ needs.aws-auth.outputs.aws-access-key-id }}
aws-secret-access-key: ${{ needs.aws-auth.outputs.aws-secret-access-key }}
Expand All @@ -106,7 +107,7 @@ jobs:
datadog-app-key: ${{ secrets.DATADOG_APP_KEY }}
gpg-passphrase: ${{ secrets.PRODUCTION_GPG_PASSPHRASE }}

update_release:
update-release:
name: Update release
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
aws-region: us-west-2
concurrency-group: run_terraform-staging
tf-backend-config-file: staging.s3.tfbackend
environment-name: staging
secrets:
aws-access-key-id: ${{ needs.aws-auth.outputs.aws-access-key-id }}
aws-secret-access-key: ${{ needs.aws-auth.outputs.aws-secret-access-key }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
objects.githubusercontent.com:443
proxy.golang.org:443
sum.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
Expand Down Expand Up @@ -68,6 +69,7 @@ jobs:
objects.githubusercontent.com:443
proxy.golang.org:443
sum.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
github.com:443
proxy.golang.org:443
sum.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
Expand All @@ -133,6 +136,7 @@ jobs:
github.com:443
proxy.golang.org:443
sum.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
Expand Down Expand Up @@ -163,6 +167,7 @@ jobs:
objects.githubusercontent.com:443
proxy.golang.org:443
sum.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ on:
tf-plan-artifacts-key:
type: string
required: true
tf-backend-config-file:
type: string
required: true
aws-region:
type: string
required: true
tf-backend-config-file:
environment-name:
type: string
required: true
concurrency-group:
Expand Down Expand Up @@ -55,6 +58,7 @@ jobs:
TF_IN_AUTOMATION: "true"
TF_INPUT: 0
TF_PLUGIN_CACHE_DIR: ~/.terraform.d/plugin-cache
environment: ${{ inputs.environment-name }}
concurrency:
group: ${{ inputs.concurrency-group }}
cancel-in-progress: false
Expand Down