Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/builde7b0b/terraform-github-hello-world
A simple terraform hello world project which creates a github repository.
https://github.com/builde7b0b/terraform-github-hello-world
terraform
Last synced: about 1 month ago
JSON representation
A simple terraform hello world project which creates a github repository.
- Host: GitHub
- URL: https://github.com/builde7b0b/terraform-github-hello-world
- Owner: builde7b0b
- Created: 2024-08-21T05:46:06.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T06:31:27.000Z (6 months ago)
- Last Synced: 2024-11-09T03:53:04.828Z (3 months ago)
- Topics: terraform
- Language: HCL
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-github-hello-world
## description
A simple terraform hello world project which creates a github repository.## Setup Environment
- Install Terraform
`brew install hashicorp/tap/terraform`- Check Version
`$ terraform --version `Upgrade to latest version
`$ brew upgrade hashicorp/tap/terraform`## Steps
1. Clone this Repo2. Create a file names terraform.tfvars to provide your variable values (add this file to .gitignore to avoid committing sensitive information):
```
github_token = "your-github-token"
github_owner = "your-github-username"
```
3. You can generate a token in settings of your Github Account4. Initialize Terraform
`terraform init`5. Plan and Apply Configuration
```
terraform plan
terraform apply
```
6. Verify the Repository was Created
Go to your GitHub account and check for the newly created repository. You should see the hello-world-repo with the description "A simple 'Hello World' repository created by Terraform."7. Clean up Resources
Destroy the resources to remove the repository.
`terraform destroy`