Skip to content

Microsoft SQL proxy terraform setup

License

Notifications You must be signed in to change notification settings

terraform-module/terraform-aws-proxy-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

120d5b7 Β· May 18, 2020

History

11 Commits
Dec 22, 2019
May 18, 2020
Dec 23, 2019
Dec 22, 2019
Dec 22, 2019
May 18, 2020
May 18, 2020
Dec 22, 2019
Dec 22, 2019
May 18, 2020
Dec 23, 2019
Dec 22, 2019
Dec 22, 2019
Dec 22, 2019
Dec 22, 2019
Dec 23, 2019
Dec 22, 2019

Repository files navigation

terraform-aws-proxy-nginx

Terraform AWS SQL nginx Proxy server

Maintenance

Usage example

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) }
  }
}

Assumptions

Available features

Module Variables

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a
template n/a

Inputs

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

Outputs

Name Description
id The ID of the instance
public_ip IP addresses assigned to the instance, if applicable
user_account_expiration n/a

Commands

$ make help 
hooks                          Commit hooks setup
validate                       Validate with pre-commit hooks
changelog                      Update changelog
release                        Create release version 

πŸ“ Guidelines

  • πŸ“ 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).

License

Copyright 2019 Ivan Katliarhcuk

MIT Licensed. See LICENSE for full details.

How to Contribute

Submit a pull request

Authors

Currently maintained by Ivan Katliarchuk and these awesome contributors.

ForTheBadge uses-git

Terraform Registry