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

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]

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