Skip to content

aluvium/terraform-drafts

Repository files navigation

terraform drafts

Idea

With purpose to create drafts for deploying automated environments IaaC mainly for AWS cloud and Docker, using Terraform.


Content

Docker :
  1. terraform-docker-nginx - Delpoying a container using the docker enviroment. Pulling img from docker hub.
  2. terraform-docker-nginx-proxy - Two containter one with an app second as a proxy. Pulling from a docker hub.
  3. terraform-docker-custom - Applaying docker container using for e.g. docker inspect output as container resource.
AWS :
  1. terraform-ec2_local - Bare EC2 instance using local credentials.
  2. terraform-ec2_cloud - Bare EC2 instance using credentials from cloud.
  3. terraform-aws-vpc - VPC, EC2 instances - both took from terraform-aws-modules. Creds from cloud.
  4. terraform-aws-static-web-s3 - VPC, EC2 instances - both took from terraform-aws-modules. Bucket S3 - own module. Creds from cloud.
  5. terraform-aws-vpc-elb-sg-vars - VPC, app_security_group, lb_security_group, elb_http, - took from terraform-aws-modules. Own module ec2_instances. Resources - random_string. Local creeds.
  6. terraform-aws-vpc-lb-ec2-db - VPC, app_security_group, lb_security_group, elb_http, aws_db_subnet_group, aws_db_instance - took from terraform-aws-modules.Own module ec2_instances. Resources - random_string. Local creeds.🪓 Optimalized, automated variables.

Usage

git clone https://github.com/aluvium/terraform-drafts.git
terraform init && terraform apply

Contributions

https://learn.hashicorp.com