Skip to content

Commit

Permalink
feat: add iam policy for aws vpc peering (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Nelson <[email protected]>
  • Loading branch information
ciiiii and illegalnumbers authored Oct 9, 2023
1 parent 44c9ca7 commit b67eeae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions modules/aws/files/bootstrap_role_iam_policy.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
"ec2:CreateSubnet",
"ec2:CreateTags",
"ec2:CreateVpcEndpoint",
"ec2:DescribeVpcPeeringConnections",
"ec2:CreateVpcPeeringConnection",
"ec2:DeleteVpcPeeringConnection",
"ec2:Detach*",
"ec2:Release*",
"ec2:Revoke*",
Expand All @@ -244,6 +247,22 @@
}
}
},
{
"Sid": "AcceptVpcPeering",
"Effect": "Allow",
"Action": [
"ec2:AcceptVpcPeeringConnection"
],
"Resource": "*"
},
{
"Sid": "EndpointConnectionAccess",
"Effect": "Allow",
"Action": [
"ec2:*VpcEndpointConnections"
],
"Resource": "*"
}
{
"Sid": "SSMStop",
"Effect": "Allow",
Expand Down
2 changes: 1 addition & 1 deletion modules/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

variable "sn_policy_version" {
description = "The value of SNVersion tag"
default = "3.4.0" # x-release-please-version
default = "3.6.0" # x-release-please-version
type = string
}

Expand Down

0 comments on commit b67eeae

Please sign in to comment.