The Artifact Registry VPC SC config that applies to a Project.
To get more information about VPCSCConfig, see:
resource "google_artifact_registry_vpcsc_config" "my-config" {
provider = google-beta
location = "us-central1"
vpcsc_policy = "ALLOW"
}
The following arguments are supported:
vpcsc_policy
-
(Optional)
The VPC SC policy for project and location.
Possible values are: DENY
, ALLOW
.
location
-
(Optional)
The name of the location this config is located in.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/vpcscConfig
name
-
The name of the project's VPC SC Config.
Always of the form: projects/{project}/location/{location}/vpcscConfig
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.VPCSCConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/vpcscConfig/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
In Terraform v1.5.0 and later, use an import
block to import VPCSCConfig using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/vpcscConfig/{{name}}"
to = google_artifact_registry_vpcsc_config.default
}
When using the terraform import
command, VPCSCConfig can be imported using one of the formats above. For example:
$ terraform import google_artifact_registry_vpcsc_config.default projects/{{project}}/locations/{{location}}/vpcscConfig/{{name}}
$ terraform import google_artifact_registry_vpcsc_config.default {{project}}/{{location}}/{{name}}
$ terraform import google_artifact_registry_vpcsc_config.default {{location}}/{{name}}
This resource supports User Project Overrides.