oci_artifacts_generic_artifact
This resource provides the Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.
Example Usage
resource "oci_artifacts_generic_artifact" "test_generic_artifact" {
#Required
artifact_id = oci_artifacts_artifact.test_artifact.id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
artifact_id
- (Required) The OCID of the artifact. Example:ocid1.genericartifact.oc1..exampleuniqueID
defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
freeform_tags
- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
artifact_path
- A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example:project01/my-web-app/artifact-abc
compartment_id
- The OCID of the repository’s compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- The artifact name with the format of<artifact-path>:<artifact-version>
. The artifact name is truncated to a maximum length of 255. Example:project01/my-web-app/artifact-abc:1.0.0
freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The OCID of the artifact. Example:ocid1.genericartifact.oc1..exampleuniqueID
repository_id
- The OCID of the repository.sha256
- The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.size_in_bytes
- The size of the artifact in bytes.state
- The current state of the artifact.time_created
- An RFC 3339 timestamp indicating when the repository was created.version
- A user-defined string to describe the artifact version. Example:1.1.0
or1.2-beta-2
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Generic Artifact
* update
- (Defaults to 20 minutes), when updating the Generic Artifact
* delete
- (Defaults to 20 minutes), when destroying the Generic Artifact
Import
GenericArtifacts can be imported using the id
, e.g.
$ terraform import oci_artifacts_generic_artifact.test_generic_artifact "generic/artifacts/{artifactId}"