Blake E
08/31/2021, 5:40 PMCloudFormation cannot update a stack when a custom-named resource requires replacing. Rename dev-my-stack-myTableName and update the stack again.
I believe.. cloudformation natively can create dynamic names, or maybe it was CDK POCs I did in the past - can’t seem to remember.
sst
have support for this?
I am still of two minds around whether I like the friction or not, but generally - I don’t lol.
I’d prefer cdk/sst/cloudform to pick a name with a custom prefix, like dev-my-stack-myTableNameRANDOMISH
Blake E
08/31/2021, 5:41 PMthdxr
08/31/2021, 5:42 PMthis.getLogicalId()
help?thdxr
08/31/2021, 5:42 PMapp.logicalPrefixedName
Blake E
08/31/2021, 5:43 PMBlake E
08/31/2021, 5:43 PMstage-stackName-constructId
Sam Hulick
08/31/2021, 6:54 PM${stack.stackName}-
. and I ran into this same error not too long ago.. so I just commented out the DB cluster name, and then it worked fineBlake E
08/31/2021, 6:59 PMBlake E
08/31/2021, 7:19 PMdynamodbTable.tableName
properly defaulted to the pretty (and static) table name of:
stage-my-stack-constructId
but by passing explicitly undefined
as tableName I get my desired outcome of table like:
dev-my-stack-myConstructId6036D346-144DSHF08MUGS
Blake E
08/31/2021, 7:19 PMBlake E
08/31/2021, 7:20 PMthdxr
08/31/2021, 7:24 PM