Closed monemo12 closed 2 years ago
This is expected behavior. If you don't supply a databaseName
, then cloudformation will generate one for you. You won't have that name at synth time, so the value of databaseName
at synth time is null. Unfortunately you won't be able to reference the database name elsewhere in your CDK app since it doesn't exist yet :).
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 bug
When I create an AWS Timestream database w/o name, it can be created successfully. After that, when I try to use the database name (
timestream.CfnDatabase.DatabaseName()
) somewhere else in program I got the error. However, when I specify the name of database, it will be fine.Expected Behavior
When I create an AWS Timestream database w/o name, it should be created successfully and the reference of database name shouldn't be
Current Behavior
Output:
Reproduction Steps
Source:
Then run
cdk synth
orcdk deploy
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.29.1 (build c42e961)
Framework Version
No response
Node.js Version
v14.19.3
OS
linux
Language
Go
Language Version
go1.18.3 linux/amd64
Other information
No response