diff --git a/pkg/provider/aws/create.go b/pkg/provider/aws/create.go index 184225a6..cf9337fe 100644 --- a/pkg/provider/aws/create.go +++ b/pkg/provider/aws/create.go @@ -145,7 +145,15 @@ func (p *Provider) createInternetGateway(cache *AWS) error { p.log.Wg.Add(1) go p.log.Loading("Creating Internet Gateway") - gwInput := &ec2.CreateInternetGatewayInput{} + gwInput := &ec2.CreateInternetGatewayInput{ + VpcId: aws.String(cache.Vpcid), + TagSpecifications: []types.TagSpecification{ + { + ResourceType: types.ResourceTypeInternetGateway, + Tags: p.Tags, + }, + }, + } gwOutput, err := p.ec2.CreateInternetGateway(context.TODO(), gwInput) if err != nil { p.fail()