https://github.com/zircote/terraform-provider-aurora
Terraform Provider for Apache Aurora [WIP]
https://github.com/zircote/terraform-provider-aurora
Last synced: 11 months ago
JSON representation
Terraform Provider for Apache Aurora [WIP]
- Host: GitHub
- URL: https://github.com/zircote/terraform-provider-aurora
- Owner: zircote
- Created: 2018-11-22T14:56:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T09:02:25.000Z (over 7 years ago)
- Last Synced: 2025-05-14T05:26:57.281Z (about 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Terraform Provider
==================
Apache Aurora
# Install
```bash
git clone https://github.com/zircote/terraform-provider-aurora
cd terraform-provider-aurora
go build -o ${TF_PROJECT_DIR}/terraform.d/plugins/${ARCH}/terraform-provider-aurora
cd ${TF_PROJECT_DIR}
terraform init
```
# Aurora Role/Quota Example
Using the Apache Aurora projects Vagrant box, the following example below demonstrates how to set and manage the quota for the `www-data` role.
```hcl-terraform
provider "aurora" {
server_url = "http://192.168.33.7:8081/scheduler"
}
resource "aurora_role" "www-data" {
count = 1
role = "www-data"
cpu = 12.0
ram_mb = 256
disk_mb = 1024
}
```
# Apache Aurora Job Example
```hcl-terraform
variable "contact" {
default = "test@test.com"
}
resource "aurora_role" "test" {
name = "terraform-test-role"
cpu = 6.0
ram_mb = 256
disk_mb = 1024
}
resource "aurora_task" "hello" {
name = "my-hello-world"
role = "${aurora_role.test.name}"
environment = "prod"
cluster = "devcluster"
contact = "${var.contact}"
instances = 3
service = true
tier = "preemtible"
task {
name = "hello_world"
resources {
cpu = 1.0
ram_mb = 8
disk_mb = 4
}
process {
name = "hello"
cmdline = <