scholzj / terraform-aws-minikube

Terraform module for single node Kubernetes instance bootstrapped using kubeadm
Apache License 2.0
65 stars 45 forks source link

ssh_public_key is not working with .pem file #7

Closed StalinBabuG closed 2 years ago

StalinBabuG commented 2 years ago

Hi

Thanks for sharing the module. I am using the .pem file on my windows desktop for the below parameter, but it is not working.

ssh_public_key = "~/my-minikube.pem"

Is it right approach to use this module or any other way, can you please share the details.

Thank you

scholzj commented 2 years ago

I do not have any Windows machine. So I have no idea how things work on Windows. The SSH public key is normally not in a PEM format but a it is in an SSH format. E.g.:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx
NrRFi9wrf+M7Q== schacon@mylaptop.local

So you should make sure your file looks like this.

StalinBabuG commented 2 years ago

Thank you for the reply!

Do you use Linux desktop to connect AWS Infra or any Linux Jump server in AWS.

Will the module take the below parameter or should I use hosted zone as public. hosted_zone_private = true

Can you please share the details. Thanks in advance!

scholzj commented 2 years ago

I normally use local MacOS and public DNS zone. The private zone is an option if you don't have any public zone, you should be then able to access it through the node IP address for example even through the zone is private. Or through the private DNS but then you probably need to be inside your AWS VPC.

StalinBabuG commented 2 years ago

Now its clear.

Thank you so much for the support.

StalinBabuG commented 2 years ago

It's working fine from Windows too. Thanks for the support!

StalinBabuG commented 2 years ago

Closing the issue.