Packer: How to use default vpc and default subnet

Created on 25 Jan 2019  ยท  2Comments  ยท  Source: hashicorp/packer

i am trying to use those parameters.

    "vpc_filter": {
      "filter": {
        "isDefault": "true"
      }
    },
    "subnet_filter": {
      "filter": {
        "cidr ": "/24"
      },
      "most_free": true,
      "random": false
    },

However, during validation i am having this issue
Template validation failed. Errors are shown below.

Errors validating build 'amazon-ebs'. 2 error(s) occurred:

  • unknown configuration key: "subnet_filter.filter"
  • unknown configuration key: "vpc_filter.filter"

Looking for assistance.

buildeamazon question

All 2 comments

It should be filters.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings