We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After applying changes on the service attribute in the service/role metadata, the metadata on the previous service remains same.
service
Here are steps for the service metadata. The steps for the role metadata is almost the same.
resource "mackerel_service" "svc1" { name = "tf-svc1" } resource "mackerel_service" "svc2" { name = "tf-svc2" } resource "mackerel_service_metadata" "metadata" { service = mackerel_service.svc1.name namespace = "tf" metadata_json = jsonencode({ value : 1 }) }
--- main.tf +++ main.tf @@ -16,7 +16,7 @@ } resource "mackerel_service_metadata" "metadata" { - service = mackerel_service.svc1.name + service = mackerel_service.svc2.name namespace = "tf" metadata_json = jsonencode({ value : 1
Only tf-svc2/tf is exists.
tf-svc2/tf
Both tf-svc1/tf and tf-svc2/tf are exists.
tf-svc1/tf
$ curl -H X-Api-Key:$MACKEREL_APIKEY https://api.mackerelio.com/api/v0/services/tf-svc2/metadata/tf {"value":1} $ curl -H X-Api-Key:$MACKEREL_APIKEY https://api.mackerelio.com/api/v0/services/tf-svc1/metadata/tf {"value":1}
darwin-amd64, version: 0.4.0
Because the service attribute on service/role metadata is act as a part of the identifier, this change should be treat as replacement.
terraform-provider-mackerel/mackerel/resource_mackerel_service_metadata.go
Lines 24 to 39 in 9a863e6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
After applying changes on the
service
attribute in the service/role metadata, the metadata on the previous service remains same.Steps to reproduce
Here are steps for the service metadata. The steps for the role metadata is almost the same.
Expected Behaviour
Only
tf-svc2/tf
is exists.Actual Behaviour
Both
tf-svc1/tf
andtf-svc2/tf
are exists.Environment
darwin-amd64, version: 0.4.0
Solution
Because the
service
attribute on service/role metadata is act as a part of the identifier, this change should be treat as replacement.terraform-provider-mackerel/mackerel/resource_mackerel_service_metadata.go
Lines 24 to 39 in 9a863e6
The text was updated successfully, but these errors were encountered: