{"id":18498519,"url":"https://github.com/zircote/terraform-provider-aurora","last_synced_at":"2025-07-23T06:33:28.915Z","repository":{"id":66126323,"uuid":"158714520","full_name":"zircote/terraform-provider-aurora","owner":"zircote","description":"Terraform Provider for Apache Aurora [WIP]","archived":false,"fork":false,"pushed_at":"2019-01-22T09:02:25.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T05:26:57.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zircote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-22T14:56:35.000Z","updated_at":"2019-01-22T09:02:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ad48450-a55d-44b5-ad35-04e9d6224f80","html_url":"https://github.com/zircote/terraform-provider-aurora","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zircote/terraform-provider-aurora","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fterraform-provider-aurora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fterraform-provider-aurora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fterraform-provider-aurora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fterraform-provider-aurora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/terraform-provider-aurora/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fterraform-provider-aurora/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266631474,"owners_count":23959419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:40:58.818Z","updated_at":"2025-07-23T06:33:28.882Z","avatar_url":"https://github.com/zircote.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Terraform Provider\n==================\n\n\nApache Aurora\n\n# Install\n\n```bash\ngit clone https://github.com/zircote/terraform-provider-aurora\n\ncd terraform-provider-aurora\n\ngo build -o ${TF_PROJECT_DIR}/terraform.d/plugins/${ARCH}/terraform-provider-aurora\n\ncd ${TF_PROJECT_DIR}\n\nterraform init\n\n```\n\n\n# Aurora Role/Quota Example\n\nUsing the Apache Aurora projects Vagrant box, the following example below demonstrates how to set and manage the quota for the `www-data` role.\n\n```hcl-terraform\nprovider \"aurora\" {\n  server_url = \"http://192.168.33.7:8081/scheduler\"\n\n}\n\nresource \"aurora_role\" \"www-data\" {\n  count = 1\n  role = \"www-data\"\n  cpu = 12.0\n  ram_mb = 256\n  disk_mb = 1024\n}\n\n```\n\n# Apache Aurora Job Example\n\n```hcl-terraform\nvariable \"contact\" {\n  default = \"test@test.com\"\n}\n\nresource \"aurora_role\" \"test\" {\n  name = \"terraform-test-role\"\n  cpu = 6.0\n  ram_mb = 256\n  disk_mb = 1024\n}\n\n\nresource \"aurora_task\" \"hello\" {\n  name = \"my-hello-world\"\n  role = \"${aurora_role.test.name}\"\n  environment = \"prod\"\n  cluster = \"devcluster\"\n  contact = \"${var.contact}\"\n\n  instances = 3\n  service = true\n  tier = \"preemtible\"\n\n  task {\n    name = \"hello_world\"\n    resources {\n      cpu = 1.0\n      ram_mb = 8\n      disk_mb = 4\n    }\n    process {\n      name = \"hello\"\n      cmdline = \u003c\u003cEOF\nwhile true; do\n echo hello\n sleep 10\ndone\nEOF\n      max_failures = 0\n      daemon = false\n      ephemeral = true\n      min_duration = 5\n      final = false\n      logger {\n        destination = \"stderr\"\n        mode = \"standard\"\n        rotate {\n          log_size = 100\n          backups = 5\n        }\n      }\n    }\n    process {\n      name = \"finalizer\"\n      cmdline = \"echo DONE; sleep 10\"\n      final = true\n    }\n  }\n}\n```\n\n# External Storage of Instance Counts\n\n```hcl-terraform\nvariable \"contact\" {\n  default = \"test@test.com\"\n}\n\nvariable \"environment\" {\n  default = \"prod\"\n}\n\nresource \"aurora_role\" \"test\" {\n  name = \"terraform-example-role\"\n  cpu = 6.0\n  ram_mb = 256\n  disk_mb = 1024\n}\n\ndata \"consul_keys\" \"my_hello_world\" {\n  datacenter = \"nyc1\"\n  token = \"abcd\"\n\n  key {\n    name = \"instance_count\"\n    path = \"service/catalog/${aurora_role.test.name}/${var.environment}/my-hello-world\"\n    default = \"5\"\n  }\n}\n\nresource \"aurora_task\" \"hello\" {\n  name = \"my-hello-world\"\n  role = \"${aurora_role.test.name}\"\n  environment = \"${var.environment}\"\n  contact = \"${var.contact}\"\n\n  instances = \"${data.consul_keys.my_hello_world.var.instance_count}\"\n  service = true\n\n  task {\n    name = \"hello_world\"\n    resources {\n      cpu = 1.0\n      ram_mb = 8\n      disk_mb = 4\n    }\n    process {\n      name = \"hello\"\n      cmdline = \u003c\u003cEOF\nwhile true; do\n echo hello\n sleep 10\ndone\nEOF\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fterraform-provider-aurora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Fterraform-provider-aurora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fterraform-provider-aurora/lists"}