Inbound rules not created

15 views
Skip to first unread message

Ganesh Katakam

unread,
Mar 23, 2020, 10:10:50 AM3/23/20
to Packer
Hi there, 

While I am doing a packer build, I am not specifying any security group id so that packer will generate a temporary security group for ssh on port 22. But when I check the security group created by packer, there are no inbound rules due to which I am not able to ssh to my source instance and getting SSH timed out error.

Any suggestions

Megan Marsh

unread,
Mar 23, 2020, 12:51:35 PM3/23/20
to packe...@googlegroups.com
Can you please share a template so we can reproduce?

The content of this e-mail is confidential and is intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail by mistake, please reply to this e-mail and follow with its deletion. If you are not the intended recipient, please note that it shall be considered unlawful to copy, forward or in any manner reveal the contents of this e-mail or any part thereof to anyone. Although Freshworks has taken reasonable precautions to ensure no malware is present in this e-mail, Freshworks cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/69b22de8-f14d-4f91-8923-e6f5fef56ee1%40googlegroups.com.

Ganesh Katakam

unread,
Mar 24, 2020, 12:11:35 AM3/24/20
to Packer
{
  "variables": {
    "aws_access_key": "",
    "aws_secret_key": ""
  },
  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{user `aws_access_key`}}",
      "secret_key": "{{user `aws_secret_key`}}",
      "region": "ap-south-1",
      "source_ami": "ami-0620d12a9cf777c87",
      "instance_type": "t2.micro",
      "ssh_username": "ubuntu",
      "ssh_timeout": "2m",
      "ami_name": "example {{timestamp}}",
    "tags":{
    "Name": "GaneshK - {{timestamp}}"
    }
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "script": "dependencies.sh" 
    }
  ]
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages