Create a stack in Resource Manager from a local Terraform configuration stored in a folder.
Ensure that the Terraform configuration is valid. See Terraform Configurations for Resource Manager and Authoring Configurations.
This task can be performed using the Console only.
-
On the Stacks list page, select Create stack. If you need help finding the list page or the stack, see Listing Stacks.
-
On the Create stack page, under Choose the origin of the Terraform configuration, select My configuration.
-
Under Stack configuration, select Folder.
-
Select Folder and add the revised Terraform configuration.
You can either drag the file onto the dialog's control or select Browse and navigate to the location of the file or folder.
The page is populated with information contained in the Terraform configuration.
- (Optional)
To use custom providers, select Use custom providers and then select the bucket that contains the custom provider.
- (Optional)
Edit the default stack name and enter a stack description. Avoid entering confidential information.
-
Select the compartment where you want to create the stack.
-
For Terraform version, select the version used by the Terraform configuration.
- (Optional)
Select Show advanced options and assign tags to the stack.
- Tag namespace: To add a defined tag, select an existing namespace. To add a free-from tag, leave the value blank.
- Tag key: To add a defined tag, select an existing tag key. To add a free-form tag, type the key name that you want.
- Tag value: Type the tag value that you want.
- Add tag: Click to add another tag.
-
Select Next.
-
In the Configure variables panel, review the variables listed from the Terraform configuration and change as needed.
Important
Don't add your private key or other confidential information to configuration variables.
-
Select Next.
-
In the Review panel, verify the stack configuration.
- (Optional)
To automatically provision resources on creation of the stack, select Run apply.
-
Select Create.
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.