Hi, I just started learning Pulumi. I am trying to create an EC2 instance, but it is failing with "creating EC2 Instance: MissingInput: No subnets found for the default VPC". I checked AWS console and see the VPC have the subnet. I also tried passing the subnet_id directly in the call, but still getting the error.
ec2_instance = ec2.Instance("web-server",
ami="ami-053b0d53c279acc90",
instance_type="t3.nano",
key_name="test1",
vpc_security_group_ids=[sg.id],
tags = {"Name": "web"},
subnet_id = "subnet-03d7502aaa49932d8"
)
Any help in providing some clues to resolve this issue greatly appreciated.