aws-s3-deployment: Conditional BucketDeployment
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
Similar to how we can use a CfnCondition for s3.Bucket creation, was thinking this could be a good use case for BucketDeployment as well. Basically pass in an additional param `condition: CfnCondition` and depending on the condition, the assets will/will not be deployed to the bucket.
### Use Case
Originally would like to conditionally deploy based off of what's currently deployed in s3 (ex] if object[x] === true, don't deploy. else deploy). So was thinking of using CfnOutputs and was trying to conditionally deploy to s3 based on the value of CfnOutput in a separate stack but it seems like this is not possible.
### Proposed Solution
_No response_
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CDK version used
2.60.0
### Environment details (OS name and version, etc.)
NodeJS 18, Typescript
Contributor guide
Research direction
Start by locating the BucketDeployment and CfnCondition entry points in the AWS CDK repository and reading their existing tests. Define the expected behavior for a conditionally deployed asset set, then add coverage showing that the condition controls whether deployment occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100