cdk-eks-blueprints icon indicating copy to clipboard operation
cdk-eks-blueprints copied to clipboard

Set S3 Bucket location for code pipeline to store its artifacts with blueprints.CodePipelineStack.builder

Open dmalia1 opened this issue 1 year ago • 4 comments

Describe the feature

This would add a method like .bucketName() or something to the builder that would use the bucketName provided. If the bucket doesn't exist, create it, otherwise use it, and put the data in a sub-bucket/folder, or use the full path provided.

Use Case

Generating many pipelines can run into S3 bucket limits. Being able to re-use an existing bucket would eliminate the bucket issue.

Proposed Solution

Add new method to blueprints.CodePipelineStack.builder() maybe called bucketName(), which takes in the bucket name/path, and KMS key ARN for encryption, then in code-pipeline.ts, where it creates the CodePipeline, pass in the value of artifactBucket to the parameters of the CodePipeline

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request

CDK version used

2.147.3

EKS Blueprints Version

1.15.1

Node.js Version

v20.17.0

Environment details (OS name and version, etc.)

ubuntu 24.04

dmalia1 avatar Aug 27 '24 22:08 dmalia1

Accepted, good feature to add.

shapirov103 avatar Aug 29 '24 19:08 shapirov103

I just came across the same problem with too many pipelines. Until the feature arrives, i'll just delete the buckets (automatically) after i delete the pipeline.

muckelba avatar Oct 01 '24 13:10 muckelba

This issue has been automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Dec 31 '24 00:12 github-actions[bot]

This is still an issue

muckelba avatar Dec 31 '24 00:12 muckelba