Skip to content

Commit

Permalink
Merge pull request #16 from architlatkar27/DWX-18298
Browse files Browse the repository at this point in the history
DWX-18298: (Restricted Mode) Add permissions for DB Parameter Groups; add permission for delete tags
  • Loading branch information
roohisyeda authored Aug 16, 2024
2 parents a1cdc3e + 3140ac4 commit d92804e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions aws-iam-policies/docs/restricted-policy-doc-1.json5
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
"ec2:CreateTags",
// Tag subnets and eks security group
// See footnote 2
"ec2:DeleteTags",
// Delete tags from shared subnet, delete any other tags
"ec2:CreateKeyPair",
// Create ssh Public key pair, pass to ec2
// instances. Not required if passed/set/
Expand Down
15 changes: 12 additions & 3 deletions aws-iam-policies/docs/restricted-policy-doc-2.json5
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@
// Delete Placement Groups created by cf
"elasticfilesystem:DescribeMountTargets",
// Called by CF while creating EFS
"elasticfilesystem:DescribeFileSystems"
"elasticfilesystem:DescribeFileSystems",
// Called by CF while creating EFS
"rds:DescribeEngineDefaultParameters"
// Describes default parameters of RDS. Required for Cloudformation operations
],
"Resource": "*",
"Condition": {
Expand Down Expand Up @@ -123,7 +125,8 @@
"Sid": "CFDatabase",
"Resource": [
"arn:aws:rds:*:*:db:env-*-dwx-stack-rds",
"arn:aws:rds:*:*:subgrp:env-*-dwx-stack-dbsubnetgroup-*"
"arn:aws:rds:*:*:subgrp:env-*-dwx-stack-dbsubnetgroup-*",
"arn:aws:rds:*:*:pg:env-*-dwx-stack-rds-parameter-group"
],
"Effect": "Allow",
"Action": [
Expand All @@ -134,8 +137,14 @@
// The DBSubnetGroup created during activation
"rds:DescribeDBSubnetGroups",
// Describe DBSubnetGroup instance created by cf
"rds:ListTagsForResource"
"rds:ListTagsForResource",
// Lists tags on RDS DBsubnetgroup. Required for Cloudformation operations
"rds:CreateDBParameterGroup",
// Required by Cloudformation to create RDS Parameter Group
"rds:DeleteDBParameterGroup",
// Required by Cloudformation to delete RDS Parameter Group
"rds:ModifyDBParameterGroup"
// Required by Cloudformation to modify RDS Parameter Group

],
"Condition": {
Expand Down

0 comments on commit d92804e

Please sign in to comment.