Data Source: oci_resourcemanager_stack
This data source provides details about a specific Stack resource in Oracle Cloud Infrastructure Resource Manager service.
Gets the specified stack. For more information, see Getting a Stack’s Details.
Example Usage
data "oci_resourcemanager_stack" "test_stack" {
#Required
stack_id = oci_resourcemanager_stack.test_stack.id
}
Argument Reference
The following arguments are supported:
stack_id
- (Required) The OCID of the stack.
Attributes Reference
The following attributes are exported:
compartment_id
- Unique identifier (OCID) for the compartment where the stack is located.config_source
- Location of the Terraform configuration.config_source_type
- Specifies theconfigSourceType
for uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD
) is the only supportedconfigSourceType
.working_directory
- File path to the directory from which Terraform runs. If not specified, we use the root directory.
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"}
description
- General description of the stack.display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.freeform_tags
- Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- Unique identifier (OCID) for the stack.stack_drift_status
- Drift status of the stack. Drift refers to differences between the actual (current) state of the stack and the expected (defined) state of the stack.state
- The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.system_tags
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:{orcl-cloud: {free-tier-retain: true}}
terraform_version
- The version of Terraform specified for the stack. Example:1.5.x
time_created
- The date and time at which the stack was created. Format is defined by RFC3339. Example:2020-01-25T21:10:29.600Z
time_drift_last_checked
- The date and time when the drift detection was last executed. Format is defined by RFC3339. Example:2020-01-25T21:10:29.600Z
variables
- Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example:{"CompartmentId": "compartment-id-value"}