diff --git a/.github/workflows/terraform-apply.yaml b/.github/workflows/terraform-apply.yaml index 47cc0f5..e3a8798 100644 --- a/.github/workflows/terraform-apply.yaml +++ b/.github/workflows/terraform-apply.yaml @@ -33,7 +33,7 @@ jobs: - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v3 with: - role-to-assume: arn:aws:iam::035866691871:role/gha-incubator + role-to-assume: arn:aws:iam::035866691871:role/incubator-tf-apply role-session-name: ghaincubatorsession aws-region: us-west-2 diff --git a/.github/workflows/terraform-plan.yaml b/.github/workflows/terraform-plan.yaml index 216c2b9..d9964cb 100644 --- a/.github/workflows/terraform-plan.yaml +++ b/.github/workflows/terraform-plan.yaml @@ -33,8 +33,8 @@ jobs: - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v3 with: - role-to-assume: arn:aws:iam::035866691871:role/gha-incubator - role-session-name: ghaincubatorplan + role-to-assume: arn:aws:iam::035866691871:role/incubator-tf-plan + role-session-name: incubatortfplan aws-region: us-west-2 - name: Terraform Plan @@ -63,4 +63,5 @@ jobs: output-file: README.md output-method: inject git-push: "true" - git-commit-message: "terraform-docs: automated updates to Terraform modules README.md" \ No newline at end of file + git-commit-message: "terraform-docs: automated updates to Terraform modules README.md" + diff --git a/terraform/cicd.tf b/terraform/cicd.tf index 061183c..abd0acb 100644 --- a/terraform/cicd.tf +++ b/terraform/cicd.tf @@ -43,6 +43,7 @@ resource "aws_iam_policy" "incubator_builder" { "arn:aws:ecs:us-west-2:${data.aws_caller_identity.current.account_id}:service/incubator-prod/*" ] } + ] }) } \ No newline at end of file