Skip to content

Commit 12d153f

Browse files
authored
Merge pull request #39 from redpanda-data/paulz/fix-cross-region-pl-perm
Bug fix: fix the issue that vpce:AllowMultiRegion can not be tied to specific resources
2 parents f0566b2 + 02702e3 commit 12d153f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

iam_redpanda_agent.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,6 @@ data "aws_iam_policy_document" "redpanda_agent_private_link" {
979979
"ec2:RejectVpcEndpointConnections",
980980
"ec2:StartVpcEndpointServicePrivateDnsVerification",
981981
"ec2:DescribeVpcEndpointServicePermissions",
982-
"ec2:VpceSupportedRegion",
983-
"vpce:AllowMultiRegion",
984982
]
985983
dynamic "condition" {
986984
for_each = var.condition_tags
@@ -999,6 +997,18 @@ data "aws_iam_policy_document" "redpanda_agent_private_link" {
999997
]
1000998
}
1001999

1000+
statement {
1001+
effect = "Allow"
1002+
actions = [
1003+
"vpce:AllowMultiRegion",
1004+
]
1005+
resources = [
1006+
# the ID of the VPC endpoint service is not known until after the cluster has been created and does not support
1007+
# user specification of the id or an id prefix
1008+
"arn:aws:ec2:${var.region}:${local.aws_account_id}:vpc-endpoint-service/*"
1009+
]
1010+
}
1011+
10021012
statement {
10031013
effect = "Allow"
10041014
actions = [

0 commit comments

Comments
 (0)