Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 523 Bytes

File metadata and controls

36 lines (27 loc) · 523 Bytes

GitHub Provider Terraform:

https://registry.terraform.io/providers/integrations/github/latest/docs

Code Used:

terraform {
  required_providers {
    github = {
      source  = "integrations/github"
      version = "~> 5.0"
    }
  }
}

provider "github" {
  token = "your-token-here"
}

resource "github_repository" "example" {
  name        = "example"
  description = "My awesome codebase"

  visibility = "public"

}

Initialize and Apply:

terraform init
terraform plan
terraform apply