Index
ApplyResults
(message)Deployment
(message)Deployment.ErrorCode
(enum)Deployment.LockState
(enum)Deployment.State
(enum)GitSource
(message)Preview
(message)Preview.ErrorCode
(enum)Preview.PreviewMode
(enum)Preview.State
(enum)PreviewArtifacts
(message)QuotaValidation
(enum)TerraformBlueprint
(message)TerraformError
(message)TerraformOutput
(message)TerraformVariable
(message)
ApplyResults
Outputs and artifacts from applying a deployment.
Fields | |
---|---|
content |
Location of a blueprint copy and other manifests in Google Cloud Storage. Format: |
artifacts |
Location of artifacts (e.g. logs) in Google Cloud Storage. Format: |
outputs |
Map of output name to output info. |
Deployment
A Deployment is a group of resources and configs managed and provisioned by Infra Manager.
Fields | |
---|---|
name |
Identifier. Resource name of the deployment. Format: |
create_time |
Output only. Time when the deployment was created. |
update_time |
Output only. Time when the deployment was last modified. |
labels |
Optional. User-defined metadata for the deployment. |
state |
Output only. Current state of the deployment. |
latest_revision |
Output only. Revision name that was most recently applied. Format: |
state_detail |
Output only. Additional information regarding the current state. |
error_code |
Output only. Error code describing errors that may have occurred. |
delete_results |
Output only. Location of artifacts from a DeleteDeployment operation. |
delete_build |
Output only. Cloud Build instance UUID associated with deleting this deployment. |
delete_logs |
Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: |
tf_errors[] |
Output only. Errors encountered when deleting this deployment. Errors are truncated to 10 entries, see |
error_logs |
Output only. Location of Terraform error logs in Google Cloud Storage. Format: |
lock_state |
Output only. Current lock state of the deployment. |
tf_version |
Output only. The current Terraform version set on the deployment. It is in the format of "Major.Minor.Patch", for example, "1.3.10". |
quota_validation |
Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies. |
annotations |
Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations. |
Union field blueprint . Blueprint to deploy. blueprint can be only one of the following: |
|
terraform_blueprint |
A blueprint described using Terraform's HashiCorp Configuration Language as a root module. |
artifacts_gcs_bucket |
Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: |
service_account |
Required. User-specified Service Account (SA) credentials to be used when actuating resources. Format: |
import_existing_resources |
By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation. |
worker_pool |
Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: |
tf_version_constraint |
Optional. The user-specified Terraform version constraint. Example: "=1.3.10". |
ErrorCode
Possible errors that can occur with deployments.
Enums | |
---|---|
ERROR_CODE_UNSPECIFIED |
No error code was specified. |
REVISION_FAILED |
The revision failed. See Revision for more details. |
CLOUD_BUILD_PERMISSION_DENIED |
Cloud Build failed due to a permission issue. |
DELETE_BUILD_API_FAILED |
Cloud Build job associated with a deployment deletion could not be started. |
DELETE_BUILD_RUN_FAILED |
Cloud Build job associated with a deployment deletion was started but failed. |
BUCKET_CREATION_PERMISSION_DENIED |
Cloud Storage bucket creation failed due to a permission issue. |
BUCKET_CREATION_FAILED |
Cloud Storage bucket creation failed due to an issue unrelated to permissions. |
LockState
Possible lock states of a deployment.
Enums | |
---|---|
LOCK_STATE_UNSPECIFIED |
The default value. This value is used if the lock state is omitted. |
LOCKED |
The deployment is locked. |
UNLOCKED |
The deployment is unlocked. |
LOCKING |
The deployment is being locked. |
UNLOCKING |
The deployment is being unlocked. |
LOCK_FAILED |
The deployment has failed to lock. |
UNLOCK_FAILED |
The deployment has failed to unlock. |
State
Possible states of a deployment.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
CREATING |
The deployment is being created. |
ACTIVE |
The deployment is healthy. |
UPDATING |
The deployment is being updated. |
DELETING |
The deployment is being deleted. |
FAILED |
The deployment has encountered an unexpected error. |
SUSPENDED |
The deployment is no longer being actively reconciled. This may be the result of recovering the project after deletion. |
DELETED |
The deployment has been deleted. |
GitSource
A set of files in a Git repository.
Fields | |
---|---|
repo |
Optional. Repository URL. Example: 'https://github.com/kubernetes/examples.git' |
directory |
Optional. Subdirectory inside the repository. Example: 'staging/my-package' |
ref |
Optional. Git reference (e.g. branch or tag). |
Preview
A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
Fields | |
---|---|
name |
Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: |
create_time |
Output only. Time the preview was created. |
labels |
Optional. User-defined labels for the preview. |
state |
Output only. Current state of the preview. |
deployment |
Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment's current state and use any relevant fields from the deployment unless explicitly specified in the preview create request. |
preview_mode |
Optional. Current mode of preview. |
service_account |
Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: |
error_code |
Output only. Code describing any errors that may have occurred. |
error_status |
Output only. Additional information regarding the current state. |
build |
Output only. Cloud Build instance UUID associated with this preview. |
tf_errors[] |
Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here. |
error_logs |
Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: |
preview_artifacts |
Output only. Artifacts from preview. |
logs |
Output only. Location of preview logs in |
tf_version |
Output only. The current Terraform version set on the preview. It is in the format of "Major.Minor.Patch", for example, "1.3.10". |
annotations |
Optional. Arbitrary key-value metadata storage e.g. to help client tools identify preview during automation. See https://google.aip.dev/148#annotations for details on format and size limitations. |
Union field blueprint . Blueprint to preview. blueprint can be only one of the following: |
|
terraform_blueprint |
The terraform blueprint to preview. |
artifacts_gcs_bucket |
Optional. User-defined location of Cloud Build logs, artifacts, and in Google Cloud Storage. Format: |
worker_pool |
Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is unspecified, the default Cloud Build worker pool will be used. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used. |
tf_version_constraint |
Optional. The user-specified Terraform version constraint. Example: "=1.3.10". |
ErrorCode
Possible errors that can occur with previews.
Enums | |
---|---|
ERROR_CODE_UNSPECIFIED |
No error code was specified. |
CLOUD_BUILD_PERMISSION_DENIED |
Cloud Build failed due to a permissions issue. |
BUCKET_CREATION_PERMISSION_DENIED |
Cloud Storage bucket failed to create due to a permissions issue. |
BUCKET_CREATION_FAILED |
Cloud Storage bucket failed for a non-permissions-related issue. |
DEPLOYMENT_LOCK_ACQUIRE_FAILED |
Acquiring lock on provided deployment reference failed. |
PREVIEW_BUILD_API_FAILED |
Preview encountered an error when trying to access Cloud Build API. |
PREVIEW_BUILD_RUN_FAILED |
Preview created a build but build failed and logs were generated. |
PreviewMode
Preview mode provides options for customizing preview operations.
Enums | |
---|---|
PREVIEW_MODE_UNSPECIFIED |
Unspecified policy, default mode will be used. |
DEFAULT |
DEFAULT mode generates an execution plan for reconciling current resource state into expected resource state. |
DELETE |
DELETE mode generates as execution plan for destroying current resources. |
State
Possible states of a preview.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is unknown. |
CREATING |
The preview is being created. |
SUCCEEDED |
The preview has succeeded. |
APPLYING |
The preview is being applied. |
STALE |
The preview is stale. A preview can become stale if a revision has been applied after this preview was created. |
DELETING |
The preview is being deleted. |
FAILED |
The preview has encountered an unexpected error. |
DELETED |
The preview has been deleted. |
PreviewArtifacts
Artifacts created by preview.
Fields | |
---|---|
content |
Output only. Location of a blueprint copy and other content in Google Cloud Storage. Format: |
artifacts |
Output only. Location of artifacts in Google Cloud Storage. Format: |
QuotaValidation
Enum values to control quota checks for resources in terraform configuration files.
Enums | |
---|---|
QUOTA_VALIDATION_UNSPECIFIED |
The default value. QuotaValidation on terraform configuration files will be disabled in this case. |
ENABLED |
Enable computing quotas for resources in terraform configuration files to get visibility on resources with insufficient quotas. |
ENFORCED |
Enforce quota checks so deployment fails if there isn't sufficient quotas available to deploy resources in terraform configuration files. |
TerraformBlueprint
TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed.
Fields | |
---|---|
input_values |
Optional. Input variable values for the Terraform blueprint. |
Union field source . Location of the source configs. Required. source can be only one of the following: |
|
gcs_source |
URI of an object in Google Cloud Storage. Format: URI may also specify an object version for zipped objects. Format: |
git_source |
URI of a public Git repo. |
TerraformError
Errors encountered during actuation using Terraform
Fields | |
---|---|
resource_address |
Address of the resource associated with the error, e.g. |
http_response_code |
HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform. |
error_description |
A human-readable error description. |
error |
Output only. Original error response from underlying Google API, if available. |
TerraformOutput
Describes a Terraform output.
Fields | |
---|---|
sensitive |
Identifies whether Terraform has set this output as a potential sensitive value. |
value |
Value of output. |
TerraformVariable
A Terraform input variable.
Fields | |
---|---|
input_value |
Optional. Input variable value. |