pipelines: Allow specifying custom action role for S3SourceOptions #20556
Labels
@aws-cdk/pipelines
CDK Pipelines library
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Describe the feature
CodePipelineSource.s3()
currently doesn't allow any method to inject a custom role or modifying the auto-generated action role.Use Case
This is needed, for example, to allow the source action to use KMS to decrypt the bucket.
Proposed Solution
Add an
eventRole?: iam.IRole
field toS3SourceOptions
then pass it through toS3SourceAction
.Other Information
No response
Acknowledgements
CDK version used
2.26.0
Environment details (OS name and version, etc.)
macOS 11.3.1
The text was updated successfully, but these errors were encountered: