Closed jmvbxx closed 1 year ago
I'm sorry, I forgot to include my config
---
driver:
name: ec2
subnet_id: subnet-a1b2c3d4e5
provisioner:
name: chef_solo
verifier:
name: inspec
platforms:
- name: amazonlinux
driver:
image_id: ami-0b5eea76982371e91
After reading the source code, I discovered that the error was related to SSH key configuration. I solved this today by explicitly updating the config to the following:
---
driver:
name: ec2
aws_ssh_key_id: <SSH_KEY_NAME>
subnet_id: subnet-a1b2c3d4e5
provisioner:
name: chef_solo
verifier:
name: inspec
transport:
ssh_key: <SSH_KEY_PATH>
connection_timeout: 10
connection_retries: 5
username: ec2-user
platforms:
- name: amazon
driver:
image_id: ami-0b5eea76982371e91
:speaking_head: Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
:ghost: Brief Description
When attempting to spin up an EC2 instance the following error occurs:
Before I continue, yes, I've confirmed that the AMI is correct and exists in the account/region specified.
Version
kitchen-ec2 v3.15.0
Environment
Local workstation: Ubuntu 22.04 kitchen-ec2 v3.15.0
Scenario
Trying to spin up an EC2 instance and unable to based on the above error. Full output is:
Steps to Reproduce
Run the command
bundle exec kitchen converge default-amazonlinux
. Bothcreate
andconverge
have the same behaviour. Also, with and withoutaws-vault
also ends the same way.The output is as above.
Expected Result
I expect an EC2 instance to get spun up.
Actual Result
The error is above, specifically:
Thank you in advance!