2020-06-05 05:51:23 -04:00
|
|
|
|
|
|
|
// starts resources to provision them.
|
|
|
|
build {
|
|
|
|
sources = [
|
|
|
|
"source.virtualbox-iso.ubuntu-1204",
|
|
|
|
]
|
2020-07-02 05:07:59 -04:00
|
|
|
source "source.amazon-ebs.ubuntu-1604" {
|
|
|
|
name = "aws-ubuntu-16.04"
|
|
|
|
}
|
2020-06-05 05:51:23 -04:00
|
|
|
|
|
|
|
provisioner "shell" {
|
|
|
|
only = ["virtualbox-iso.ubuntu-1204"]
|
|
|
|
}
|
|
|
|
provisioner "file" {
|
|
|
|
except = ["virtualbox-iso.ubuntu-1204"]
|
|
|
|
}
|
2020-07-02 05:07:59 -04:00
|
|
|
provisioner "shell" {
|
|
|
|
only = ["amazon-ebs.aws-ubuntu-16.04"]
|
|
|
|
}
|
|
|
|
provisioner "file" {
|
|
|
|
except = ["amazon-ebs.aws-ubuntu-16.04"]
|
|
|
|
}
|
2020-06-05 05:51:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
source "virtualbox-iso" "ubuntu-1204" {
|
|
|
|
}
|
|
|
|
|
|
|
|
source "amazon-ebs" "ubuntu-1604" {
|
|
|
|
}
|