Hey All! Did any of you stumble upon an issue with...
# sst
l
Hey All! Did any of you stumble upon an issue with broken/changed export refs after updating past v0.57.0 (includes the CDK update that made changes to API authorizers) I can't deploy my project now due to conflicting references for sub-stacks (old exportRef trying to get deleted while it's still referenced by the online version of stack causes migraine to Cloudformation...) with below error:
Export lktest-altera-stack-Altera:ExportsOutputRefGlobalApiUserPoolAuthorizer0FC6637617CEFDF2 cannot be deleted as it is in use by lktest-altera-stack-Avatars, lktest-altera-stack-Company and lktest-altera-stack-Cost (and 4 more)
f
Hey @Lukasz K, if u run
sst build
, then open up
.build/cdk.out/lktest-altera-stack-Altera.template.json
, and share what’s inside the
Outputs
near the bottom of the file.
l
Hi @Frank ! I just resolved it!🎉 For anyone running into the issue with authorizer for Api construct shared among different Stacks, check the old name of your exported Authorizer and set the name (minus extra ids, so for me it was UserPoolAuthorizer) as your new id
That was my initial idea but looks like I started off with a typo... Self-provided avalanche of further misery included
f
Oh I see. Glad you figured it out. I wonder if this had to do with a breaking change in CDK v1.135.0 https://github.com/aws/aws-cdk/releases/tag/v1.135.0
The default value for the prop
authorizerName
has changed