diff --git a/.github/workflows/deploy-opentofu.yml b/.github/workflows/deploy-opentofu.yml index b4f4c00..59ec639 100644 --- a/.github/workflows/deploy-opentofu.yml +++ b/.github/workflows/deploy-opentofu.yml @@ -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 @@ -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 @@ -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