Creating a Stack from Bitbucket Cloud
Create a stack in Resource Manager from a Terraform configuration stored in Bitbucket Cloud. Select a configuration source provider that specifies the Bitbucket Cloud information needed to access the configurations.
Ensure that the Terraform configuration is valid. See Terraform Configurations for Resource Manager and Authoring Configurations.
For information about configuration source providers, see Managing Configuration Source Providers.
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-bitbucket-cloud
command and required parameters to create a stack from Bitbucket Cloud.oci resource-manager stack create-from-bitbucket-cloud --compartment-id <compartment_OCID> --config-source-configuration-source-provider-id <Bitbucket_Cloud_configuration_source_provider_OCID> --config-source-repository-url <Bitbucket_Cloud_repository> --config-source-workspace-id <workspace_ID>
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 Bitbucket Cloud.
For an example of the
configSource
part of the request, see CreateBitbucketCloudConfigSourceDetails.