s3: bucketName
could be available during synthesis
#28971
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Give access for the S3 bucket to have it's name automatically be known during runtime, if
bucketName
was explicitly provided by the end user. Currently, a token is shown instead.Use Case
If we are creating a new bucket, and this name would be needed later on, there seems to be a bit more spaghetti code required to try and send that bucket name to another construct later on, if needed rather immediately. A use case I'm working on currently is to deploy a list of buckets and assign them each glue tables.
I actually make use of the
bucketName
key, for both assigning to IDs' and to access within the runtime code (Accessing keys for for loops, etc.). I could have potentially used a list, followed by assigning the keys during synthesis, however a token is generated instead.This is a rather arbitrary example, so unless this would be incredibly complex to develop, it might make sense to implement this change.
Proposed Solution
Allow it to be used during synthesis time, if the
bucketName
has explicitly been given by the developer.Other Information
No response
Acknowledgements
CDK version used
2.121.1
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: