(aws-s3-deployment): Policy Resource Created Despite Providing a Role #12375
Labels
@aws-cdk/aws-s3-deployment
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
When passing a role to
aws_s3_deployment.BucketDeployment
, a DefaultPolicy resource is still created in addition to the supplied role (e.g.,uploadsupportfilesDefaultPolicy6089F180
results from the code below).This interferes with my corporate policy, where policies are provisioned and referenced, not created. (I.e., in prod, an existing role would be imported and passed to
BucketDeployment
for use; if it created an additional Policy, then an error would be thrown.Reproduction Steps
What did you expect to happen?
BucketDeployment
to accept a Role (support_role
in this example) and not create an additional Policy.What actually happened?
A "DefaultPolicy" Policy resource was created in addition to the supplied role that contained the same policy.
Environment
Other
Might be related-to/duplicate-of #9989.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: