Skip to content

Commit 2f975d5

Browse files
authored
Add ReplaceRoute in ControllersPolicy
AwsCluster stuck at deleting state throwing Error due to missing permission in Controller Policy. its required for https://github.com/AmitSahastra/cluster-api-provider-aws/blob/318413aaded7f7aece86f315af7058bd956ec488/pkg/cloud/services/network/routetables.go#L89 ``` Error : [2] [capa-controller-manager-c754997c6-9nxx8] 1 awscluster_controller.go:209] controller/awscluster "msg"="failed to reconcile network" "error"="failed to replace outdated route on route table \"rtb- ```
1 parent 318413a commit 2f975d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/clusterawsadm/cloudformation/bootstrap/cluster_api_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (t Template) ControllersPolicy() *iamv1.PolicyDocument {
9797
"ec2:DeleteInternetGateway",
9898
"ec2:DeleteNatGateway",
9999
"ec2:DeleteRouteTable",
100+
"ec2:ReplaceRoute",
100101
"ec2:DeleteSecurityGroup",
101102
"ec2:DeleteSubnet",
102103
"ec2:DeleteTags",

0 commit comments

Comments
 (0)