CfnAssociation outputs invalid CloudFormation
See original GitHub issueNote: for support questions, please first reference our documentation, then use Stackoverflow. This repository’s issues are intended for feature requests and bug reports.
-
I’m submitting a …
- 🪲 bug report
- 🚀 feature request
- 📚 construct library gap
- ☎️ security issue or vulnerability => Please see policy
- ❓ support request => Please see note at the top of this template.
-
What is the current behavior? When creating a CfnAssociation parameter:
Parameters = new Dictionary<string, Amazon.CDK.AWS.SSM.CfnAssociation.ParameterValuesProperty>
{
{
"Operation", new Amazon.CDK.AWS.SSM.CfnAssociation.ParameterValuesProperty
{
ParameterValues = new[] { "Scan" }
}
}
}
The output appears to be correct, but cloud formation reports the following error: “Value of {Parameters} must be a map where each value is a list of {String}”
Looking at the documentation, it appears from the sample yaml it should be:
Parameters:
Directory: ["myWorkSpace"]
but what is emitted from the code above is:
Parameters:
Operation:
ParameterValues:
- Scan
- What is the expected behavior (or behavior of feature suggested)?
Would expect the association to be created with the correct parameters and values.
- What is the motivation / use case for changing the behavior or adding this feature?
Would like to have CfnAssociation working.
-
Please tell us about your environment:
- CDK CLI Version: 0.28.0
- Module Version: 0.28.0
- OS: Windows 10
- Language: CSharp
-
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
Confirming. I’m working on a fix.
Thanks @skinny85! Excited for the next release to try this and remove my overrides.