Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DBTP-1435 Allow environment pipeline to update assume role policy on shared s3 role #250

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

tony-griffin
Copy link
Contributor

@tony-griffin tony-griffin commented Oct 18, 2024

Addresses issue:DBTP-1435

  • We've tested this by following the steps to reproduce on the ticket

"iam:UpdateAssumeRolePolicy"
]
resources = [for environment in local.environment_config : "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.application}-${environment.name}-shared-S3MigrationRole"]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comes out like this for demodjango-main-environment-pipeline...

{
    "Action": "iam:UpdateAssumeRolePolicy",
    "Effect": "Allow",
    "Resource": [
        "arn:aws:iam::<aws_account_number>:role/demodjango-staging-shared-S3MigrationRole",
        "arn:aws:iam::<aws_account_number>:role/demodjango-dev-shared-S3MigrationRole"
    ],
    "Sid": "AllowUpdatingSharedS3MigrationRoleTrustPolicy"
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't included tests for this at this stage for the reasons mentioned in a Slack thread I've just started in our channel.

@tony-griffin tony-griffin merged commit e9e12dd into main Oct 18, 2024
16 checks passed
@tony-griffin tony-griffin deleted the dbtp-1435-fix-env-pipeline-permissions branch October 18, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants