Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwarwick/jnet-azure
Terraform scripts to deploy Jinteki Netrunner to Azure
https://github.com/jwarwick/jnet-azure
Last synced: 4 days ago
JSON representation
Terraform scripts to deploy Jinteki Netrunner to Azure
- Host: GitHub
- URL: https://github.com/jwarwick/jnet-azure
- Owner: jwarwick
- License: mit
- Created: 2021-03-24T13:08:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-24T13:20:55.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T04:41:32.430Z (about 2 months ago)
- Language: HCL
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Jinteki Netrunner Terraform Deployment
Terraform script to deploy a Netrunner server to Azure using managed container instances.
## Setup
- Have an Azure account. Login with `az login`.
- Have a CloudFlare account.
- Have a domain managed in CloudFlare.
- Have the nameservers for the domain point to CloudFlare.
- Get the Global API Key for your CloudFlare account (don't generate an API Token)## Configuration
Terraform variables needs to be configured. The easiest approach is to use a `terraform.tfvars` file.```
% cp terraform.tfvars.example terraform.tfvars
% vim terraform.tfvars
```## Usage
```
% terraform init
% terraform apply
```## Cleanup
```
% terraform destroy
```## Resources Created
- Azure Resource Group
- Azure Storage Account
- Azure File Share: MongoDB data
- Azure File Share: Card images
- Azure Container Instance
- JNet Container
- MongodDB Container
- Nginx Container
- Cloudflare Record: A Record, domain -> IP of Azure Container Instance
- Cloudflare Record: CNAME Record, www.domain -> domain