Skip to content

Error applying the tf template in 02-Overview exercise  #7

Open
@carlos-salinas

Description

It seems there are missing the definitions of VPC and Subnet resources in the template, because the executing fails as you can see the in the snippet below:

aws_instance.example: Creating...
Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.     status code: 400, request id: ef9266e7-f56a-44fd-b0b3-65cf029252fc
 
with aws_instance.example,
on main.tf line 14, in resource "aws_instance" "example":
14: resource "aws_instance" "example" {

As workaround, I have added the required resources manually.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions