Apologize for the short subject line and the missing salutations.
On Thursday, August 30, 2018 at 3:31:42 PM UTC-4, Arunkumar Janarthanan
wrote:
>
> I run Packer 1.2.5 on OSX, I have been trying to create encrypted volume
> AMI with CIS security hardened script enabled and facing numerous problems
> with it.
>
> Problem #1.
>
> I am getting SSH timeout upon adding the below section, however without
> the below section AMI provisioning looks good except the root volume size
> always 2 gig.
>
> Error:
>
> 2018/08/30 13:11:18 packer: 2018/08/30 13:11:18 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:11:38 packer: 2018/08/30 13:11:38 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:11:58 packer: 2018/08/30 13:11:58 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:12:18 packer: 2018/08/30 13:12:18 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:12:38 packer: 2018/08/30 13:12:38 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:12:58 packer: 2018/08/30 13:12:58 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:13:18 packer: 2018/08/30 13:13:18 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:13:38 packer: 2018/08/30 13:13:38 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:13:58 packer: 2018/08/30 13:13:58 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:14:18 packer: 2018/08/30 13:14:18 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:14:38 packer: 2018/08/30 13:14:38 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:14:58 packer: 2018/08/30 13:14:58 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
> 2018/08/30 13:15:06 packer: 2018/08/30 13:15:06 No AWS timeout and polling
> overrides have been set. Packer will defalt to waiter-specific delays and
> timeouts. If you would like to customize the length of time between retries
> and max number of retries you may do so by setting the environment
> variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired
> values.
>
> 2018/08/30 13:15:18 packer: 2018/08/30 13:15:18 [DEBUG] TCP connection to
> SSH ip/port failed: dial tcp 54.190.59.198:22: i/o timeout
>
>
>
> // -----------
>
> "ami_block_device_mappings": [ {
>
> "device_name": "/dev/sda1",
>
> "volume_size": 64,
>
> "delete_on_termination": true
>
> } ],
>
> "launch_block_device_mappings": [ {
>
> "device_name": "/dev/sda1",
>
> "volume_size": 64,
>
> "delete_on_termination": true
>
> } ],
>
>
> // -----
>
>
> Full json file: this works except it only creates 3 gig root volume.
>
>
> =======
>
>
> {
>
> "variables" : {
>
> "region" : "us-west-2"
>
> },
>
> "builders" : [
>
> {
>
> "type" : "amazon-ebs",
>
> "profile" : "default",
>
> "region" : "{{user `region`}}",
>
> "instance_type" : "t2.micro",
>
> "source_ami" : "ami-37efa14f",
>
> "ssh_username" : "ec2-user",
>
> "ami_name" : "docker-17.12.1-ce",
>
> "ami_description" : "Amazon Linux Image with Docker-CE",
>
> "ami_block_device_mappings": [{
>
> "delete_on_termination": "true",
>
> "device_name": "/dev/sda1"
>
> }],
>
> "run_tags" : {
>
> "Name" : "AE-Plain",
>
> "Tool" : "Packer",
>
> "Author" : "AJ"
>
> }
>
> }
>
> ],
>
> "provisioners" : [
>
> {
>
> "type" : "shell",
>
> "script" : "./setup.sh"
>
> },
>
> {
>
> "type": "shell",
>
> "execute_command": "sudo -S bash '{{ .Path }}'",
>
> "scripts": [
>
> "amazonlinux-hardening.sh",
>
> "docker-secure.sh"
>
> ]
>
> }
>
> ]
>
> }
>
>
> Kindly advise.
>
> Thanks,
> AJ
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/4883a996-6688-4afd-aa29-34d87e8f7a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.