diff --git a/.github/workflows/environment-test.yaml b/.github/workflows/environment-test.yaml deleted file mode 100644 index 311361cb..00000000 --- a/.github/workflows/environment-test.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: Environment Test - -on: - pull_request: {} - push: - branches: - - main - -permissions: - id-token: write - contents: read - pull-requests: write - -jobs: - envtesr: - name: Environment Test - runs-on: ubuntu-latest - environment: main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout code - uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 - - name: Configure AWS Access - uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 - with: - role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/GitHubAction-Wildsea - role-session-name: GitHubTest - aws-region: ${{ vars.AWS_REGION }} - - name: terraform plan - uses: dflook/terraform-plan@d9df4f6c2484e709ba7ffaa16c98a6906f4760cd - with: - path: terraform/environment/github - variables: | - aws_account="${{ vars.AWS_ACCOUNT }}" - aws_region="${{ vars.AWS_REGION }}" - state_bucket="${{ vars.STATE_BUCKET }}" - environment="${{ vars.ENVIRONMENT }}" - backend_config: - state_bucket="${{ vars.STATE_BUCKET }}" - environment="${{ vars.ENVIRONMENT }}" diff --git a/terraform/environment/github/main.tf b/terraform/environment/github/main.tf index 31e655c2..df6c91f5 100644 --- a/terraform/environment/github/main.tf +++ b/terraform/environment/github/main.tf @@ -24,6 +24,7 @@ variable "environment" { terraform { backend "s3" { + // bucket and key come from -backend-config region = var.aws_region } }