Git Product home page Git Product logo

Comments (4)

linsun avatar linsun commented on August 12, 2024

Curious if this is supplied in a third file like .tfvar file or env vars.... I don't see the terraform instance plugin code takes the -var-file as the param.

from deploykit.

anonymuse avatar anonymuse commented on August 12, 2024

@linsun, I made sure to put my SSH keypair here and here in the key_name field. I used the name of the keypair in the AWS control panel:

{
    "Properties" : {
        "type" : "aws_instance",
        "value" : {
            "ami" : "${lookup(var.aws_amis, var.aws_region)}",
            "instance_type" : "m1.small",
            "key_name": "PUBKEY",
            "vpc_security_group_ids" : ["${aws_security_group.default.id}"],
            "subnet_id": "${aws_subnet.default.id}",
            "tags" :  {
                "Tier" : "web",
                "InstancePlugin" : "terraform"
            },
            "connection" : {
                "user" : "ubuntu"
            }
        }
    },

I believe I also needed to make sure that my ssh-agent has the SSH key available to it in order to connect to the servers afterward. Not 100% sure about that.

from deploykit.

linsun avatar linsun commented on August 12, 2024

Thank you @anonymuse! Ah, I didn't realize that key_name is the only thing needed for applying terraform AWS plan. yes, i am curious on the ssh key too, i would think that should be specified in the connection blob.

from deploykit.

wfarner avatar wfarner commented on August 12, 2024

Sounds like some progress was made here. Anything that should be fed back into docs?

from deploykit.

Related Issues (20)

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.