An open API service indexing awesome lists of open source software.

https://github.com/onebeyond/org-infra


https://github.com/onebeyond/org-infra

Last synced: 3 months ago
JSON representation

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
```