generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable temporary_key_pair_type option for ed25519 (#179)
* Enable temporary_key_pair_type option for ed25519 Closes #144 * Improve temporary_key_pair_type validation Default to "rsa" if not given. Error if a value other than "rsa" or "ed25519" is given. * Add tests for temporary_key_pair_type * go fmt
- Loading branch information
1 parent
06fe648
commit 47325f9
Showing
6 changed files
with
131 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
data "amazon-ami" "test" { | ||
filters = { | ||
name = "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*" | ||
root-device-type = "ebs" | ||
virtualization-type = "hvm" | ||
} | ||
most_recent = true | ||
owners = ["099720109477"] | ||
region = "us-east-1" | ||
} | ||
|
||
source "amazon-ebs" "basic-example" { | ||
region = "us-east-1" | ||
source_ami = data.amazon-ami.test.id | ||
instance_type = "t2.micro" | ||
ami_name = "packer_ed25519_ssh_keypair_acctest" | ||
communicator = "ssh" | ||
ssh_username = "ubuntu" | ||
temporary_key_pair_type = "ed25519" | ||
skip_create_ami = true | ||
} | ||
|
||
build { | ||
sources = [ | ||
"source.amazon-ebs.basic-example" | ||
] | ||
|
||
provisioner "shell" { | ||
inline = ["echo 'Hello from the other side'", "cat ~/.ssh/authorized_keys"] | ||
} | ||
} |