[@aws_cdk.aws_backup]: BackupSelection default role policy #27900
Labels
@aws-cdk/aws-backup
Related AWS Backup
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When creating the
BackupSelection
L2 construct, it allows to specifyallowRestores
androle
props.These 2 props will add to the Role (either specified role or auto-create by this construct) the following 2 AWS managed polices:
allowRestores: true
> add by default:AWSBackupServiceRolePolicyForRestores
role
specified or not specify > by default will have:AWSBackupServiceRolePolicyForBackup
I request having the default policy
AWSBackupServiceRolePolicyForBackup
removedOR, to have an option to specify the policy for S3 backup only, that way we can easier specify the least-privilege policy that need for S3 service backup and restore:
AWSBackupServiceRolePolicyForRestores
AWSBackupServiceRolePolicyForS3Backup
Use Case
The case is when
BackupSelection
for S3 serviceCurrently, by default, the role will have
AWSBackupServiceRolePolicyForBackup
added which has dynamodb, rds and other services permissions.Proposed Solution
Currently, as a workaround, I raw override the
ManagedPolicyArns
to specified only 2 polices for S3 above:Other Information
Found a somewhat similar issue here #25669, but the mutable is for importing existing role only.
Acknowledgements
CDK version used
2.87.0
Environment details (OS name and version, etc.)
AL2
The text was updated successfully, but these errors were encountered: