Giter VIP home page Giter VIP logo

terraform-docker-swarm-aws's Introduction

terraform-docker-swarm-aws's People

Contributors

ngerakines avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-docker-swarm-aws's Issues

aws_instance.bastion: Error launching source instance: InvalidKeyPair.NotFound: The key pair 'terraform-key' does not exist

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.