https://github.com/onebeyond/org-infra
https://github.com/onebeyond/org-infra
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onebeyond/org-infra
- Owner: onebeyond
- Created: 2023-07-03T09:10:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T14:21:01.000Z (about 2 years ago)
- Last Synced: 2026-01-13T07:46:22.927Z (6 months ago)
- Language: HCL
- Size: 89.8 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# org-infra
## Terraform state
Terraform states are stored in a backend remotely in an AWS S3 bucket. This bucket is non-public, encrypted and has versioning enabled to prevent data loss.
## Requirements
You need to have Terraform >= 1.6 installed on your machine. You can download it from [here](https://www.terraform.io/downloads.html).
## Testing locally
You can test the Terraform code locally by running the following commands (you need a valid GitHub token):
```bash
terraform init
terraform plan
```
Debug modules:
```bash
terraform plan -target=module.repositories
```
## Importing a repository
```bash
terraform import module.repositories.module.rascal.github_repository.repo rascal
terraform import module.repositories.module.rascal.github_branch_protection.main rascal:master
```