Try:
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "*Windows_Server-2016*English-Core-Base*",
"root-device-type": "ebs"
},
"most_recent": true,
"owners": "amazon"
},
Here are all of the available english names:
Windows_Server-2016-English-64Bit-SQL_2012_SP4_Enterprise-2019.03.13
Windows_Server-2016-English-64Bit-SQL_2012_SP4_Enterprise-2019.04.21
Windows_Server-2016-English-64Bit-SQL_2012_SP4_Enterprise-2019.04.26
Windows_Server-2016-English-64Bit-SQL_2012_SP4_Enterprise-2019.05.15
Windows_Server-2016-English-64Bit-SQL_2012_SP4_Enterprise-2019.06.12
Windows_Server-2016-English-Core-Base-2019.03.13
Windows_Server-2016-English-Core-Base-2019.04.21
Windows_Server-2016-English-Core-Base-2019.04.26
Windows_Server-2016-English-Core-Base-2019.05.15
Windows_Server-2016-English-Core-Base-2019.06.12
Windows_Server-2016-English-Core-Containers-2019.03.13
Windows_Server-2016-English-Core-Containers-2019.04.21
Windows_Server-2016-English-Core-Containers-2019.04.26
Windows_Server-2016-English-Core-Containers-2019.05.15
Windows_Server-2016-English-Core-Containers-2019.06.12
Windows_Server-2016-English-Core-ContainersLatest-2019.03.13
Windows_Server-2016-English-Core-ContainersLatest-2019.04.21
Windows_Server-2016-English-Core-ContainersLatest-2019.04.26
Windows_Server-2016-English-Core-ContainersLatest-2019.05.15
Windows_Server-2016-English-Core-ContainersLatest-2019.06.12
Windows_Server-2016-English-Core-SQL_2016_SP2_Enterprise-2019.03.13
Windows_Server-2016-English-Core-SQL_2016_SP2_Enterprise-2019.04.21
Windows_Server-2016-English-Core-SQL_2016_SP2_Enterprise-2019.04.26
Windows_Server-2016-English-Core-SQL_2016_SP2_Enterprise-2019.05.15
Windows_Server-2016-English-Core-SQL_2016_SP2_Enterprise-2019.06.12
Windows_Server-2016-English-Core-SQL_2016_SP2_Express-2019.03.13
Windows_Server-2016-English-Core-SQL_2016_SP2_Express-2019.04.21
Windows_Server-2016-English-Core-SQL_2016_SP2_Express-2019.04
...
On Fri, Jun 28, 2019 at 8:41 AM Kyle Tice <[email protected]> wrote:
> {
> "variables": {
> "build_version": "{{isotime \"2006.01.02.150405\"}}",
> "aws_profile": null,
> "vpc_id": "vpc-a59a97cd",
> "subnet_id": "subnet-3f3d5f45",
> "security_group_id": "sg-0114a3d39caacf56f"
> },
> "builders": [
> {
> "type": "amazon-ebs",
> "region": "us-west-2",
> "profile": "{{user `aws_profile`}}",
> "vpc_id": "{{user `vpc_id`}}",
> "subnet_id": "{{user `subnet_id`}}",
> "security_group_id": "{{user `security_group_id`}}",
> "source_ami_filter": {
> "filters": {
> "name": "Windows_Server-2016-English-Full-Base-*",
> "root-device-type": "ebs",
> "virtualization-type": "hvm"
> },
> "most_recent": true,
> "owners": [
> "801119661308"
> ]
> },
> "ami_name": "WIN10-CUSTOM-{{user `build_version`}}",
> "instance_type": "t3.xlarge",
> "user_data_file": "userdata.ps1",
> "associate_public_ip_address": true,
> "communicator": "winrm",
> "winrm_username": "Administrator",
> "winrm_port": 5986,
> "winrm_timeout": "15m",
> "winrm_use_ssl": true,
> "winrm_insecure": true
> }
> ]
> }
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/066934b4-bcce-4f38-aa6d-1a21ec119322%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/066934b4-bcce-4f38-aa6d-1a21ec119322%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/CAGPV1uoi1DZJ_n7Ekb%3DuU2LBUpMZf26e5Lj0vAHk76A3cx61iw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.