Skip to content

Commit 9d608c0

Browse files
committed
OCPBUGS-31017: aws: add ec2:DisassociateAddress permission
When publish == "External", the bootstrap VM will be assigned an EIP. During bootstrap destroy, the `terraform-provider-aws` code might call `DisassociateAddress` on the EIP before deleting the instance.
1 parent 911203d commit 9d608c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/asset/installconfig/aws/permissions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ var permissions = map[PermissionGroup][]string{
232232
"ec2:DeleteVpc",
233233
"ec2:DeleteVpcEndpoints",
234234
"ec2:DetachInternetGateway",
235+
// Needed by terraform when EIPs are created
236+
"ec2:DisassociateAddress",
235237
"ec2:DisassociateRouteTable",
236238
"ec2:ReleaseAddress",
237239
"ec2:ReplaceRouteTableAssociation",

0 commit comments

Comments
 (0)