Skip to content

Commit

Permalink
Create new Api Policy with the missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Twsouza committed Apr 24, 2023
1 parent 7170bd6 commit b44031d
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions provider/aws/formation/rack.json
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@
"Path": "/convox/"
}
},
"ApiPolicy": {
"ApiPolicyV2": {
"Type": "AWS::IAM::ManagedPolicy",
"Properties": {
"Path": "/convox/",
Expand All @@ -2937,9 +2937,26 @@
{
"Effect": "Allow",
"Action": [
"iam:*Role",
"iam:AttachRolePolicy",
"iam:CreateTag",
"iam:CreateRole",
"iam:CreatePolicyVersion",
"iam:DeletePolicyVersion",
"iam:DeleteRole",
"iam:DeleteRolePolicy",
"iam:DeleteTags",
"iam:DetachRolePolicy",
"iam:GetInstanceProfile",
"iam:GetPolicyVersion",
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListRoles",
"iam:ListPolicyVersions",
"iam:*Policy"
"iam:PassRole",
"iam:PutRolePolicy",
"iam:SetDefaultPolicyVersion",
"iam:TagRole",
"iam:UntagRole"
],
"Resource": [
{ "Fn::Sub": "arn:${AWS::Partition}:iam::*:instance-profile/convox/*" },
Expand All @@ -2952,7 +2969,6 @@
"Effect": "Allow",
"Action": [
"iam:DeleteServerCertificate",
"iam:DetachRolePolicy",
"iam:GetServerCertificate",
"iam:ListServerCertificates",
"iam:UploadServerCertificate"
Expand Down Expand Up @@ -2983,7 +2999,7 @@
},
"ManagedPolicyArns": [
{ "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/PowerUserAccess" },
{ "Ref": "ApiPolicy" },
{ "Ref": "ApiPolicyV2" },
{ "Ref": "CMKPolicy" }
],
"Path": "/convox/",
Expand Down

0 comments on commit b44031d

Please sign in to comment.