Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.9 KB

README.md

File metadata and controls

59 lines (49 loc) · 1.9 KB

Terraform_ansible_aws

This simple project is a Terraform module for provisioning infrastructure in combination with ansible on AWS. It is provisioning a dev and a prod enviroment.

Features

  • Creates a security group.
  • Creates an EC2 instance.
  • Configures the EC2 instance with ansible.
  • Includes a sample application.

Installation

In order to use the terraform_aws repository, you will need the following:

Then 1. Clone the repository:

git clone https://github.com/UBONGFX/terraform_aws.git

Usage

  1. cd in the dev or prod directory
cd dev
  1. Initialize Terraform:
terraform init
  1. Apply the Terraform configuration:
terraform apply

Inputs

Name Description Type Default
EC2 Name The Name for the EC2 instance. string -
ami The ID of the AMI to use for the EC2 instance. string -
instance_type The type of EC2 instance to launch. string t2.micro
security_group_name The name of the security group. string -
ssh_user The user of the EC2 instance used for the instance ssh. string ubuntu
key_name The name of the EC2 Key Pair to use for the instance. string -
private_key_path The local filepath to connect to the EC2 instance. string -

Outputs

Name Description
ec2_public_ip The public IP address of the EC2 instance.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Authors

  • The creator of this project is ubonGFX