make sure the vpc_filter field is exported correctly

This commit is contained in:
Adrien Delorme 2019-05-31 12:27:06 +02:00
parent b00412d055
commit feafa8b18b
4 changed files with 38 additions and 92 deletions

View File

@ -522,32 +522,6 @@ builder.
`subnet_id` to be set. If this field is left blank, Packer will try to get `subnet_id` to be set. If this field is left blank, Packer will try to get
the VPC ID from the `subnet_id`. the VPC ID from the `subnet_id`.
- `vpc_filter` (object) - Filters used to populate the `vpc_id` field.
Example:
``` json
{
"vpc_filter": {
"filters": {
"tag:Class": "build",
"isDefault": "false",
"cidr": "/24"
}
}
}
```
This selects the VPC with tag `Class` with the value `build`, which is not
the default VPC, and have a IPv4 CIDR block of `/24`. NOTE: This will fail
unless *exactly* one VPC is returned.
- `filters` (map of strings) - filters used to select a `vpc_id`. NOTE:
This will fail unless *exactly* one VPC is returned. Any filter
described in the docs for
[DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
is valid.
`vpc_id` take precedence over this.
- `windows_password_timeout` (string) - The timeout for waiting for a Windows - `windows_password_timeout` (string) - The timeout for waiting for a Windows
password for Windows instances. Defaults to 20 minutes. Example value: password for Windows instances. Defaults to 20 minutes. Example value:

View File

@ -514,33 +514,6 @@ builder.
`subnet_id` to be set. If this field is left blank, Packer will try to get `subnet_id` to be set. If this field is left blank, Packer will try to get
the VPC ID from the `subnet_id`. the VPC ID from the `subnet_id`.
- `vpc_filter` (object) - Filters used to populate the `vpc_id` field.
Example:
``` json
{
"vpc_filter": {
"filters": {
"tag:Class": "build",
"isDefault": "false",
"cidr": "/24"
}
}
}
```
This selects the VPC with tag `Class` with the value `build`, which is not
the default VPC, and have a IPv4 CIDR block of `/24`. NOTE: This will fail
unless *exactly* one VPC is returned.
- `filters` (map of strings) - filters used to select a `vpc_id`. NOTE:
This will fail unless *exactly* one VPC is returned. Any filter
described in the docs for
[DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
is valid.
`vpc_id` take precedence over this.
- `windows_password_timeout` (string) - The timeout for waiting for a Windows - `windows_password_timeout` (string) - The timeout for waiting for a Windows
password for Windows instances. Defaults to 20 minutes. Example value: password for Windows instances. Defaults to 20 minutes. Example value:
`10m` `10m`

View File

@ -489,6 +489,7 @@ builder.
the VPC ID from the `subnet_id`. the VPC ID from the `subnet_id`.
- `vpc_filter` (object) - Filters used to populate the `vpc_id` field. - `vpc_filter` (object) - Filters used to populate the `vpc_id` field.
`vpc_id` take precedence over this.
Example: Example:
``` json ``` json
@ -513,7 +514,6 @@ builder.
[DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) [DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
is valid. is valid.
`vpc_id` take precedence over this.
- `windows_password_timeout` (string) - The timeout for waiting for a Windows - `windows_password_timeout` (string) - The timeout for waiting for a Windows
password for Windows instances. Defaults to 20 minutes. Example value: password for Windows instances. Defaults to 20 minutes. Example value:

View File

@ -502,6 +502,7 @@ builder.
the VPC ID from the `subnet_id`. the VPC ID from the `subnet_id`.
- `vpc_filter` (object) - Filters used to populate the `vpc_id` field. - `vpc_filter` (object) - Filters used to populate the `vpc_id` field.
`vpc_id` take precedence over this.
Example: Example:
``` json ``` json
@ -526,8 +527,6 @@ builder.
[DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html) [DescribeVpcs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html)
is valid. is valid.
`vpc_id` take precedence over this.
- `x509_upload_path` (string) - The path on the remote machine where the X509 - `x509_upload_path` (string) - The path on the remote machine where the X509
certificate will be uploaded. This path must already exist and be writable. certificate will be uploaded. This path must already exist and be writable.
X509 certificates are uploaded after provisioning is run, so it is X509 certificates are uploaded after provisioning is run, so it is