Create a Terraform Cloud API token
Astrolabe reads Terraform Cloud with an API token. The token has the rights of its owner: Astrolabe only sees the workspaces this owner can see, and it only reads them.
You create the token once, in Terraform Cloud.
Use a dedicated user
Create a Terraform Cloud user for Astrolabe and give it read access to the workspaces your components name. Your own token works too, but Astrolabe stops working the day your access ends.
π Create the tokenβ
-
In Terraform Cloud, log in with this user.
-
Open User settings, then Tokens.
-
Click Create an API token.
-
Give it a description, for example
Astrolabe, then confirm. -
Copy the token now. Terraform Cloud never shows it again.
These steps happen in Terraform Cloud. They were not checked on a live instance.
β That's it!