This data source provides the list of Stacks in Oracle Cloud Infrastructure Resource Manager service.
Returns a list of stacks.
data "oci_resourcemanager_stacks" "test_stacks" {
#Optional
compartment_id = var.compartment_id
display_name = var.stack_display_name
id = var.stack_id
state = var.stack_state
}
The following arguments are supported:
compartment_id
- (Optional) The compartment OCID on which to filter.display_name
- (Optional) Display name on which to query.id
- (Optional) The OCID on which to query for a stack. state
- (Optional) A filter that returns only those resources that match the specified lifecycle state. The state value is case-insensitive.
Allowable values:
The following attributes are exported:
stacks
- The list of stacks.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 the configSourceType
for uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD
) is the only supported configSourceType
. 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
- Human-readable display name for the stack.freeform_tags
- Free-form tags associated with this 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.state
- The current lifecycle state of the stack.time_created
- The date and time at which the stack was created.variables
- Terraform variables associated with this resource. Maximum number of variables supported is 100. The maximum size of each variable, including both name and value, is 4096 bytes. Example: {"CompartmentId": "compartment-id-value"}