This repo contains simple terraform code with null provider and that use state management in Atlas. State management is the state of your infrastructure changes - what resources are added and/or removed where Atlas is remote state API to store those changes.
- Install Terraform
- Download and install accordingly to your OS as described here : https://www.terraform.io/downloads.html
- Open Command Line Interpreter:
OS system | Operation |
---|---|
Windows | Start menu -> Run and type cmd |
Linux | Start terminal |
macOS | Press Command - spacebar to launch Spotlight and type "Terminal," then double-click the search result. |
- Register in Terraform Enterprise, create an organisation and generate atlas token
- Run the following commands:
export ATLAS_TOKEN=<atlas token>
git clone https://github.com/yaroslav-007/atlas-remote-state-backend.git
cd atlas-remote-state-backend
terraform init
terraform apply