Skip to content

Error import KeyPair #1

Description

@r3dt3am

On running "terraform apply" the following error is thrown
Error: Error import KeyPair: InvalidKey.Format: Key is not in valid OpenSSH public key format
│ status code: 400, request id: 0cb63772-f4d8-49a5-9454-6e97f7c36742
│
│ with aws_key_pair.terraformkey,
│ on aws.tf line 9, in resource "aws_key_pair" "terraformkey":
│ 9: resource "aws_key_pair" "terraformkey" {

Issue seems to be because of the way file is handled as discussed here aws/aws-cli#4969
Need to use aws cli version 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions