This recipe will be split into three parts, as follows:
- Configuring local mode execution in Terraform Cloud
- Generating a new API token
- Configuring and using the remote backend
For the first part, we will configure local mode execution, as follows:
- In our new Terraform Cloud workspace (demo-app), go to the Settings | General tab and change the Execution Mode option to Local:
- Click the Save settings button to apply these changes.
Now, for the second part, we need to generate a new API token to authenticate with Terraform Cloud. Follow these steps:
- In the Settings tab of the demoBook organization, go to the API Tokens tab:
- Scroll down to the bottom of this page and click on the Create an authentication token button to generate a new API token.
- Keep this generated token safe.
Finally, the last part is to configure and use the remote backend. Follow these steps:
- In the main.tf file of the Terraform configuration, add...