-
Notifications
You must be signed in to change notification settings - Fork 459
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
Case sensitive tags are incorrectly downcased #75
Comments
We could wrap tags in a similar concept as the TagManager in the aws-cdk. While we probably don't have to support various tagging formats, this would allow us to produce a resolvable value, which would be ignored when transforming the object keys during synth. Something like this: public get tags(): {[key: string]: any} {
return Lazy.anyValue({ produce: () => this._tags.renderTags() })
} |
@skorfmann Thanks for the commit and test suite! Unfortunately, it doesn't fix the bug. If I run the code above, it retains the capitalization of the value, but not the key. So when I specify "Name: Geoffrey" it gives me "name: Geoffrey". Should I open a new issue? |
Just tried it locally and I can't reproduce it. "resource": {
"aws_instance": {
"helloterra_HelloF_F96C4813": {
"ami": "ami-0d6621c01e8c2de2c",
"instance_type": "t2.micro",
"tags": {
"Name": "Geoffrey"
},
|
I've just realised that the fix is in |
We can close this as this is fixed in the next version of cdktf. |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
Affected Resource(s)
Debug Output
Expected Behavior
I created a tag in my AWS resource. It successfully compiles and deploys, and it appears in the AWS console. However, it downcases all key names, so the AWS-specific "Name" tag deploys as "name" and doesn't display correctly in the AWS console (it should show as the "Name" of the resource in the table view of my AWS instances).
My Typescript:
Actual Behavior
The generated JSON has a "name" key, not "Name":
Steps to Reproduce
Use the Typescript as shown above, then
$ yarn compile $ cdktf synth $ cd dist $ terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: