Skip to content

durist/aws-terraform-ecs-demo

Repository files navigation

aws-terraform-ecs-demo

Simple demo of web container that serves https

This needs a cert; see README in /certs directory.

To get address of service

terraform output -module=service

alb_dns_name will be hostname; note that the cert won't match.

SSHing to bastion/EC2 nodes

Create an amazon key pair and add the key name to key_name in vars.tf.

Need to get IPs of ec2 nodes from AWS console

To get ip of bastion:

terraform output -module=bastion

Add key to ssh-agent

ssh-add /path/to/private_key

SSH to bastion host

ssh ec2-user@<bastion-ip>

SSH through bastion host to ec2 node

ssh -o ProxyCommand='ssh -W %h:%p ec2-user@<bastion-ip>' ec2-user@<target-ip>

About

Demo of terraform ECS using philips-software modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published