Bootstrap Test Space
Before any Terraform blueprint can be created, an API token to authorize interactions with the AutoCloud services and a test workspace module needs to be created to hold the Terraform source that will generate the blueprint.
Navigate to the Terraform provider API token Service Accounts page in the AutoCloud settings UI.
- Create a Service Account using CREATE and add Name, Description and assign it to a Group.
2. Generate a token for the Service Account using the ... menu, and set an expiration date. You will be allowed to copy it only once! To learn more about creating and using AutoCloud's Terraform Provider auth tokens, click here.
Create a test module following the Hashicorp standard module structure, with additional files to configure providers:
Pin the required versions in versions.tf:
Configure the AutoCloud provider in providers.tf:
Add an AutoCloud data source to main.tf:
Run the first plan: