│ Error: Error launching source instance: VPCResourceNotSpecified: The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request.
│ status code: 400, request id: 2f47199d-6ed6-42ce-99e0-aa7982a5df6e
│
│ with module.ec2.aws_instance.main[0],
│ on ../modules/aws/ec2/main.tf line 18, in resource "aws_instance" "main":
│ 18: resource "aws_instance" "main" {
I'm new to Terraform, and I'm not sure how to respond to this error. When I tried to build I get an error about the use of list() as deprecated, so I converted them to tolist() per the new API use. I've attached my diff, though it doesn't seem to be related to anything for subnets or network IDs. Any ideas? Thanks!
I'm unable to get the sadcloud scripts to deploy following an error in the Cloud Trail module.
... some time later:
Here is the context of the
main.tf
file:I'm new to Terraform, and I'm not sure how to respond to this error. When I tried to build I get an error about the use of
list()
as deprecated, so I converted them totolist()
per the new API use. I've attached my diff, though it doesn't seem to be related to anything for subnets or network IDs. Any ideas? Thanks!