Skip to content

Commit

Permalink
align tf/actions role name
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Jan 15, 2025
1 parent a16ef61 commit 4ef496f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role-shared
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role-etl
aws-region: ${{ secrets.AWS_REGION }}
audience: sts.amazonaws.com

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aws_iam_policy" "cd" {
}

resource "aws_iam_role" "cd" {
name = "${var.cd_iam_role_policy_name}-dsst-${var.environment}"
name = "github-actions-role-etl"
assume_role_policy = templatefile("${path.module}/policies/assume-role.json.tftpl",
{
AWS_ACCOUNT_ID = var.AWS_ACCOUNT_ID
Expand Down

0 comments on commit 4ef496f

Please sign in to comment.