aws-s3-deployment: Conditional BucketDeployment #28602
Labels
@aws-cdk/aws-s3-deployment
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
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
CDK version used
2.60.0
Environment details (OS name and version, etc.)
NodeJS 18, Typescript
The text was updated successfully, but these errors were encountered: