Generate GITHUB ACCESS Token
Write Providers.tf
terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 4.0"
}
}
}
# Configure the GitHub Provider
provider "github" {
token = "XXXXXXXXXXX"
owner = "devopsschool-demo-temporary"
}
Write Resources-github.tf
resource "github_repository" "github-repo-1" {
name = "terraform-demo-1"
description = "My awesome codebase"
visibility = "public"
}
Run Following Commands
$ terraform init
- Download Providers & Modules
$ terraform validate
- Validate .tf profile
$ terraform plan
- DRY RUN
$ terraform apply
- Create a resources &&& store a resonse IN STATE file(json)
$ terraform destroy
- Destroy a resources using STATE file(json)
Terraform Basic Tutorial with Demo by Piyush 2020
Terraform Fundamental Tutorials by Harish in 2020
Terraform Fundamental Tutorial By Guru in 2020 Part-1
Terraform Fundamental Tutorial By Guru in 2020 Part-2
Terraform Fundamental Tutorial By Guru in 2020 Part-3
Terraform Fundamental Tutorial By Guru in 2020 Part-4
Terraform Fundamental Tutorial By Guru in 2020 Part-5
Terraform Advance Tutorial for Beginners with Demo 2020 — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024