An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 13, 2022 07:01 am GMT
Original Link: https://dev.to/leroykayanda/initial-pc-set-up-for-terraform-cloud-2055
Initial set up for Terraform Cloud
- Install terraform
https://learn.hashicorp.com/tutorials/terraform/install-cli
- Install this vscode extension.
Open a terraform cloud account. Create a workspace with a VCS workflow.
Set up a simple script to launch an EC2 instance.
https://github.com/hashicorp/tfc-guide-example
- Use this in the terraform block.
terraform { backend "remote" { hostname = "app.terraform.io" organization = "org-name" workspaces { name = "workspace_name" } } required_providers { aws = { source = "hashicorp/aws" version = ">= 4.4.0" } }}
Log in to terraform cloud
terraform login
Run
terraform init
Commit to your repo to trigger an apply
Original Link: https://dev.to/leroykayanda/initial-pc-set-up-for-terraform-cloud-2055
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To