https://github.com/mahdadghasemian/terraform-tutorial
https://github.com/mahdadghasemian/terraform-tutorial
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mahdadghasemian/terraform-tutorial
- Owner: MahdadGhasemian
- Created: 2023-12-14T07:51:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T07:20:59.000Z (over 1 year ago)
- Last Synced: 2025-02-04T16:14:48.871Z (8 months ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-tutorial
## How to install terraform on your system (linux)
[Terraform Install](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)- install-terraform:
- sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
- wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
- gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
- echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
- sudo apt update
- sudo apt-get install terraform
- terraform -help## Project
- touch main.tf
- terraform init
- terraform plan
- terraform apply
- terraform destroy
- terraform validate
- terraform fmt