https://github.com/openclimatefix/ocf-infrastructure
Infrastructure code for OCF's cloud environments
https://github.com/openclimatefix/ocf-infrastructure
devops infrastructure terraform
Last synced: 10 months ago
JSON representation
Infrastructure code for OCF's cloud environments
- Host: GitHub
- URL: https://github.com/openclimatefix/ocf-infrastructure
- Owner: openclimatefix
- Created: 2022-01-11T11:03:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:55:44.000Z (over 1 year ago)
- Last Synced: 2024-10-29T10:03:37.749Z (over 1 year ago)
- Topics: devops, infrastructure, terraform
- Language: HCL
- Homepage:
- Size: 3.47 MB
- Stars: 3
- Watchers: 2
- Forks: 6
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OCF Infrastructure
Terraform infrastructure-as-code for cloud environments.
[](https://github.com/openclimatefix/ocf-meta-repo?tab=readme-ov-file#how-easy-is-it-to-get-involved)
[](#contributors-)
A repository for managing the cloud infrastructure for the Open Climate Fix organisation. Contains terraform code for
defining services and describing environments. Each contextual domain and each deployment environment are specified in
folders within the `terraform` directory, along with reusable modules and unittests.
## Repository Structure
```yaml
ocf-infrastructure:
terraform: # Contains all the terraform code for OCF's cloud infrastructure
modules: # Portable terraform modules defining specific cloud infrastructure blocks
nowcasting: # Specific code for the nowcasting domain's cloud infrastructure
pvsite: # Specific code for the nowcasting domain's cloud infrastruture
unittests: # Specific infrastructure code for a environment to test the modules
local-stack: # Code to run the terraform stack locally for local testing/development
.github: # Contains github-specific code for automated CI workflows
```
See the README's in the domain folders for more information on their architecture:
- [Nowcasting Domain](terraform/nowcasting/README.md)
- [PVSite Domain](terraform/pvsite/README.md)
- [Modules](terraform/modules/README.md)
## Terraform Overview
[Terraform](https://learn.hashicorp.com/terraform) is a declarative language which is used to specify and build cloud environments. To install the CLI locally, ensure [Homebrew](https://brew.sh/) is installed, then run
```bash
$ brew install terraform
```
If you aren't on Mac or don't want to use Homebrew,
[check out the official terraform installation instructions](https://learn.hashicorp.com/tutorials/terraform/install-cli#install-terraform).
## Pre-Commit
This repository implements a [pre-commit](https://pre-commit.com/#install) config that enables automatic fixes to code when you create a commit. This helps to maintin consistency in the main repo. To enable this, follow the [installation instructions on the precommit website](https://pre-commit.com/#install).
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Peter Dudfield
💻

Flo
👀

Shanmukh
💻

lordsonfernando
💻

gmlyth
💻

Keenan Johnson
📖

devsjc
💻 🎨

wsharpe41
💻

Pedro Garcia Rodriguez
💻

erikg16
💻

Aatman Vaidya
💻

Vidushee Geetam
🚧

Mahmoud Abdulmawlaa
💻

Divyansh Singh.
📖

Felix
💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!