The following requirements are needed by this module:
To try any example, clone this repository, set the following parameters into input.tfvars:
- management_access_key = ""
- management_secret_key = ""
- operational_access_key = ""
- operational_secret_key = ""
- priv_key = ""
- pub_key = ""
- hosted_zone_cert = ""
- hosted_zone_key = ""
Or run the following commands for generate input.tfvars file:
$ ./setup.sh filename-for-key operational-access-key operational-secret-key management-access-key management-secret-key
And run the following command from within the example's directory:
$ terraform init; terraform apply -auto-approve -var-file="input.tfvars"
$ terraform destroy -auto-approve -var-file="input.tfvars"
The following providers are used by this module:
-
aws (3.69.0)
-
aws.management (3.69.0)
The following Modules are called:
Source: ./modules/jumphost
Version:
Source: ./modules/vpc
Version:
Source: ./modules/webserver
Version:
The following resources are used by this module:
- aws_route.management (resource)
- aws_route.management_pub (resource)
- aws_route.operational (resource)
- aws_vpc_peering_connection.management (resource)
- aws_vpc_peering_connection_accepter.operational (resource)
- aws_caller_identity.management (data source)
- aws_caller_identity.operational (data source)
- aws_route53_zone.hosted_zone_id (data source)
The following input variables are required:
Description: Cert for hostedzone
Type: string
Description: Key of hostedzone certificate
Type: string
Description: Access Key of management AWS Account
Type: string
Description: Secret Key of management AWS Account
Type: string
Description: Access Key of operational AWS Account
Type: string
Description: Secret Key of operational AWS Account
Type: string
Description: SSH Private Key for EC2 Instances
Type: string
Description: SSH Public Key for EC2 Instances
Type: string
Description: n/a
Type: string
Default: "ami-04dd4500af104442f"
Description: Actual number of instances to be used by the ASG.
Type: number
Default: 2
Description: Maximum number of instances to be used by the ASG.
Type: number
Default: 10
Description: Minimum number of instances to be used by the ASG.
Type: number
Default: 2
Description: A list of availability zones in which to create subnets
Type: list(string)
Default:
[
"eu-west-1a",
"eu-west-1b",
"eu-west-1c"
]
Description: n/a
Type: map(any)
Default:
{
"management": "100.80.0.0/16",
"operational": "120.80.0.0/16"
}
Description: n/a
Type: string
Default: "256490151058.sygris.net"
Description: Jump host instance type
Type: string
Default: "t3.micro"
Description: n/a
Type: list(string)
Default:
[
"100.80.3.0/24",
"100.80.4.0/24",
"100.80.5.0/24"
]
Description: n/a
Type: list(string)
Default:
[
"100.80.0.0/24",
"100.80.1.0/24",
"100.80.2.0/24"
]
Description: n/a
Type: list(string)
Default:
[
"120.80.3.0/24",
"120.80.4.0/24",
"120.80.5.0/24"
]
Description: n/a
Type: list(string)
Default:
[
"120.80.0.0/24",
"120.80.1.0/24",
"120.80.2.0/24"
]
Description: n/a
Type: string
Default: "Sygris"
Description: n/a
Type: string
Default: "eu-west-1"
Description: Default EC2 SSH User
Type: string
Default: "ec2-user"
Description: Web server instance type
Type: string
Default: "t3.micro"
No outputs.