generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSM Session Manager Error when user has not access to create keypair in AWS #31
Labels
Comments
ghost
mentioned this issue
Mar 29, 2021
Hello, is there a timeline for a fix for this? Our team is experiencing this problem, too. Thank you. |
Any update on this? |
@amirinator @woodlords I have a fix for this. To authenticate with SSH without creating a key pair on AWS, we can upload the user public key to the instance before connecting. |
Glyphack
added a commit
to Glyphack/packer-plugin-amazon
that referenced
this issue
Jan 18, 2023
Fixes SSM Session Manager Error when user has not access to create keypair in AWS hashicorp#31
lbajolet-hashicorp
pushed a commit
that referenced
this issue
Jan 18, 2023
Fixes SSM Session Manager Error when user has not access to create keypair in AWS #31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally opened by @mixeract as hashicorp/packer#10453. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Our AWS accounts have a policy preventing roles from creating SSH keypairs. This prevents Packer from generating temporary key. If we don't specify a key in the configs packer will automatically assumes that automatic key generation is required. This will fail right away as the user has no permission to create key pairs.
In order to prevent packer from auto generate the keys, I've declared a keypair in the configs
"ssh_private_key_file": "~/.ssh/packer_key"
, however by doing that Packer is ignoring the ssm session manager and tries to create ssh session using the provided key.Error will be
Configs
Any idea if there's a solution to this? Maybe an option that I missed In the docs prevents Packer from using the private key or a config to prevent packer from auto-generation of keys?
The text was updated successfully, but these errors were encountered: