View export command
This file contains 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
export GITLAB_TOKEN=<<Replace the Personal Access Token here!!>> |
View Terraform Files
This file contains 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
# gitlab_provider.tf | |
terraform { | |
required_providers { | |
gitlab = { | |
source = "gitlabhq/gitlab" | |
} | |
} | |
} |
View Terraform Commands
This file contains 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
# To initialize a working directory containing Terraform configuration files | |
terraform init | |
# To rewrite Terraform configuration files to a canonical format and style | |
terraform fmt | |
# To validate the configuration files in a directory (not accessing any remote services such as remote state, provider APIs, etc) | |
terraform validate | |
# To create an execution plan || using -out=FILE option, the plan could be stored as an external file |
View Terraform Files
This file contains 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
# docker_provider.tf | |
terraform { | |
required_providers { | |
docker = { | |
source = "kreuzwerker/docker" | |
version = "~> 2.13.0" | |
} | |
} | |
} |
View export command
This file contains 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
export GITHUB_TOKEN=<<Replace the Personal Access Token here!!>> |
View Terraform Commands
This file contains 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
# To initialize a working directory containing Terraform configuration files | |
terraform init | |
# To rewrite Terraform configuration files to a canonical format and style | |
terraform fmt | |
# To validate the configuration files in a directory (not accessing any remote services such as remote state, provider APIs, etc) | |
terraform validate | |
# Optional to run || To generate a visual representation || Need Graphviz package |
View provider.tf
This file contains 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 = "~> 4.0" | |
} | |
} | |
} | |
provider "github" { |
View github_repo.tf
This file contains 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
resource "github_repository" "Document_as_a_Code" { | |
name = "document_as_a_code" | |
description = "A Repo for managing for CI/CD implementation" | |
visibility = "public" | |
} |
View gist:527fdc36281926720e404407ec484c50
This file contains 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
python3 3_custom_diagram.py # To run the file to generate diagram | |
ls -lrt # To check the files. A file called custom_diagram.jpg will be generated in the directory |
View gist:c8615f6ba44843df690e1ecc9babb2ca
This file contains 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
xdg-open custom_diagram.jpg # Opens the generated diagram in default image viewver. |
NewerOlder