This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | variable "token" { | |
| type = string | |
| description = "GitHub personal access token" | |
| } | |
| variable "username" { | |
| type = string | |
| description = "GitHub username" | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | token = "ghp_xxxx" # insert your GitHub Personal Access Token here | |
| username = "hibeekaey" | |
| repositories = { | |
| "aipnd-project" = { | |
| name = "aipnd-project" | |
| description = "AI Programming with Python Nanodegree Project" | |
| visibility = "public" | |
| archived = false | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | terraform { | |
| required_providers { | |
| github = { | |
| source = "integrations/github" | |
| version = "6.2.1" | |
| } | |
| } | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SCRIPTS_DIR = scripts | |
| # Default target (executed when you run 'make' with no arguments) | |
| all: init-upgrade | |
| # Initialize terraform | |
| init-upgrade: | |
| terraform init -upgrade -reconfigure | |
| # Generate Docs | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | provider "github" { | |
| token = var.token | |
| owner = var.username | |
| } | |
| module "repository" { | |
| for_each = var.repositories | |
| source = "github.com/hibeekaey/example-github-manager//modules/repository?ref=v1.0.2" | |
| name = each.value.name | |
| description = each.value.description | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | variables { | |
| private_repository = { | |
| name = "github-private-repository-test" | |
| description = "This is a test private repository" | |
| visibility = "private" | |
| archived = false | |
| archive_on_destroy = false | |
| } | |
| public_repository = { | |
| name = "github-public-repository-test" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | terraform.tfstate filter=git-crypt diff=git-crypt | |
| terraform.tfvars filter=git-crypt diff=git-crypt |