Create main.tf
Description
This pull request creates a method to disallow users from using the alpha API for Compute Engine.
Checklist
Readiness
- [x] Yes, merge this PR after it is approved
- [ ] No, don't merge this PR after it is approved
Style
- [x] My sample follows the rules described for Terraform in the Effective Samples style guide
- [ ] My sample follows the other requirements and best practices in the Contributing guide
Testing
-
[x] I have performed tests described in the Contributing guide:
Intended location
-
[x] Yes, this sample will be (or already is) included on cloud.google.com Location(s): https://cloud.google.com/compute/docs/reference/rest/alpha
-
[ ] No, this sample won't be included on cloud.google.com Reason:
API enablement
- [ ] If the sample needs an API enabled to pass testing, I have added the service to the Test setup file
Review
- [ ] If this sample adds a new directory, I have added codeowners to the CODEOWNERS file
Here is the summary of changes.
You are about to add 1 region tag.
-
compute/preview_feature/disable/main.tf:17, tag
compute_preview_feature_disable
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
- [ ] Refresh this comment
LGTM
As in a similar pull request, users might encounter issues due to an organisation policy preventing the CI project from disabling preview features. This is an expected behaviour, and we can therefore disable tests.
For context, see https://github.com/terraform-google-modules/terraform-docs-samples/pull/906#issuecomment-3460382279.
Let's first try /gcbrun to confirm it's a CI issue before adding the testskip
/gcbrun