Skip to content

zeusal/sygris-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

The following requirements are needed by this module:

Run

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:

Deploy

$ terraform init; terraform apply -auto-approve -var-file="input.tfvars"

Destroy

$ terraform destroy -auto-approve -var-file="input.tfvars"

Providers

The following providers are used by this module:

Modules

The following Modules are called:

Source: ./modules/jumphost

Version:

Source: ./modules/vpc

Version:

Source: ./modules/webserver

Version:

Resources

The following resources are used by this module:

Required Inputs

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"

Outputs

No outputs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published