This example deploys an EC2 instance and a security group to permit inbound SSH + Docker API.
Source:
None.
region
- The AWS region code that identifies the API end-point to use
First, update additional-variables.json with appropriate values.
cd examples/aws
export AWS_ACCESS_KEY_ID=my_access_key_id
export AWS_SECRET_KEY=my_secret_key
docker-machine create --driver terraform \
--terraform-config $PWD/main.tf \
--terraform-additional-variables-file $PWD/additional-variables.json \
hello-aws
This configuration produces:
aws_instance.docker_machine
- The Docker hostaws_security_group.docker_machine
- The network security group