Packer launching different source instance

Hi folks, I thought I’d need help on the error I’m getting on building an AMI based on Amazon linux 2 using Packer.
Here’s my source:
source “amazon-ebs” “example” {
ami_name = “personal-ami”
region = “us-east-1”
instance_type = “t3.medium”
ssh_username = “ec2-user”
force_deregister = true
force_delete_snapshot = true
source_ami_filter {
filters = {
name = “amzn2-ami-hvm*”
root-device-type = “ebs”
virtualization-type = “hvm”
}
most_recent = true
owners = [“amazon”]
}
tags = {
Application = “example”
Builder = “Packer”
}
}

The following are my output from build command:
==> personal.amazon-ebs.example: Force Deregister flag found, skipping prevalidating AMI Name

personal.amazon-ebs.example: Found Image ID: ami-0249c87b9b5629689

==> personal.amazon-ebs.example: Creating temporary keypair: packer_603b591e-0e81-eee2-6da8-02684ab966ba

==> personal.amazon-ebs.example: Creating temporary security group for this instance: packer_603b591f-10ab-27fc-b515-fa4bec5b1cbf

==> personal.amazon-ebs.example: Authorizing access to port 22 from [0.0.0.0/0] in the temporary security groups...

==> personal.amazon-ebs.example: Launching a source AWS instance...

==> personal.amazon-ebs.example: Adding tags to source instance

personal.amazon-ebs.example: Adding tag: "Name": "Packer Builder"

==> personal.amazon-ebs.example: Error launching source instance: UnsupportedOperation: Microsoft SQL Server Enterprise Edition is not supported for the instance type 't3.medium'.

==> personal.amazon-ebs.example: status code: 400, request id: a3b4f73c-2183-4c27-afdb-c9fb68d4a38e

==> personal.amazon-ebs.example: No volumes to clean up, skipping

==> personal.amazon-ebs.example: Deleting temporary security group...

==> personal.amazon-ebs.example: Deleting temporary keypair...

Build 'personal.amazon-ebs.example' errored after 2 seconds 681 milliseconds: Error launching source instance: UnsupportedOperation: Microsoft SQL Server Enterprise Edition is not supported for the instance type 't3.medium'.

status code: 400, request id: a3b4f73c-2183-4c27-afdb-c9fb68d4a38e

I’ve checked the source AMI ID: Found Image ID: ami-0249c87b9b5629689
Which is as I’ve expected, amazon linux 2 thus I’m getting an error of “Error launching source instance: UnsupportedOperation: Microsoft SQL Server Enterprise Edition is not supported for the instance type ‘t3.medium’.”

What does this Microsoft SQL server enterprise edition got something to do with my source image?

Thank you.

Edit: Tested this on Packer 1.7.0 and 1.6.6, as well as setting a source_ami directly for ami: ami-0249c87b9b5629689 and I’m getting same error.

Hi this seems be a similar issue with terraform: