Skip to content

Commit

Permalink
Merge pull request #1461 from alphagov/samsimpson1/amazonmq
Browse files Browse the repository at this point in the history
Grant extra permissions to TFC IAM role
  • Loading branch information
samsimpson1 authored Oct 15, 2024
2 parents 9afe397 + 1049c19 commit f645ad6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/deployments/tfc-aws-config/aws_oidc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ data "aws_iam_policy_document" "tfc_policy" {
"elasticfilesystem:*",
"es:*",
"events:*",
"glue:*",
"iam:*InstanceProfile*",
"iam:*CloudFrontPublicKey*",
"iam:*OpenIDConnectProvider*",
"iam:*Policy",
"iam:*Policies",
"iam:*PolicyVersion*",
"iam:*RolePolicies",
"iam:*RoleTags",
Expand Down Expand Up @@ -111,6 +113,14 @@ data "aws_iam_policy_document" "tfc_policy" {
actions = ["iam:PassRole"]
resources = ["arn:aws:iam::*:role/rds-monitoring-role"]
}
statement {
actions = ["iam:*Role"]
resources = ["arn:aws:iam::*:role/AWSLambdaRole-transition-executor"]
}
statement {
actions = ["iam:*User"]
resources = ["arn:aws:iam::*:user/govuk-*-transition-downloader"]
}
statement {
effect = "Deny"
resources = ["*"]
Expand Down

0 comments on commit f645ad6

Please sign in to comment.