Add data_source_google_site_verification_token #7704
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a start to implementing hashicorp/terraform-provider-google#5698 which will ultimately allow TPG users to verify site ownership for use with the Google Search Console.
The verification system works by providing you with a random-looking value (which is what this new data source obtains for you) which you then add to your site as a
meta
tag a la:You can also use the token in a DNS record, or in a separate file on your web site, or in several other ways. The gist is that by making a modification to a web site that includes a Google supplied value you are verifying that you are an owner of the site.
The steps will look something like:
google_dns_record_set
or adding ameta
tag as shown above)google_site_verification_web_resource
to request confirmation of your site ownership by validating that step 2 has taken place.Derived from GoogleCloudPlatform/magic-modules#10999