|
2 | 2 | This set of templates serves two purposes: |
3 | 3 | 0. it shows developers how to use the module in a straightforward way as integrated with other terraform community supported modules. |
4 | 4 | 1. serves as the test infrastructure for CI on the project. |
| 5 | + |
| 6 | +## IAM Permissions |
| 7 | +The following IAM policy is the minimum needed to execute the module from the test suite. |
| 8 | +``` |
| 9 | +{ |
| 10 | + "Version": "2012-10-17", |
| 11 | + "Statement": [ |
| 12 | + { |
| 13 | + "Sid": "Stmt1507789535000", |
| 14 | + "Effect": "Allow", |
| 15 | + "Action": [ |
| 16 | + "ec2:AllocateAddress", |
| 17 | + "ec2:AssignIpv6Addresses", |
| 18 | + "ec2:AssignPrivateIpAddresses", |
| 19 | + "ec2:AssociateAddress", |
| 20 | + "ec2:AssociateDhcpOptions", |
| 21 | + "ec2:AssociateRouteTable", |
| 22 | + "ec2:AttachInternetGateway", |
| 23 | + "ec2:AttachNetworkInterface", |
| 24 | + "ec2:AuthorizeSecurityGroupEgress", |
| 25 | + "ec2:AuthorizeSecurityGroupIngress", |
| 26 | + "ec2:CreateDhcpOptions", |
| 27 | + "ec2:CreateInternetGateway", |
| 28 | + "ec2:CreateNatGateway", |
| 29 | + "ec2:CreateNetworkAcl", |
| 30 | + "ec2:CreateNetworkAclEntry", |
| 31 | + "ec2:CreateNetworkInterface", |
| 32 | + "ec2:CreateNetworkInterfacePermission", |
| 33 | + "ec2:CreateRoute", |
| 34 | + "ec2:CreateRouteTable", |
| 35 | + "ec2:CreateSecurityGroup", |
| 36 | + "ec2:CreateSubnet", |
| 37 | + "ec2:CreateTags", |
| 38 | + "ec2:CreateVpc", |
| 39 | + "ec2:DeleteDhcpOptions", |
| 40 | + "ec2:DeleteInternetGateway", |
| 41 | + "ec2:DeleteNatGateway", |
| 42 | + "ec2:DeleteNetworkAcl", |
| 43 | + "ec2:DeleteNetworkAclEntry", |
| 44 | + "ec2:DeleteNetworkInterface", |
| 45 | + "ec2:DeleteRoute", |
| 46 | + "ec2:DeleteRouteTable", |
| 47 | + "ec2:DeleteSecurityGroup", |
| 48 | + "ec2:DeleteSubnet", |
| 49 | + "ec2:DeleteTags", |
| 50 | + "ec2:DeleteVpc", |
| 51 | + "ec2:Describe*", |
| 52 | + "ec2:DetachInternetGateway", |
| 53 | + "ec2:DetachNetworkInterface", |
| 54 | + "ec2:DisassociateAddress", |
| 55 | + "ec2:DisassociateRouteTable", |
| 56 | + "ec2:DisassociateSubnetCidrBlock", |
| 57 | + "ec2:DisassociateVpcCidrBlock", |
| 58 | + "ec2:ModifySubnetAttribute", |
| 59 | + "ec2:ModifyVpcAttribute", |
| 60 | + "ec2:ModifyVpcEndpoint", |
| 61 | + "ec2:ReleaseAddress", |
| 62 | + "ec2:RevokeSecurityGroupEgress", |
| 63 | + "ec2:RevokeSecurityGroupIngress", |
| 64 | + "ec2:UpdateSecurityGroupRuleDescriptionsEgress", |
| 65 | + "ec2:UpdateSecurityGroupRuleDescriptionsIngress" |
| 66 | + ], |
| 67 | + "Resource": [ |
| 68 | + "*" |
| 69 | + ] |
| 70 | + }, |
| 71 | + { |
| 72 | + "Sid": "Stmt1507789585001", |
| 73 | + "Effect": "Allow", |
| 74 | + "Action": [ |
| 75 | + "s3:*", |
| 76 | + ], |
| 77 | + "Resource": [ |
| 78 | + "*" |
| 79 | + ] |
| 80 | + }, |
| 81 | + { |
| 82 | + "Sid": "Stmt1507789655000", |
| 83 | + "Effect": "Allow", |
| 84 | + "Action": [ |
| 85 | + "elasticloadbalancing:*" |
| 86 | + ], |
| 87 | + "Resource": [ |
| 88 | + "*" |
| 89 | + ] |
| 90 | + }, |
| 91 | + { |
| 92 | + "Sid": "Stmt1507789655001", |
| 93 | + "Effect": "Allow", |
| 94 | + "Action": [ |
| 95 | + "iam:UploadServerCertificate", |
| 96 | + "iam:DeleteServerCertificate", |
| 97 | + "iam:GetServerCertificate" |
| 98 | + ], |
| 99 | + "Resource": [ |
| 100 | + "*" |
| 101 | + ] |
| 102 | + } |
| 103 | + ] |
| 104 | +} |
| 105 | +
|
| 106 | +``` |
0 commit comments