$ PACKER_LOG=1 packer build nm-base.pkr.hcl 2021/03/18 19:54:01 [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64] 2021/03/18 19:54:01 [TRACE] discovering plugins in /usr/local/bin 2021/03/18 19:54:01 [TRACE] discovering plugins in /home/makubex/.packer.d/plugins 2021/03/18 19:54:01 [TRACE] discovering plugins in . 2021/03/18 19:54:01 [INFO] PACKER_CONFIG env var not set; checking the default config file path 2021/03/18 19:54:01 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/makubex/.packerconfig 2021/03/18 19:54:01 [WARN] Config file doesn't exist: /home/makubex/.packerconfig 2021/03/18 19:54:01 [INFO] Setting cache directory: /home/makubex/bit_and_git/devops-netmenu/packer/packer_cache 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] Starting internal plugin packer-builder-amazon-ebs 2021/03/18 19:54:01 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-amazon-ebs"} 2021/03/18 19:54:01 Waiting for RPC address for: /usr/local/bin/packer 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64] 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [WARN] Config file doesn't exist: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] Setting cache directory: /home/makubex/bit_and_git/devops-netmenu/packer/packer_cache 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: args: []string{"packer-builder-amazon-ebs"} 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: Plugin address: unix /tmp/packer-plugin245094292 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: Waiting for connection... 2021/03/18 19:54:01 Received unix RPC address for /usr/local/bin/packer: addr is /tmp/packer-plugin245094292 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: Serving a plugin connection... 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] (aws): No AWS timeout and polling overrides have been set. Packer will default 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 or the configuration options aws_polling_delay_seconds and aws_polling_max_attempts to your desired values. 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 [TRACE] Starting internal plugin packer-provisioner-file 2021/03/18 19:54:01 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-file"} 2021/03/18 19:54:01 Waiting for RPC address for: /usr/local/bin/packer 2021/03/18 19:54:01 packer-provisioner-file plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64] 2021/03/18 19:54:01 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2021/03/18 19:54:01 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-provisioner-file plugin: [INFO] Setting cache directory: /home/makubex/bit_and_git/devops-netmenu/packer/packer_cache 2021/03/18 19:54:01 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"} 2021/03/18 19:54:01 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin814992630 2021/03/18 19:54:01 packer-provisioner-file plugin: Waiting for connection... 2021/03/18 19:54:01 Received unix RPC address for /usr/local/bin/packer: addr is /tmp/packer-plugin814992630 2021/03/18 19:54:01 packer-provisioner-file plugin: Serving a plugin connection... 2021/03/18 19:54:01 [TRACE] Starting internal plugin packer-provisioner-powershell 2021/03/18 19:54:01 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-powershell"} 2021/03/18 19:54:01 Waiting for RPC address for: /usr/local/bin/packer 2021/03/18 19:54:01 packer-provisioner-powershell plugin: [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64] 2021/03/18 19:54:01 packer-provisioner-powershell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path 2021/03/18 19:54:01 packer-provisioner-powershell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-provisioner-powershell plugin: [WARN] Config file doesn't exist: /home/makubex/.packerconfig 2021/03/18 19:54:01 packer-provisioner-powershell plugin: [INFO] Setting cache directory: /home/makubex/bit_and_git/devops-netmenu/packer/packer_cache 2021/03/18 19:54:01 packer-provisioner-powershell plugin: args: []string{"packer-provisioner-powershell"} 2021/03/18 19:54:01 packer-provisioner-powershell plugin: Plugin address: unix /tmp/packer-plugin516110255 2021/03/18 19:54:01 packer-provisioner-powershell plugin: Waiting for connection... 2021/03/18 19:54:01 Received unix RPC address for /usr/local/bin/packer: addr is /tmp/packer-plugin516110255 2021/03/18 19:54:01 packer-provisioner-powershell plugin: Serving a plugin connection... 2021/03/18 19:54:01 [TRACE] validateValue: not active for ami_name, so skipping 2021/03/18 19:54:01 [TRACE] validateValue: not active for timestamp, so skipping 2021/03/18 19:54:01 Build debug mode: false 2021/03/18 19:54:01 Force build: false 2021/03/18 19:54:01 On error: 2021/03/18 19:54:01 Waiting on builds to complete... 2021/03/18 19:54:01 Starting build run: amazon-ebs.nm_base_image 2021/03/18 19:54:01 Running builder: 2021/03/18 19:54:01 [INFO] (telemetry) Starting builder amazon-ebs.nm_base_image: output will be in this color. 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] AWS Auth provider used: "StaticProvider" 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: Found region us-east-1 2021/03/18 19:54:01 packer-builder-amazon-ebs plugin: [INFO] AWS Auth provider used: "StaticProvider" ==> amazon-ebs.nm_base_image: Prevalidating any provided VPC information ==> amazon-ebs.nm_base_image: Prevalidating AMI Name: NM-BASE 20210318235401 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Using AMI Filters { 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Filters: [{ 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Name: "virtualization-type", 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Values: ["hvm"] 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: },{ 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Name: "name", 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Values: ["Windows_Server-2019-English-Full-Base-*"] 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: },{ 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Name: "root-device-type", 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Values: ["ebs"] 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: }], 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: Owners: ["801119661308"] 2021/03/18 19:54:03 packer-builder-amazon-ebs plugin: } amazon-ebs.nm_base_image: Found Image ID: ami-07817f5d0e3866d32 ==> amazon-ebs.nm_base_image: Creating temporary keypair: packer_6053e819-a725-85ce-af12-bf118575b216 ==> amazon-ebs.nm_base_image: Creating temporary security group for this instance: packer_6053e81c-4165-51b1-b4a9-a5402f6c342f 2021/03/18 19:54:04 packer-builder-amazon-ebs plugin: [DEBUG] Waiting for temporary security group: sg-0f27c1fddd3235176 2021/03/18 19:54:05 packer-builder-amazon-ebs plugin: [DEBUG] Found security group sg-0f27c1fddd3235176 ==> amazon-ebs.nm_base_image: Authorizing access to port 5986 from [0.0.0.0/0] in the temporary security groups... 2021/03/18 19:54:06 packer-builder-amazon-ebs plugin: [DEBUG] base64 encoding user data... ==> amazon-ebs.nm_base_image: Launching a source AWS instance... ==> amazon-ebs.nm_base_image: Adding tags to source instance amazon-ebs.nm_base_image: Adding tag: "Name": "Packer Builder" amazon-ebs.nm_base_image: Instance ID: i-03ff2cc756ff5bb2e ==> amazon-ebs.nm_base_image: Waiting for instance (i-03ff2cc756ff5bb2e) to become ready... ==> amazon-ebs.nm_base_image: Waiting for auto-generated password for instance... amazon-ebs.nm_base_image: It is normal for this process to take up to 15 minutes, amazon-ebs.nm_base_image: but it usually takes around 5. Please wait. amazon-ebs.nm_base_image: but it usually takes around 5. Please wait. 2021/03/18 19:54:44 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:54:45 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:54:50 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:54:51 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:54:56 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:54:56 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:01 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:01 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:06 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:07 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:12 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:12 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:17 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:18 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:23 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:23 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:28 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:29 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:34 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:34 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:39 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:40 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:45 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:45 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:50 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:51 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:55:56 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... 2021/03/18 19:55:56 packer-builder-amazon-ebs plugin: [DEBUG] Password is blank, will retry... 2021/03/18 19:56:01 packer-builder-amazon-ebs plugin: Retrieving auto-generated instance password... amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: Password retrieved! amazon-ebs.nm_base_image: Password retrieved! ==> amazon-ebs.nm_base_image: Using winrm communicator to connect: 3.84.131.88 2021/03/18 19:56:01 packer-builder-amazon-ebs plugin: Waiting for WinRM, up to timeout: 30m0s ==> amazon-ebs.nm_base_image: Waiting for WinRM to become available... 2021/03/18 19:56:01 packer-builder-amazon-ebs plugin: Using host value: 3.84.131.88 2021/03/18 19:56:01 packer-builder-amazon-ebs plugin: [INFO] Attempting WinRM connection... 2021/03/18 19:56:01 packer-builder-amazon-ebs plugin: [DEBUG] connecting to remote shell using WinRM 2021/03/18 19:56:15 packer-builder-amazon-ebs plugin: Checking that WinRM is connected with: 'powershell.exe -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQAgAD0AIAAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwA7AGkAZgAgACgAVABlAHMAdAAtAFAAYQB0AGgAIAB2AGEAcgBpAGEAYgBsAGUAOgBnAGwAbwBiAGEAbAA6AFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlACkAewAkAFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlAD0AJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcAfQA7ACAAZQBjAGgAbwAgACIAVwBpAG4AUgBNACAAYwBvAG4AbgBlAGMAdABlAGQALgAiAA==' 2021/03/18 19:56:15 packer-builder-amazon-ebs plugin: [INFO] starting remote command: powershell.exe -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQAgAD0AIAAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwA7AGkAZgAgACgAVABlAHMAdAAtAFAAYQB0AGgAIAB2AGEAcgBpAGEAYgBsAGUAOgBnAGwAbwBiAGEAbAA6AFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlACkAewAkAFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlAD0AJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcAfQA7ACAAZQBjAGgAbwAgACIAVwBpAG4AUgBNACAAYwBvAG4AbgBlAGMAdABlAGQALgAiAA== 2021/03/18 19:56:17 packer-builder-amazon-ebs plugin: [INFO] command 'powershell.exe -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQAgAD0AIAAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwA7AGkAZgAgACgAVABlAHMAdAAtAFAAYQB0AGgAIAB2AGEAcgBpAGEAYgBsAGUAOgBnAGwAbwBiAGEAbAA6AFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlACkAewAkAFAAcgBvAGcAcgBlAHMAcwBQAHIAZQBmAGUAcgBlAG4AYwBlAD0AJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcAfQA7ACAAZQBjAGgAbwAgACIAVwBpAG4AUgBNACAAYwBvAG4AbgBlAGMAdABlAGQALgAiAA==' exited with code: 0 amazon-ebs.nm_base_image: WinRM connected. 2021/03/18 19:56:17 packer-builder-amazon-ebs plugin: Connected to machine ==> amazon-ebs.nm_base_image: Connected to WinRM! 2021/03/18 19:56:17 packer-builder-amazon-ebs plugin: Running the provision hook 2021/03/18 19:56:17 [INFO] (telemetry) Starting provisioner file ==> amazon-ebs.nm_base_image: Uploading codedeploy-agent.msi => C:\Users\Administrator\ 2021/03/18 19:56:17 packer-builder-amazon-ebs plugin: Uploading file to 'C:\Users\Administrator\codedeploy-agent.msi' amazon-ebs.nm_base_image: codedeploy-agent.msi 15.91 MiB / 15.92 MiB [==========================================================================================================================] 99.90% amazon-ebs.nm_base_image: codedeploy-agent.msi 15.92 MiB / 15.92 MiB [==========================================================================================================================] 100.00% amazon-ebs.nm_base_image: codedeploy-agent.msi 15.92 MiB / 15.92 MiB [==========================================================================================================================] 100.00% 2021/03/18 20:20:09 packer-provisioner-file plugin: closing 2021/03/18 20:20:09 closing amazon-ebs.nm_base_image: codedeploy-agent.msi 15.92 MiB / 15.92 MiB [===================================================================================================================] 100.00% 23m52s 2021/03/18 20:20:09 [INFO] (telemetry) ending file 2021/03/18 20:20:09 [INFO] (telemetry) Starting provisioner powershell ==> amazon-ebs.nm_base_image: Provisioning with Powershell... 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: choco.exe install dotnet4.8 -y 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/InitializeInstance.ps1 -Schedule 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/SysprepInstance.ps1 -NoShutdown 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: Import-Module AWSPowerShell 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: C:\Users\Administrator\codedeploy-agent.msi /quiet /l C:\Users\Administrator\host-agent.txt 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Found command: Get-Service -Name codedeployagent ==> amazon-ebs.nm_base_image: Provisioning with powershell script: /tmp/powershell-provisioner286096706 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Opening /tmp/powershell-provisioner286096706 for reading 2021/03/18 20:20:09 packer-provisioner-powershell plugin: Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-6053ee39-2c45-fa5d-b949-b9b73db98a9a.ps1 2021/03/18 20:20:09 packer-provisioner-powershell plugin: [INFO] 79 bytes written for 'uploadData' 2021/03/18 20:20:09 [INFO] 79 bytes written for 'uploadData' 2021/03/18 20:20:09 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-6053ee39-2c45-fa5d-b949-b9b73db98a9a.ps1' 2021/03/18 20:20:11 packer-provisioner-powershell plugin: [INFO] 606 bytes written for 'uploadData' 2021/03/18 20:20:11 [INFO] 606 bytes written for 'uploadData' 2021/03/18 20:20:11 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1' 2021/03/18 20:20:15 packer-builder-amazon-ebs plugin: [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-6053ee39-2c45-fa5d-b949-b9b73db98a9a.ps1; &'c:/Windows/Temp/script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1'; exit $LastExitCode }" amazon-ebs.nm_base_image: Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org) amazon-ebs.nm_base_image: Getting latest version of the Chocolatey package for download. amazon-ebs.nm_base_image: Not using proxy. amazon-ebs.nm_base_image: Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.15. amazon-ebs.nm_base_image: Downloading https://chocolatey.org/api/v2/package/chocolatey/0.10.15 to C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip amazon-ebs.nm_base_image: Not using proxy. amazon-ebs.nm_base_image: Extracting C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\chocoInstall amazon-ebs.nm_base_image: Installing Chocolatey on the local machine amazon-ebs.nm_base_image: Creating ChocolateyInstall as an environment variable (targeting 'Machine') amazon-ebs.nm_base_image: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' amazon-ebs.nm_base_image: WARNING: It's very likely you will need to close and reopen your shell amazon-ebs.nm_base_image: before you can use choco. amazon-ebs.nm_base_image: Restricting write permissions to Administrators amazon-ebs.nm_base_image: We are setting up the Chocolatey package repository. amazon-ebs.nm_base_image: The packages themselves go to 'C:\ProgramData\chocolatey\lib' amazon-ebs.nm_base_image: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). amazon-ebs.nm_base_image: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' amazon-ebs.nm_base_image: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: Creating Chocolatey folders if they do not already exist. amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: WARNING: You can safely ignore errors related to missing log files when amazon-ebs.nm_base_image: upgrading from a version of Chocolatey less than 0.9.9. amazon-ebs.nm_base_image: 'Batch file could not be found' is also safe to ignore. amazon-ebs.nm_base_image: 'The system cannot find the file specified' - also safe. amazon-ebs.nm_base_image: chocolatey.nupkg file not installed in lib. amazon-ebs.nm_base_image: Attempting to locate it from bootstrapper. amazon-ebs.nm_base_image: PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... amazon-ebs.nm_base_image: WARNING: Not setting tab completion: Profile file does not exist at amazon-ebs.nm_base_image: 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. amazon-ebs.nm_base_image: Chocolatey (choco.exe) is now ready. amazon-ebs.nm_base_image: You can call choco from anywhere, command line or powershell by typing choco. amazon-ebs.nm_base_image: Run choco /? for a list of functions. amazon-ebs.nm_base_image: You may need to shut down and restart powershell and/or consoles amazon-ebs.nm_base_image: first prior to using choco. amazon-ebs.nm_base_image: Ensuring Chocolatey commands are on the path amazon-ebs.nm_base_image: Ensuring chocolatey.nupkg is in the lib folder amazon-ebs.nm_base_image: Chocolatey v0.10.15 amazon-ebs.nm_base_image: Installing the following packages: amazon-ebs.nm_base_image: dotnet4.8 amazon-ebs.nm_base_image: By installing you accept licenses for the packages. amazon-ebs.nm_base_image: dotnet4.8 not installed. The package was not found with the source(s) listed. amazon-ebs.nm_base_image: Source(s): 'https://chocolatey.org/api/v2/' amazon-ebs.nm_base_image: NOTE: When you specify explicit sources, it overrides default sources. amazon-ebs.nm_base_image: If the package version is a prerelease and you didn't specify `--pre`, amazon-ebs.nm_base_image: the package may not be found. amazon-ebs.nm_base_image: Please see https://chocolatey.org/docs/troubleshooting for more amazon-ebs.nm_base_image: assistance. amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: Chocolatey installed 0/1 packages. 1 packages failed. amazon-ebs.nm_base_image: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: Failures amazon-ebs.nm_base_image: - dotnet4.8 - dotnet4.8 not installed. The package was not found with the source(s) listed. amazon-ebs.nm_base_image: Source(s): 'https://chocolatey.org/api/v2/' amazon-ebs.nm_base_image: NOTE: When you specify explicit sources, it overrides default sources. amazon-ebs.nm_base_image: If the package version is a prerelease and you didn't specify `--pre`, amazon-ebs.nm_base_image: the package may not be found. amazon-ebs.nm_base_image: Please see https://chocolatey.org/docs/troubleshooting for more amazon-ebs.nm_base_image: assistance. amazon-ebs.nm_base_image: amazon-ebs.nm_base_image: TaskPath TaskName State amazon-ebs.nm_base_image: -------- -------- ----- amazon-ebs.nm_base_image: \ Amazon Ec2 Launch - Instance I... Ready 2021/03/18 20:22:24 [INFO] 447 bytes written for 'stderr' 2021/03/18 20:22:24 [INFO] 3833 bytes written for 'stdout' 2021/03/18 20:22:24 packer-builder-amazon-ebs plugin: [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-6053ee39-2c45-fa5d-b949-b9b73db98a9a.ps1; &'c:/Windows/Temp/script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1'; exit $LastExitCode }"' exited with code: 0 2021/03/18 20:22:24 packer-builder-amazon-ebs plugin: [INFO] RPC endpoint: Communicator ended with: 0 2021/03/18 20:22:24 [INFO] RPC client: Communicator ended with: 0 2021/03/18 20:22:24 [INFO] RPC endpoint: Communicator ended with: 0 2021/03/18 20:22:24 packer-provisioner-powershell plugin: [INFO] 3833 bytes written for 'stdout' amazon-ebs.nm_base_image: WARNING: The names of some imported commands from the module 'AWSPowerShell' include unapproved verbs that might make 2021/03/18 20:22:24 packer-provisioner-powershell plugin: [INFO] 447 bytes written for 'stderr' 2021/03/18 20:22:24 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 0 amazon-ebs.nm_base_image: them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the amazon-ebs.nm_base_image: Verbose parameter. For a list of approved verbs, type Get-Verb. ==> amazon-ebs.nm_base_image: Get-Service : Cannot find any service with service name 'codedeployagent'. ==> amazon-ebs.nm_base_image: At C:\Windows\Temp\script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1:7 char:1 ==> amazon-ebs.nm_base_image: + Get-Service -Name codedeployagent ==> amazon-ebs.nm_base_image: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> amazon-ebs.nm_base_image: + CategoryInfo : ObjectNotFound: (codedeployagent:String) [Get-Service], ServiceCommandException ==> amazon-ebs.nm_base_image: + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand ==> amazon-ebs.nm_base_image: 2021/03/18 20:22:24 packer-provisioner-powershell plugin: c:/Windows/Temp/script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1 returned with exit code 0 2021/03/18 20:22:24 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:24 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:24 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:22:24 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-18846dd6-b6d2-4485-6d90-f493f7e1c751.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:22:24 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-18846dd6-b6d2-4485-6d90-f493f7e1c751.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:22:34 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:34 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:34 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:22:35 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-0b5490e6-9ac6-4763-4337-7541c2df029c.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:22:35 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-0b5490e6-9ac6-4763-4337-7541c2df029c.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:22:45 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:45 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:45 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:22:45 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-7cc98444-ced4-41a8-7e5a-4629eadf176a.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:22:45 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-7cc98444-ced4-41a8-7e5a-4629eadf176a.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:22:55 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:55 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:22:55 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:22:55 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-4b32844f-0cef-4961-79ac-637a66d4e18f.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:22:55 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-4b32844f-0cef-4961-79ac-637a66d4e18f.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:23:05 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:05 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:05 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:23:06 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-d7612df4-625a-4252-62db-159133811eff.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:23:06 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-d7612df4-625a-4252-62db-159133811eff.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:23:16 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:16 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:16 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:23:16 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-e5270257-ce85-4ce6-5a98-38287fc5beea.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:23:16 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-e5270257-ce85-4ce6-5a98-38287fc5beea.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:23:26 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:26 [INFO] 511 bytes written for 'uploadData' 2021/03/18 20:23:26 packer-builder-amazon-ebs plugin: Uploading file to 'c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1' 2021/03/18 20:23:26 packer-provisioner-powershell plugin: failed to upload the remote cleanup script: "clean up script \"c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1\" failed to upload: Error uploading file to $env:TEMP\\winrmcp-de4a03f2-a752-4c13-4927-f706452df58e.tmp: Couldn't create shell: http response error: 401 - invalid content type" 2021/03/18 20:23:26 packer-provisioner-powershell plugin: Retryable error: clean up script "c:/Windows/Temp/packer-cleanup-6053ee39-6741-45fd-7faf-c9d972cc8218.ps1" failed to upload: Error uploading file to $env:TEMP\winrmcp-de4a03f2-a752-4c13-4927-f706452df58e.tmp: Couldn't create shell: http response error: 401 - invalid content type 2021/03/18 20:23:26 packer-provisioner-powershell plugin: remote cleanup script failed to upload; skipping the removal of temporary files: c:/Windows/Temp/packer-ps-env-vars-6053ee39-2c45-fa5d-b949-b9b73db98a9a.ps1,c:/Windows/Temp/script-6053ee39-d897-8926-f3a6-5a3c213d0f2c.ps1; 2021/03/18 20:23:26 [INFO] (telemetry) ending powershell ==> amazon-ebs.nm_base_image: Stopping the source instance... amazon-ebs.nm_base_image: Stopping instance