Skip to content

ld-singh/terraform-aws-webserver

Repository files navigation

Document for terraform-aws-webserver

Table of Contents

  1. Install Pre-requisites
  2. Usage
  3. Requirements
  4. Providers
  5. Inputs
  6. Outputs

Install Pre-requisites

  • terraform Required to run terraform commands
  • pre-commit Required to run pre-commit
  • go Required for terraform docs hook
  • terraform-docs required for terraform docs hook.
  • TFLint required for terraform tflint hook.

Usage

Requirements

Name Version
aws ~> 4.0
null ~> 3.0

Providers

Name Version
aws 4.45.0
local 2.2.3
tls 4.0.4

Modules

Name Source Version
vpc terraform-aws-modules/vpc/aws n/a

Resources

Name Type
aws_instance.webserver resource
aws_key_pair.webserverkey resource
aws_security_group.allow_ports resource
local_file.myterrakey resource
tls_private_key.oskey resource

Inputs

Name Description Type Default Required
aws_access_key AWS User Access Key string "XXXXXXXXXXXXXXXXXX" no
aws_amis n/a map
{
"ap-southeast-2": "ami-0df609f69029c9bdb"
}
no
aws_region AWS Region to launch servers string "ap-southeast-2" no
aws_secret_key AWS User Secret Key string "XXXXXXXXXXXXXXXXXX" no
instance_count n/a number 1 no
instance_type Type of AWS EC2 instance. string "t2.micro" no
key_name AWS key name string "name of keypair" no
public_key_path Enter the path to the SSH Public Key to add to AWS. string "~/.ssh/yourkey.pem" no

Outputs

Name Description
ip_addresses n/a
keyvalue n/a
webserver_ids n/a

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published