Open BenJackGill opened 7 months ago
Agreed. the formats of name
and id
fields should be different
"id": "projects/myproject/keys/6LecnJAkAAAAABJhGxNwuCQBFzaBaMcaD_AgIY9X",
"ios_settings": [],
"labels": {},
"name": "6LecnJAkAAAAABJhGxNwuCQBFzaBaMcaD_AgIY9X",
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.7.0 on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The docs say that the
name
computed attribute is the resource name for the Key in the format "projects/{project}/keys/{key}".So as per the docs I was expecting this:
projects/my-project-id/keys/my-key-string-123-abc
Actual Behavior
Instead it is returning just the key:
my-key-string-123-abc
Note that I like this behaviour because I only want the key. But the docs should be updated to reflect the correct output.
Steps to Reproduce
terraform apply
terraform output
name
outputs something likemy-key-string-123-abc
instead ofprojects/my-project-id/keys/my-key-string-123-abc
which is what the docs says.References
google_recaptcha_enterprise_key
: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/recaptcha_enterprise_key#attributes-referenceb/321923312