2021-02-02 12:05:04 -05:00
|
|
|
source "amazon-ebs" "example" {
|
2020-12-14 10:29:58 -05:00
|
|
|
communicator = "none"
|
2021-02-02 12:05:04 -05:00
|
|
|
source_ami = "potato"
|
|
|
|
ami_name = "potato"
|
|
|
|
instance_type = "potato"
|
2020-12-14 10:29:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
build {
|
2021-02-02 12:05:04 -05:00
|
|
|
name = "my-provisioners-are-cooler"
|
|
|
|
sources = ["source.amazon-ebs.example"]
|
|
|
|
|
|
|
|
provisioner "comment-that-works" {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
packer {
|
|
|
|
required_plugins {
|
|
|
|
comment = {
|
|
|
|
source = "sylviamoss/comment"
|
|
|
|
version = "v0.2.15"
|
|
|
|
}
|
|
|
|
comment-that-works = {
|
|
|
|
source = "sylviamoss/comment"
|
|
|
|
version = "v0.2.19"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build {
|
|
|
|
sources = ["source.amazon-ebs.example"]
|
|
|
|
|
|
|
|
provisioner "comment-my-provisioner" {
|
|
|
|
|
|
|
|
}
|
|
|
|
provisioner "shell-local" {
|
|
|
|
inline = ["yo"]
|
|
|
|
}
|
2020-12-14 10:29:58 -05:00
|
|
|
}
|