-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
datadog_monitor tags overwritten #9375
Comments
… map. Tags are allowed to be but not restricted to, key value pairs (ie: foo:bar) but are esssentially strings. This changes allows using, and mixing of tags with form "foo" and "foo:bar". It also allows using duplicate keys like "foo:bar" and "foo:baz".
…0570) * provider/datadog #9375: Refactor tags to a list instead of a map. Tags are allowed to be but not restricted to, key value pairs (ie: foo:bar) but are esssentially strings. This changes allows using, and mixing of tags with form "foo" and "foo:bar". It also allows using duplicate keys like "foo:bar" and "foo:baz". * provider/datadog update import test.
…dentials * upstream/master: (79 commits) update CHANGELOG Update panicwrap to pass through all interrupt signals Gracefully stops on SIGTERM website: update website for conditionals vendor: update HIL with conditionals Keep a consistent provider order. Update CHANGELOG.md provider/aws: Forces the api gateway domain name certificates to recreate the resource (hashicorp#10588) Update CHANGELOG.md provider/aws: FIxed the api_gw_domain_name replace operation (hashicorp#10179) Fixed note formatting Explicitly say `count` is not supported by modules (hashicorp#10553) docs/aws: Fix the discrepencies of the emr_cluster documentation (hashicorp#10578) Update CHANGELOG.md Service role is not updated on AWS for a CodeDeploy deployment group (hashicorp#9866) Update CHANGELOG.md provider/datadog hashicorp#9375: Refactor tags to a list instead of a map. (hashicorp#10570) Update the Vagrantfile to resolve package update/installation issue. (hashicorp#9783) docs/aws: Add iam_server_certificate data source to nav bar (hashicorp#10576) Update CHANGELOG.md ...
@stack72 you've merged #10570. Users will get errors if they do not update their configs. What do you think is the best way forward: just updating the changelog with a warning, or should we give a warning when the config has a map, instead of the list we expect? |
Hi @ojongerius I think we should note this in the incompatibilities section of the changelog. The reason I merged this was because we are about to go to 0.8 and it seemed like it was the right place to make the change (major version) Do you think something like this:
? |
* aws/feature/r-instance-net-iface-id: (74 commits) - Properly exercise network_interface_id from AWS SDK - Update Terraform’s documentation Update CHANGELOG.md provider/aws: Forces the api gateway domain name certificates to recreate the resource (hashicorp#10588) Update CHANGELOG.md provider/aws: FIxed the api_gw_domain_name replace operation (hashicorp#10179) Fixed note formatting Explicitly say `count` is not supported by modules (hashicorp#10553) docs/aws: Fix the discrepencies of the emr_cluster documentation (hashicorp#10578) Update CHANGELOG.md Service role is not updated on AWS for a CodeDeploy deployment group (hashicorp#9866) Update CHANGELOG.md provider/datadog hashicorp#9375: Refactor tags to a list instead of a map. (hashicorp#10570) Update the Vagrantfile to resolve package update/installation issue. (hashicorp#9783) docs/aws: Add iam_server_certificate data source to nav bar (hashicorp#10576) Update CHANGELOG.md feat/aws: add iam_server_certificate data source (hashicorp#10558) provider/azurerm: arm_virtual_machine panic fix Update .travis.yml provider/aws: Improved the documentation for EMR Cluster (hashicorp#10563) provider/azurerm: Do not pass an empty string of license_type to AMR VMs (hashicorp#10564) ... # Conflicts: # builtin/providers/aws/resource_aws_instance.go
@stack72 That's backwards, but otherwise that should be fine. |
Hi Do we still think this is an error? It's been 2 months since this was reported and released Paul |
This seems to be properly addressed by 81799b4. Closing |
🎉 |
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 have 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. |
Terraform Version
Terraform v0.7.5
Affected Resource(s)
The tags for Datadog monitors are for filtering, and are implemented in terraform as a map, but I think it should be a list instead to better match Datadog's API.
builtin/providers/datadog/resource_datadog_monitor.go:
terraform/builtin/providers/datadog/resource_datadog_monitor.go
Lines 265 to 269 in 0475157
These lines split the tag on colon and add to a map, but this behavior is not correct if you have (for example):
This is valid in Datadog, but only the second value will be added to the terraform resource, since it's a map instead of an array.
This can result in terraform overwriting tags that should be tracked.
The text was updated successfully, but these errors were encountered: