Source files used to create a VPC, bastion host, and EC2 instances that form a docker swarm mode cluster.
For more information, read the tutorial: http://ngerakines.me/2016/11/20/terraform_docker_swarm_and_aws/
Home Page: http://ngerakines.me/2016/11/20/terraform_docker_swarm_and_aws/
Source files used to create a VPC, bastion host, and EC2 instances that form a docker swarm mode cluster.
For more information, read the tutorial: http://ngerakines.me/2016/11/20/terraform_docker_swarm_and_aws/
Hi,
Really good blog post you wrote. This is exactly what I'm looking for! :)
I cloned your repo and ran terraform apply
.
But I get this error:
* aws_instance.bastion: Expected 1 AMI for ID: ami-1a6cc07a, got none
Any idea what might cause it?
Hi,
Can you please help with some details on how to create the keypair?
I tried ssh-keygen -b 2048 -t rsa -f ~/.ssh/terraform-key
and then refer to that key from bastion.tf and swarm.tf.
But that does not work.
* aws_instance.bastion: Error launching source instance: InvalidKeyPair.NotFound: The key pair 'terraform-key' does not exist
status code: 400, request id: 1fff4eed-711a-48ea-9f4d-7d86934821b9
What should I do? This is how I have replaced foo in the settings:
$ grep -1 terraform-key *
bastion.tf- associate_public_ip_address = "true"
bastion.tf: key_name = "terraform-key"
bastion.tf- subnet_id = "${aws_subnet.a.id}"
--
--
bastion.tf- user = "ubuntu"
bastion.tf: private_key = "${file("~/.ssh/terraform-key")}"
bastion.tf- agent = false
--
--
swarm.tf- associate_public_ip_address = "true"
swarm.tf: key_name = "terraform-key"
swarm.tf- subnet_id = "${aws_subnet.a.id}"
--
--
swarm.tf- user = "ubuntu"
swarm.tf: private_key = "${file("~/.ssh/terraform-key")}"
swarm.tf- agent = false
--
--
swarm.tf- associate_public_ip_address = "true"
swarm.tf: key_name = "terraform-key"
swarm.tf- subnet_id = "${aws_subnet.a.id}"
--
--
swarm.tf- user = "ubuntu"
swarm.tf: private_key = "${file("~/.ssh/terraform-key")}"
swarm.tf- agent = false
--
--
swarm.tf- user = "ubuntu"
swarm.tf: private_key = "${file("~/.ssh/terraform-key")}"
swarm.tf- agent = false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.