1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/alpha/terraform/vet

52 lines
1.7 KiB
Text
Raw Normal View History

2022-04-06 08:36:53 +00:00
NAME
gcloud alpha terraform vet - validate that a terraform plan complies with
policies
SYNOPSIS
gcloud alpha terraform vet TERRAFORM_PLAN_JSON
2023-01-19 00:56:33 +00:00
--policy-library=POLICY_LIBRARY [--region=REGION] [--zone=ZONE]
[GCLOUD_WIDE_FLAG ...]
2022-04-06 08:36:53 +00:00
DESCRIPTION
(ALPHA) Validate that a terraform plan complies with policies.
EXAMPLES
To validate that a terraform plan complies with a policy library at
/my/policy/library:
$ gcloud alpha terraform vet tfplan.json \
--policy-library=/my/policy/library
POSITIONAL ARGUMENTS
TERRAFORM_PLAN_JSON
File which contains a JSON export of a terraform plan. This file will
be validated against the given policy library.
REQUIRED FLAGS
--policy-library=POLICY_LIBRARY
Directory which contains a policy library
2023-01-19 00:56:33 +00:00
OPTIONAL FLAGS
--region=REGION
Default region to use for resources that do not have one set
--zone=ZONE
Default zone to use for resources that do not have one set
2022-04-06 08:36:53 +00:00
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. This variant is also available:
$ gcloud beta terraform vet