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

CodeBuild for cdk deploy incorrect system parameter passing #84

Open
CrazyCatMandy opened this issue May 6, 2022 · 0 comments
Open

Comments

@CrazyCatMandy
Copy link

In the CloudFormation created when a product is installed the yaml contains the following parameter:
'BootstrapVersion': 'Default': '/cdk-bootstrap/hnb659fds/version' 'Description': 'Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]' 'Type': 'AWS::SSM::Parameter::Value<String>'
This automatically resolves the parameter store value of -/cdk-bootstrap/hnb659fds/version-

When the build tries to run with the cdk deploy command it passes the actual value in the variable CDK_DEPLOY_PARAMETER_ARGS rather than the parameter store name.
e.g.
Currently passes:

--parameters HelloCdkStack:BootstrapVersion=12

Should pass: -

-parameters HelloCdkStack:BootstrapVersion=/cdk-bootstrap/hnb659fds/version

This cause the install to fall over with a validation error:

Error [ValidationError]: Unable to fetch parameters [12] from parameter store for this account

Only workarounds identified are to hard code the parameter name into the lamdba servicecatalog-tools--StartCDKDeploy or to set up a parameter in system manager manually called 12 with a value of 12...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant