DeployTimeSubstitutedFile: should allow passing IAM role #26879
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p1
Describe the feature
DeployTimeSubstitutedFile is an extension of BucketDeployment that allows users to upload individual files and specify to make substitutions in the file.
Our CDK assets bucket is encrypted and we need to grant the
DeployTimeSubstitutedFile
access to our KMS key. In the past we have usedBucketDeployment
and passed a role via theBucketDeployment
props with right set of permissions.Reference: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_deployment.BucketDeployment.html#role
Use Case
Fetch assets from encrypted KMS S3 Buckets
Proposed Solution
Expose the role as parameter within
DeployTimeSubstitutedFileProps
and pass it down toBucketDeployment
parentOther Information
No response
Acknowledgements
CDK version used
2.93.0
Environment details (OS name and version, etc.)
Mac
The text was updated successfully, but these errors were encountered: