@@ -17,7 +17,6 @@ data "aws_iam_policy_document" "aws_gateway_controller" {
1717 }
1818}
1919
20-
2120resource "aws_iam_policy" "aws_gateway_controller" {
2221 count = var. create_role && var. attach_aws_gateway_controller_policy ? 1 : 0
2322
@@ -859,6 +858,7 @@ data "aws_iam_policy_document" "load_balancer_controller" {
859858 " ec2:DescribeCoipPools" ,
860859 " ec2:GetSecurityGroupsForVpc" ,
861860 " ec2:DescribeIpamPools" ,
861+ " ec2:DescribeRouteTables" ,
862862 " elasticloadbalancing:DescribeLoadBalancers" ,
863863 " elasticloadbalancing:DescribeLoadBalancerAttributes" ,
864864 " elasticloadbalancing:DescribeListeners" ,
@@ -903,6 +903,12 @@ data "aws_iam_policy_document" "load_balancer_controller" {
903903 actions = [
904904 " ec2:AuthorizeSecurityGroupIngress" ,
905905 " ec2:RevokeSecurityGroupIngress" ,
906+ ]
907+ resources = [" *" ]
908+ }
909+
910+ statement {
911+ actions = [
906912 " ec2:CreateSecurityGroup" ,
907913 ]
908914 resources = [" *" ]
@@ -962,7 +968,6 @@ data "aws_iam_policy_document" "load_balancer_controller" {
962968
963969 statement {
964970 actions = [
965- " elasticloadbalancing:AddTags" ,
966971 " elasticloadbalancing:CreateLoadBalancer" ,
967972 " elasticloadbalancing:CreateTargetGroup" ,
968973 ]
@@ -977,7 +982,6 @@ data "aws_iam_policy_document" "load_balancer_controller" {
977982
978983 statement {
979984 actions = [
980- " elasticloadbalancing:AddTags" ,
981985 " elasticloadbalancing:CreateListener" ,
982986 " elasticloadbalancing:DeleteListener" ,
983987 " elasticloadbalancing:CreateRule" ,
0 commit comments