Skip to content

Commit

Permalink
Merge pull request #73 from nimh-dsst/make-deployment-changes
Browse files Browse the repository at this point in the history
some final troubleshooting for deployment
  • Loading branch information
leej3 authored Nov 1, 2024
2 parents b89e408 + 90148eb commit 06a6cb1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/deploy-opentofu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ on:
type: choice
options:
- staging
- production
aws_region:
description: 'AWS region'
type: string
required: false
default: 'us-east-1'
- production
pull_request:
branches:
- main
Expand Down Expand Up @@ -69,8 +64,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ inputs.aws_region }}
role-to-assume: arn:aws:iam::${{ env.TF_VAR_AWS_ACCOUNT_ID }}:role/github-actions-role-shared
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role-shared

- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
Expand Down Expand Up @@ -105,8 +100,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ inputs.aws_region }}
role-to-assume: arn:aws:iam::${{ env.TF_VAR_AWS_ACCOUNT_ID }}:role/github-actions-role-shared
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role-shared

- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
Expand Down

0 comments on commit 06a6cb1

Please sign in to comment.