Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhythmictech/terraform-aws-awx
Spin up AWX in AWS
https://github.com/rhythmictech/terraform-aws-awx
ansible-tower aws awx ecs fargate terraform terraform-module terraform-modules
Last synced: 3 days ago
JSON representation
Spin up AWX in AWS
- Host: GitHub
- URL: https://github.com/rhythmictech/terraform-aws-awx
- Owner: rhythmictech
- License: mit
- Created: 2019-07-01T14:28:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T19:30:22.000Z (over 3 years ago)
- Last Synced: 2023-03-02T22:06:00.771Z (over 1 year ago)
- Topics: ansible-tower, aws, awx, ecs, fargate, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/rhythmictech/awx/aws
- Size: 59.6 KB
- Stars: 7
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-awx
[![](https://github.com/rhythmictech/terraform-aws-awx/workflows/check/badge.svg)](https://github.com/rhythmictech/terraform-aws-awx/actions)Spin up AWX in AWS Fargate
## About
Terraform to spin up AWX on ECS
- https://github.com/ansible/awx
- https://aws.amazon.com/ecs/## Getting Started
Add necessary variables. See `variables.tf` for inputs.```
tf plan -out /tmp/tf.plan
tf apply /tmp/tf.plan
```### Prerequisites
- VPC
- Public and Private Subnets
- DNS name in Route53
- SSL Certificate for DNS name in Certificate ManagerAdd these values into a `.tfvars` file, like below;
```
# Required## ALB of certificate used to secure traffic to ALB
alb_ssl_certificate_arn = "arn:aws:acm:region:accountid:certificate/hash"## DNS name to assign ALB handling traffic
route53_zone_name = "tower.google.com."## VPC in which to spin all this up
vpc_id = "vpc-c0ffeffe"## CIDR Block of VPC
cidr_block = "1.234.678.0/20"database_subnets = [
"subnet-123abc",
"subnet-123abc",
"subnet-123abc"
]
public_subnets = [
"subnet-123abc",
"subnet-123abc",
"subnet-123abc"
]
private_subnets = [
"subnet-123abc",
"subnet-123abc",
"subnet-123abc"
]# Optional
cluster_name = "ayy-doubleyou-ex"
aws_secret_klay = "myawxsecret"
awx_admin_password = "myawxadminpasswordtags = {
whodunnit = "me"
}
```This configuration (ignoring fake names) will produce an AWX instance at https://tower.google.com
## Variables
Definitive answers in [variables.tf](variables.tf)## Outputs
Definitive answers in [outputs.tf](outputs.tf)