Nick Laffey
10/12/2021, 9:08 PMthdxr
10/12/2021, 9:31 PMFrank
Frank
Nick Laffey
10/13/2021, 2:02 PMthdxr
10/13/2021, 2:06 PMsst.SelfDestruct
Nick Laffey
10/13/2021, 3:04 PMNick Laffey
10/13/2021, 3:04 PMNick Laffey
10/13/2021, 3:05 PMNick Laffey
10/13/2021, 3:06 PMNick Laffey
10/13/2021, 3:14 PMNick Laffey
10/13/2021, 3:53 PMNick Laffey
10/13/2021, 3:54 PMtry {
userPoolExports = ssm.StringParameter.valueFromLookup(this, userPoolExportsName);
} catch (e){
console.error(`No user pool exports found for ${userPoolExportsName}`)
}
Nick Laffey
10/13/2021, 3:54 PM[Error at /foo-iridium-client-ClientStack] SSM parameter not available in account XXXXXXXXX, region us-east-1: foo-iridium-backend-userpool-exports
Found errors
There was an error synthesizing your app.
Frank
Nick Laffey
10/13/2021, 4:03 PMNick Laffey
10/13/2021, 4:03 PMFrank
userPoolExports
? I wonder if ssm.StringParameter.valueForStringParameter()
would work for you. That does not do a SSM lookup at build time, and should get around this problem.Nick Laffey
10/13/2021, 6:29 PMNick Laffey
10/13/2021, 6:31 PMNick Laffey
10/13/2021, 9:37 PMvalueForStringParameter
didn’t work for me. I ended up getting back the token value instead of the actual value: ${${Token[TOKEN.171]}
Nick Laffey
10/13/2021, 9:39 PMFrank
Frank
Nick Laffey
10/14/2021, 2:27 PMNick Laffey
10/14/2021, 2:31 PMssm.StringParameter.valueFromLookup
in a try/catch would not catch when there’s no value found (and subsequently cause SST to report a failure)?