-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_ssm: StringList SSM Parameter cannot contain the ',' character #26944
Comments
According to the API docs, commas are not allowed values. Could you please give an example of the list you are attempting to create and the CDK code that you are doing that with? |
@peterwoodworth please see the image above |
Right, just do this
|
The data being provided is being read out of a text file, I mean, I guess I can read it, remove the commas and create an array and then put it back in, but that seems like a lot of unnecessary logic when CDK should be able to just differentiate when presented. My temporary solution is going to be just seeing if a String Parameter works vice a StringList... but it seems to me that if you are having a "StringList" you should either be able to accept an array of strings or a string with the expected delimiter. |
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.StringListParameter.html. |
Yes, the high level construct is designed this way. If it creates too much of a hassle for you, you could provide some dummy value to the |
Closing because this is not a bug - and is not a feature request we would consider |
|
For anyone who lands here in the future, StringListParameter has been deprecated. I found the easiest here is either
|
Describe the bug
When creating a StringList SSM Parameter, it will not allow a list of strings separated by commas. This is definitely allowed because you can manually type in a list inside of SSM in AWS.
Expected Behavior
I would expect the
string_list_value
parameter to allow a comma in it's contents.Current Behavior
on
cdk synth
I get the following error:RuntimeError: Values of a StringList SSM Parameter cannot contain the ',' character. Use a string parameter instead.
Reproduction Steps
create a aws_ssm.StringListParameter and in the
string_list_value
parameter have a comma in the stringPossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.93.0
Framework Version
No response
Node.js Version
9.5.1
OS
MacOS and Linux
Language
Python
Language Version
3.9.6
Other information
No response
The text was updated successfully, but these errors were encountered: