-
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
fix(cli): format of tags in cdk.json is not validated #21050
Conversation
If tags is present in cdk.json, validate that it is an array of objects, and each object has a Tag string and a Value string.
As far as I can read, my tests are passing.
It is this that is failing. I don't understand how the two might be connected.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
If tags is present in cdk.json, validate that it is an array of objects, and each object has a Tag string and a Value string. If tags is not structurally valid `cdk bootstrap` and `cdk deploy` fail with an error. `tags must be an array of { Tag: string, Value: string } objects` There is no attempt to validate the strings of each Tag and Value beyond that they are strings. closes aws#20854 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ed" (#21092) Reverts #21050 It breaks the CLI integ tests that get run on our internal pipelines. The error message is `Error: tags must be an array of { Tag: string, Value: string } objects`, which comes from the `validateTags` method in #21050. The test runs `cdk deploy --tag key=value` which I was able to test on my own account to verify that that is a valid way of adding tags to a stack.
If tags is present in cdk.json, validate that it is an array of objects, and each object has a Tag string and a Value string. If tags is not structurally valid
cdk bootstrap
andcdk deploy
fail with an error.tags must be an array of { Tag: string, Value: string } objects
There is no attempt to validate the strings of each Tag and Value beyond that they are strings.
closes #20854
All Submissions:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license