mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 17:24:00 -04:00
This adds the new `required_plugins` block to be nested under the packer block.
Example:
```hcl
packer {
required_plugins {
aws = {
version = ">= 2.7.0"
source = "azr/aws"
}
azure = ">= 2.7.0"
}
}
```
For example on darwin_amd64 Packer will install those under :
* "${PACKER_HOME_DIR}/plugin/github.com/azr/amazon/packer-plugin-amazon_2.7.0_x5.0_darwin_amd64"
* "${PACKER_HOME_DIR}/plugin/github.com/hashicorp/azure/packer-plugin-azure_2.7.0_x5.0_darwin_amd64_x5"
+ docs
+ tests
40 lines
548 B
HCL
40 lines
548 B
HCL
|
|
variables {
|
|
foo = "value"
|
|
// my_secret = "foo"
|
|
// image_name = "foo-image-{{user `my_secret`}}"
|
|
}
|
|
|
|
variable "image_id" {
|
|
type = string
|
|
default = "image-id-default"
|
|
}
|
|
|
|
variable "port" {
|
|
type = number
|
|
default = 42
|
|
}
|
|
|
|
variable "availability_zone_names" {
|
|
type = list(string)
|
|
default = ["A", "B", "C"]
|
|
}
|
|
|
|
locals {
|
|
feefoo = "${var.foo}_${var.image_id}"
|
|
}
|
|
|
|
|
|
locals {
|
|
standard_tags = {
|
|
Component = "user-service"
|
|
Environment = "production"
|
|
}
|
|
|
|
abc_map = [
|
|
{id = "a"},
|
|
{id = "b"},
|
|
{id = "c"},
|
|
]
|
|
}
|