Creating a Stack from Bitbucket Server
Create a stack in Resource Manager from a Terraform configuration stored in Bitbucket Server. Select a configuration source provider that specifies the Bitbucket Server 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 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-server
command and required parameters to create a stack from Bitbucket Server.oci resource-manager stack create-from-bitbucket-server --compartment-id <compartment_OCID> --config-source-configuration-source-provider-id <Bitbucket_Server_configuration_source_provider_OCID> --config-source-repository-url <Bitbucket_Server_repository>
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 Server.
For an example of the
configSource
part of the request, see CreateBitbucketServerConfigSourceDetails.