Open yacn opened 3 years ago
FYSA: I have started work on this
I'm not confident this actually works, as indicated by the API request/response pair in https://github.com/GoogleCloudPlatform/magic-modules/pull/5008#issuecomment-892132674. The API should be returning the user's set values. Pessimistically labeling upstream
.
Do you have any updates on this issue? It seems that it is not currently implemented and is missing from the provider, but can be managed via the google console or gcloud utility.
The API shows that the field "publicPtrDomainName": string is available, but terraform registry doesn't show the change and how to implement it.
Community Note
Description
google_compute_instance
can set the PTR domain for an instance via thepublic_ptr_domain_name
attribute in theaccess_config
block, butgoogle_compute_instance_template
cannot. While thepublic_ptr_domain_name
is in the schema forgoogle_compute_instance_template
, it is marked as a Computed attribute only.The GCE API allows for this field to be set for instance template creation requests, so the terraform provider should be able to set it as well.
New or Affected Resource(s)
Potential Terraform Configuration
It should mirror how
google_compute_instance
configures this attribute in itsaccess_config
block, i.e.References
b/359946132