fresh-spring-82225
01/25/2024, 7:29 PMpulumi up
fails with Attribute must be a list
ā¢ if you try to specify the default as a list, pulumi new
fails with cannot unmarshal !!seq into string
The workaround I found that does work, is to put the list (which in my case is always just a single account id) in quotes:
template:
config:
aws:allowedAccountIds:
description: aws account ids to deploy to (must be in brackets)
default: '[1234567890]'
If you accept the default, it shows up in the stack config as
config:
aws:allowedAccountIds: '[1234567890]'
which looks goofy, but works.
Also, users of the template must still put their account id in brackets if they're not using the default account id, which is not great.
Anyone have a better solution?stale-twilight-75626
01/25/2024, 9:11 PMtemplate:
config:
aws:allowedAccountIds:
description: aws account
default:
- 1234567890
fresh-spring-82225
01/25/2024, 9:20 PMcannot unmarshal !!seq into string
error I mentionedfresh-spring-82225
01/25/2024, 9:21 PMstale-twilight-75626
01/25/2024, 9:22 PMfresh-spring-82225
01/25/2024, 9:29 PMstale-twilight-75626
01/25/2024, 9:29 PMstale-twilight-75626
01/25/2024, 9:30 PMfresh-spring-82225
01/25/2024, 9:33 PMstale-twilight-75626
01/25/2024, 9:33 PMstale-twilight-75626
01/25/2024, 9:34 PM# this is a list inside a string. Yes it's weird.
lol