|
@@ -1,16 +1,24 @@
|
|
|
{
|
|
|
- "Version": "2012-10-17",
|
|
|
- "Statement": [
|
|
|
- {
|
|
|
- "Sid": "InstanceProfiles",
|
|
|
- "Effect": "Allow",
|
|
|
- "Action": [
|
|
|
- "iam:CreateInstanceProfile",
|
|
|
- "iam:DeleteInstanceProfile",
|
|
|
- "iam:AddRoleToInstanceProfile",
|
|
|
- "iam:RemoveRoleFromInstanceProfile"
|
|
|
- ],
|
|
|
- "Resource": "arn:aws:iam::${account}:instance-profile/$${aws:PrincipalTag/IAM:NamePrefix}*"
|
|
|
- }
|
|
|
- ]
|
|
|
+ "Version": "2012-10-17",
|
|
|
+ "Statement": [
|
|
|
+ {
|
|
|
+ "Sid": "InstanceProfiles",
|
|
|
+ "Effect": "Allow",
|
|
|
+ "Action": [
|
|
|
+ "iam:CreateInstanceProfile",
|
|
|
+ "iam:DeleteInstanceProfile",
|
|
|
+ "iam:AddRoleToInstanceProfile",
|
|
|
+ "iam:RemoveRoleFromInstanceProfile"
|
|
|
+ ],
|
|
|
+ "Resource": "arn:aws:iam::${account}:instance-profile/$${aws:PrincipalTag/IAM:NamePrefix}*"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "Sid": "PassRole",
|
|
|
+ "Effect": "Allow",
|
|
|
+ "Action": [
|
|
|
+ "iam:PassRole"
|
|
|
+ ],
|
|
|
+ "Resource": "arn:aws:iam::${account}:instance-profile/$${aws:PrincipalTag/IAM:NamePrefix}*"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|