Closed iamaverrick closed 3 years ago
Looks like im still having this issue:
KOPS Version
Version 1.18.1 (git-453d7d96be)
Terraform Version
Terraform v0.13.2
+ provider registry.terraform.io/hashicorp/aws v3.5.0
K8s Version
--kubernetes-version=1.18.8
There isn't a reason why kops should be trying to recreate the name of the AWS Key Pair provided example described below
# aws_key_pair.kubernetes-k8s-companyr.com-b9ec10434548451554541dbceb163f45 will be created
+ resource "aws_key_pair" "kubernetes-k8s-companyr.com-b9ec10434548451554541dbceb163f45" {
+ arn = (known after apply)
+ fingerprint = (known after apply)
+ id = (known after apply)
+ key_name = "kubernetes.k8s.companyr.com-b9:ec:09:43:96:59:24:e2:15:90:9d:bc:eb:16:3f:30"
+ key_pair_id = (known after apply)
+ public_key = "ssh-rsa
}
What is the exact value of data.terraform_remote_state.key_pair.outputs.k8s_key_public_key_filename
? And can you run kops get cluster --name $clustername -o yaml
? I'd like to see the value of sshKeyName
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-contributor-experience at kubernetes/community. /close
@fejta-bot: Closing this issue.
we are using Terraform v0.12.29 also have tried V0.13 to manage our production environment on aws. On top of that we are also using KOPS Version 1.18.0 (git-698bf974d8) to deploy terraform outputs. my current issue is when i generate the terraform outputs KOPS is rename the AWS Key pair for some reason instead of using the provided name of the key pair. we want to use are our key pair name, and keys but im not sure if this is an issue with the new versions because i didn't have this issue with previous terraform nor kops versions.
my configuration is as follows:
the name of the key pair is something like i.g key.pub kops is changing it to kubernetes.k8s.company.com-finger-printsss
is anybody having the same issue or can somebody reproduce thanks in advance
Reasons why
Reasons why i suspect its kops change the name is because when i cd into the location output folder a folder is created called data and in that file all the information is located in regards to the output. updated name of the key pair is located their