Terraform AWS SQL nginx Proxy server
Here's the gist of using it directly from github.
module proxy {
source = "terraform-module/proxy-nginx/aws"
version = "2.3.0"
name = format("%s-proxy", var.environment)
instance_type = "m3.medium"
subnet_ids = "subnet-2342234"
ssh_authorized_key = "ssh-rsa AAAA mykey@host"
sql_server_fqdn = "dabase.example.com"
region = "us-west-2"
security_group_ids = "sg-asdfasdg"
tags = {
{ Name = format("%s-sql-express-proxy", var.environment) }
}
}
Name | Version |
---|---|
terraform | >= 0.12 |
Name | Version |
---|---|
aws | n/a |
template | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ami | The EC2 image ID to launch. | string |
"" |
no |
connection_timeout | Database connection timeout. | number |
10 |
no |
cpu_credits | The credit option for CPU usage (unlimited or standard) | string |
"standart" |
no |
docker_compose_version | Version of docker-compose to install. | string |
"1.25.0" |
no |
expiredate | In hours when access should expire. | string |
"100h" |
no |
instance_count | Number of instances to launch | number |
1 |
no |
instance_type | The type of instance to start. e.g. 't2.micro' | string |
n/a | yes |
name | Name to be used on all resources as prefix | string |
n/a | yes |
nginx_version | Version of NGINX to deploy. | string |
"1.17.6" |
no |
region | AWS Region where to deploy resources to. | string |
n/a | yes |
security_group_ids | A list of security group IDs to associate with | list(string) |
null |
no |
sql_server_fqdn | Sql server fqdn. | string |
n/a | yes |
sql_server_port | User name with home dictory. | number |
1433 |
no |
ssh_authorized_key | Add keys to user's authorized keys file. | string |
n/a | yes |
subnet_ids | A list of VPC Subnet IDs to launch in. | list(string) |
n/a | yes |
tags | A mapping of tags to assign to the resource | map(string) |
{} |
no |
user_name | User name with home dictory. | string |
"clouduser" |
no |
Name | Description |
---|---|
id | The ID of the instance |
public_ip | IP addresses assigned to the instance, if applicable |
user_account_expiration | n/a |
$ make help
hooks Commit hooks setup
validate Validate with pre-commit hooks
changelog Update changelog
release Create release version
- 📝 Use a succinct title and description.
- 🐛 Bugs & feature requests can be be opened
- 📶 Support questions are better asked on Stack Overflow
- 😊 Be nice, civil and polite (as always).
Copyright 2019 Ivan Katliarhcuk
MIT Licensed. See LICENSE for full details.
Submit a pull request
Currently maintained by Ivan Katliarchuk and these awesome contributors.