Packer Amazon-EBS builder example build fails: Timeout waiting for SSH [closed] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Trying to SSH into an Amazon Ec2 instance - permission errorPermission denied (publickey) when SSH Access to Amazon EC2 instanceAmazon EC2 - MindTerm Authentication failed, permission deniedHaving trouble creating a basic AWS AMI with Packer.io. SSH TimeoutWhat to bake into an AWS AMI and what to provision using cloud-init?What is the correct way to query Amazon AWS AMI from packer?Using Packer, how does one build an Amazon ECR Instance remotelyAWS - SSH to EC2 Timeout when built from AMI in another VPCTerraform setup tips: TLS communication across VPCsHaving problems with Packer: amazon-ebs: Timeout waiting for SSH

Why weren't discrete x86 CPUs ever used in game hardware?

Lagrange four-squares theorem --- deterministic complexity

Unit testing extension method adding view location expander

An adverb for when you're not exaggerating

Why does 14 CFR have skipped subparts in my ASA 2019 FAR/AIM book?

Do I really need to have a message in a novel to appeal to readers?

Most bit efficient text communication method?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Random body shuffle every night—can we still function?

Is there hard evidence that the grant peer review system performs significantly better than random?

How does the math work when buying airline miles?

Antipodal Land Area Calculation

Karn the great creator - 'card from outside the game' in sealed

How to report t statistic from R

Sentence with dass with three Verbs (One modal and two connected with zu)

What makes a man succeed?

What does 丫 mean? 丫是什么意思?

Is CEO the "profession" with the most psychopaths?

Semigroups with no morphisms between them

What does it mean that physics no longer uses mechanical models to describe phenomena?

How does Belgium enforce obligatory attendance in elections?

macOS: Name for app shortcut screen found by pinching with thumb and three fingers

Why are my pictures showing a dark band on one edge?

Crossing US/Canada Border for less than 24 hours



Packer Amazon-EBS builder example build fails: Timeout waiting for SSH [closed]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Trying to SSH into an Amazon Ec2 instance - permission errorPermission denied (publickey) when SSH Access to Amazon EC2 instanceAmazon EC2 - MindTerm Authentication failed, permission deniedHaving trouble creating a basic AWS AMI with Packer.io. SSH TimeoutWhat to bake into an AWS AMI and what to provision using cloud-init?What is the correct way to query Amazon AWS AMI from packer?Using Packer, how does one build an Amazon ECR Instance remotelyAWS - SSH to EC2 Timeout when built from AMI in another VPCTerraform setup tips: TLS communication across VPCsHaving problems with Packer: amazon-ebs: Timeout waiting for SSH



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I’m trying to run the Packer amazon-ebs builder example. I modified the template to include vpc, subnet, and security group:




"variables":
"aws_access_key": "",
"aws_secret_key": ""
,
"builders": [
"vpc_id": "vpc-0d082b1de108c6a62",
"subnet_id": "subnet-07212687cf82e3342",
"security_group_id": "sg-03fde06f0b030638b",
"type": "amazon-ebs",
"access_key": "user `aws_access_key`",
"secret_key": "user `aws_secret_key`",
"region": "us-west-2",
"source_ami": "ami-095cd038eef3e5074",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "pack-lin-noprovisioning timestamp"
]



I’m running packer from an instance in the same subnet as the temporary instance that Packer is creating for the ami and all traffic between the two is allowed so I don’t think this is a networking or security issue. The ami is amazon linux.



I can see that the temporary instance fully initializes and stays that way for some time, but the running template just stays stuck at: “Waiting for SSH to become available”... until it finally times out. I’m currently looking for a Packer log file or a way to force Packer to use a specific Key Pair (to rule out the temporary one Packer creates), in the meantime I was hoping that someone here may have run into this and could offer some help?



I did see a similar question to this but the answer given there is not relevant as my network setup is different.



Thank You










share|improve this question













closed as off-topic by jww, Dale Burrell, greg-449, EdChum, Mark Rotteveel Mar 10 at 10:33


This question appears to be off-topic. The users who voted to close gave these specific reasons:


  • "Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – greg-449, EdChum, Mark Rotteveel

  • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – jww, Dale Burrell

If this question can be reworded to fit the rules in the help center, please edit the question.






















    0















    I’m trying to run the Packer amazon-ebs builder example. I modified the template to include vpc, subnet, and security group:




    "variables":
    "aws_access_key": "",
    "aws_secret_key": ""
    ,
    "builders": [
    "vpc_id": "vpc-0d082b1de108c6a62",
    "subnet_id": "subnet-07212687cf82e3342",
    "security_group_id": "sg-03fde06f0b030638b",
    "type": "amazon-ebs",
    "access_key": "user `aws_access_key`",
    "secret_key": "user `aws_secret_key`",
    "region": "us-west-2",
    "source_ami": "ami-095cd038eef3e5074",
    "instance_type": "t2.micro",
    "ssh_username": "ec2-user",
    "ami_name": "pack-lin-noprovisioning timestamp"
    ]



    I’m running packer from an instance in the same subnet as the temporary instance that Packer is creating for the ami and all traffic between the two is allowed so I don’t think this is a networking or security issue. The ami is amazon linux.



    I can see that the temporary instance fully initializes and stays that way for some time, but the running template just stays stuck at: “Waiting for SSH to become available”... until it finally times out. I’m currently looking for a Packer log file or a way to force Packer to use a specific Key Pair (to rule out the temporary one Packer creates), in the meantime I was hoping that someone here may have run into this and could offer some help?



    I did see a similar question to this but the answer given there is not relevant as my network setup is different.



    Thank You










    share|improve this question













    closed as off-topic by jww, Dale Burrell, greg-449, EdChum, Mark Rotteveel Mar 10 at 10:33


    This question appears to be off-topic. The users who voted to close gave these specific reasons:


    • "Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – greg-449, EdChum, Mark Rotteveel

    • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – jww, Dale Burrell

    If this question can be reworded to fit the rules in the help center, please edit the question.


















      0












      0








      0








      I’m trying to run the Packer amazon-ebs builder example. I modified the template to include vpc, subnet, and security group:




      "variables":
      "aws_access_key": "",
      "aws_secret_key": ""
      ,
      "builders": [
      "vpc_id": "vpc-0d082b1de108c6a62",
      "subnet_id": "subnet-07212687cf82e3342",
      "security_group_id": "sg-03fde06f0b030638b",
      "type": "amazon-ebs",
      "access_key": "user `aws_access_key`",
      "secret_key": "user `aws_secret_key`",
      "region": "us-west-2",
      "source_ami": "ami-095cd038eef3e5074",
      "instance_type": "t2.micro",
      "ssh_username": "ec2-user",
      "ami_name": "pack-lin-noprovisioning timestamp"
      ]



      I’m running packer from an instance in the same subnet as the temporary instance that Packer is creating for the ami and all traffic between the two is allowed so I don’t think this is a networking or security issue. The ami is amazon linux.



      I can see that the temporary instance fully initializes and stays that way for some time, but the running template just stays stuck at: “Waiting for SSH to become available”... until it finally times out. I’m currently looking for a Packer log file or a way to force Packer to use a specific Key Pair (to rule out the temporary one Packer creates), in the meantime I was hoping that someone here may have run into this and could offer some help?



      I did see a similar question to this but the answer given there is not relevant as my network setup is different.



      Thank You










      share|improve this question














      I’m trying to run the Packer amazon-ebs builder example. I modified the template to include vpc, subnet, and security group:




      "variables":
      "aws_access_key": "",
      "aws_secret_key": ""
      ,
      "builders": [
      "vpc_id": "vpc-0d082b1de108c6a62",
      "subnet_id": "subnet-07212687cf82e3342",
      "security_group_id": "sg-03fde06f0b030638b",
      "type": "amazon-ebs",
      "access_key": "user `aws_access_key`",
      "secret_key": "user `aws_secret_key`",
      "region": "us-west-2",
      "source_ami": "ami-095cd038eef3e5074",
      "instance_type": "t2.micro",
      "ssh_username": "ec2-user",
      "ami_name": "pack-lin-noprovisioning timestamp"
      ]



      I’m running packer from an instance in the same subnet as the temporary instance that Packer is creating for the ami and all traffic between the two is allowed so I don’t think this is a networking or security issue. The ami is amazon linux.



      I can see that the temporary instance fully initializes and stays that way for some time, but the running template just stays stuck at: “Waiting for SSH to become available”... until it finally times out. I’m currently looking for a Packer log file or a way to force Packer to use a specific Key Pair (to rule out the temporary one Packer creates), in the meantime I was hoping that someone here may have run into this and could offer some help?



      I did see a similar question to this but the answer given there is not relevant as my network setup is different.



      Thank You







      amazon-web-services ssh ami packer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 21:45









      kavisekavise

      53




      53




      closed as off-topic by jww, Dale Burrell, greg-449, EdChum, Mark Rotteveel Mar 10 at 10:33


      This question appears to be off-topic. The users who voted to close gave these specific reasons:


      • "Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – greg-449, EdChum, Mark Rotteveel

      • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – jww, Dale Burrell

      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by jww, Dale Burrell, greg-449, EdChum, Mark Rotteveel Mar 10 at 10:33


      This question appears to be off-topic. The users who voted to close gave these specific reasons:


      • "Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – greg-449, EdChum, Mark Rotteveel

      • "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – jww, Dale Burrell

      If this question can be reworded to fit the rules in the help center, please edit the question.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have this working now - Once I found out that I could use:
          export PACKER_LOG=1
          export PACKER_LOG_PATH="packerlog.txt"
          for Packer logging, I was able to see the IPs Packer was trying to use and adjust my security groups accordingly.






          share|improve this answer

























          • You should accept your own answer.

            – Rickard von Essen
            Mar 9 at 6:07

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I have this working now - Once I found out that I could use:
          export PACKER_LOG=1
          export PACKER_LOG_PATH="packerlog.txt"
          for Packer logging, I was able to see the IPs Packer was trying to use and adjust my security groups accordingly.






          share|improve this answer

























          • You should accept your own answer.

            – Rickard von Essen
            Mar 9 at 6:07















          0














          I have this working now - Once I found out that I could use:
          export PACKER_LOG=1
          export PACKER_LOG_PATH="packerlog.txt"
          for Packer logging, I was able to see the IPs Packer was trying to use and adjust my security groups accordingly.






          share|improve this answer

























          • You should accept your own answer.

            – Rickard von Essen
            Mar 9 at 6:07













          0












          0








          0







          I have this working now - Once I found out that I could use:
          export PACKER_LOG=1
          export PACKER_LOG_PATH="packerlog.txt"
          for Packer logging, I was able to see the IPs Packer was trying to use and adjust my security groups accordingly.






          share|improve this answer















          I have this working now - Once I found out that I could use:
          export PACKER_LOG=1
          export PACKER_LOG_PATH="packerlog.txt"
          for Packer logging, I was able to see the IPs Packer was trying to use and adjust my security groups accordingly.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 8 at 23:14

























          answered Mar 8 at 22:32









          kavisekavise

          53




          53












          • You should accept your own answer.

            – Rickard von Essen
            Mar 9 at 6:07

















          • You should accept your own answer.

            – Rickard von Essen
            Mar 9 at 6:07
















          You should accept your own answer.

          – Rickard von Essen
          Mar 9 at 6:07





          You should accept your own answer.

          – Rickard von Essen
          Mar 9 at 6:07





          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович