Creating a Stack from a Bucket
Create a stack in Resource Manager from a Terraform configuration stored in an Object Storage bucket.
Limit the bucket to files that are intended for use with Terraform. Ensure that the Terraform configuration is valid. See Terraform Configurations for Resource Manager and Authoring Configurations.
The stack is created and its Stack details page opens.
If you selected Run apply, then Resource Manager runs the apply action on the new stack.
Use the
oci resource-manager stack create-from-object-storage
command and required parameters to create a stack from a bucket.oci resource-manager stack create-from-object-storage --compartment-id <compartment_OCID> --config-source-bucket-name <bucket_name> --config-source-namespace <bucket_namespace> --config-source-region <bucket_region>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Use the CreateStack operation to create a stack from a bucket.
For an example of the
configSource
part of the request, see CreateObjectStorageConfigSourceDetails.Example requestPOST /20180917/stacks Host: resourcemanager.us-phoenix-1.oraclecloud.com <authorization and other headers> { "compartmentId": "ocid1.compartment.oc1..<unique_ID>", "displayName": "My Bucket Terraform Configuration", "configSource": { "configSourceType": "OBJECT_STORAGE_CONFIG_SOURCE", "region": "us-phoenix-1", "namespace": "<bucket_namespace>", "bucketName": "<bucket_name>" } }