Closed aprat84 closed 7 months ago
This would be awesome! We welcome the pull requests!
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the feature
It would be nice to do something like this:
Use Case
I'd like to store a hashing key, which don't want to be versioned in git. It is saved in Systems Manager Parameter Store, and I retrieve it before initializing the stacks, so it is a parameter to the stack which should create the
KeyValueStore
.I know I could create a temp JSON file, but this has already been made for Lambda's code, so it could be in here too. https://github.com/aws/aws-cdk/blob/v2.129.0/packages/aws-cdk-lib/aws-lambda/lib/code.ts#L36 https://github.com/aws/aws-cdk/blob/v2.129.0/packages/aws-cdk-lib/aws-lambda/lib/code.ts#L243
Proposed Solution
Add an
InlineImportSource
class aswell as an static methodImportSource.fromInline()
, as it is done with Lambda code.Other Information
No response
Acknowledgements
CDK version used
1.129.0