Skip to content

Commit

Permalink
Add region to all the terraform jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Nov 15, 2024
1 parent d1a5fd2 commit f6f65bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- name: Terraform validation
run: terraform validate
Expand All @@ -66,13 +67,15 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- name: Terraform apply
if: github.ref == 'refs/heads/develop'
run: terraform apply stage-cd.plan
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- if: ${{ always() }}
run: rm stage-cd.plan || true
Expand All @@ -96,12 +99,14 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- name: Terraform validation
run: terraform validate
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- name: Terraform plan
run: terraform plan -var-file=integration.tfvars -out integration.plan
Expand All @@ -116,6 +121,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"

- if: ${{ always() }}
run: rm integration.plan || true
8 changes: 4 additions & 4 deletions frontend/integration.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REACT_APP_USER_POOL_CLIENT_ID=6qseah01b4vse02srrpra2u350
REACT_APP_TERMS_VERSION=1
REACT_APP_COOKIE_DOMAIN=integration.crossfeed.cyber.dhs.gov
REACT_APP_TOTP_ISSUER=CISA Integration Crossfeed
REACT_APP_COGNITO_DOMAIN=crossfeed-prod-okta-idp.auth-fips.us-gov-west-1.amazoncognito.com
REACT_APP_COGNITO_CLIENT_ID=1nacnjc6sejbala9uf97eeq9o1
REACT_APP_COGNITO_USER_POOL_ID=u
REACT_APP_COGNITO_CALLBACK_URL=https://integration.crossfeed.cyber.dhs.gov/okta-callback
REACT_APP_COGNITO_DOMAIN=https://crossfeed-integration-okta-idp.auth.us-east-1.amazoncognito.com
REACT_APP_COGNITO_CLIENT_ID=6pohrlhoa20675c0rds6tcsk62
REACT_APP_COGNITO_USER_POOL_ID=us-east-1_AuTPyIYDK
REACT_APP_COGNITO_CALLBACK_URL=https://integration.crossfeed.cyber.dhs.gov/okta-callback

0 comments on commit f6f65bf

Please sign in to comment.