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 50634fd
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 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,32 @@
{
"Effect": "Allow",
"Action": [
"iam:*Role",
"iam:AttachRolePolicy",
"iam:CreateTag",
"iam:CreatePolicy",
"iam:CreateRole",
"iam:CreatePolicyVersion",
"iam:DeletePolicyVersion",
"iam:DeleteRole",
"iam:DeletePolicy",
"iam:DeleteRolePolicy",
"iam:DeleteTags",
"iam:DetachRolePolicy",
"iam:GetInstanceProfile",
"iam:GetPolicyVersion",
"iam:GetPolicy",
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListRoles",
"iam:ListPolicyVersions",
"iam:*Policy"
"iam:PassRole",
"iam:PutRolePolicy",
"iam:SetDefaultPolicyVersion",
"iam:TagPolicy",
"iam:TagRole",
"iam:UntagPolicy",
"iam:UntagRole",
"iam:UpdateAssumeRolePolicy"
],
"Resource": [
{ "Fn::Sub": "arn:${AWS::Partition}:iam::*:instance-profile/convox/*" },
Expand All @@ -2952,7 +2975,6 @@
"Effect": "Allow",
"Action": [
"iam:DeleteServerCertificate",
"iam:DetachRolePolicy",
"iam:GetServerCertificate",
"iam:ListServerCertificates",
"iam:UploadServerCertificate"
Expand Down Expand Up @@ -2983,7 +3005,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 50634fd

Please sign in to comment.