Skip to content
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

Wrong value generated by CfnAssociation.parameters, should interpret the ParameterValuesProperty list of string only for CF to accept it #5400

Closed
chefren opened this issue Dec 13, 2019 · 2 comments
Assignees
Labels
@aws-cdk/aws-ssm Related to AWS Systems Manager bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@chefren
Copy link
Contributor

chefren commented Dec 13, 2019

❓ General Issue

The Question

aws-ssm.CfnAssociation expects a CfnAssociation.ParameterValuesProperty, but upon deployment, CF expects a list of string

Environment

  • CDK CLI Version:1.18.0 (build bc924bc)
  • Module Version:1.18.0
  • OS:all
  • Language:Python

Other information

First reported on SO

CF error:

Value of {Parameters} must be a map where each value is a list of {String}
@chefren
Copy link
Contributor Author

chefren commented Dec 13, 2019

CDK generates what appears to match the CF doc type definition:

    "Parameters": {
      "Directory": {
        "ParameterValues": [
          "myWorkSpace"
        ]
      }
    }

The same CF doc example actually shows a map of key:value, where the value is a list of strings. Which is also what is shown in the syntax initial section, and what the CF console appears to accept, according to the error.

    "Parameters": {
      "Directory": ["myWorkSpace"]
    },

@SomayaB SomayaB added bug This issue is a bug. @aws-cdk/aws-ssm Related to AWS Systems Manager needs-triage This issue or PR still needs to be triaged. labels Dec 13, 2019
@eladb
Copy link
Contributor

eladb commented Dec 15, 2019

Duplicate #4057

@eladb eladb closed this as completed Dec 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ssm Related to AWS Systems Manager bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants