Terraform simple script for creation linux servers (Ubuntu and/or Amazon Linux) in AWS ec2.
On each set up nginx server and some start page
- Region - region (by default "eu-central-1")
- Project owner - pr_owner (by default = "Ownrer_of_project")
- Project name - pr_name "Name_of_project"
- Name of enviroment - env (by default = "Environment_name")
- Name of key file - key_name (by default "ga-frank")
- List of allow ports - allow_ports (by default ["80", "443", "22"])
- Count of Ubuntu servers - count_ub_serv" (by default 1)
- Count of Amazon Linux servers - count_aml_serv (by default 1)
You can redifine variables in variables.tf (.tfvar) or in another way (in command terraform line, env, etc..)