Terraform AWS: Error creating internet gateway: InternetGatewayLimitExceeded

1,907 views
Skip to first unread message

Marco Pas

unread,
Mar 2, 2016, 4:52:23 AM3/2/16
to Terraform
I am trying to get my first terraform script ruuning but I am facing an issue where i get error message from terraform.

 aws_internet_gateway.gw: Error creating internet gateway: InternetGatewayLimitExceeded: The maximum number of internet gateways has been reached.
status code: 400, request id:
* aws_vpc.vpc: Error creating VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
status code: 400, request id:

My script is very simple but probably i am missing something.

resource "aws_vpc" "vpc" {

  cidr_block = "${var.vpc_cidr}"
  enable_dns_support = true
  enable_dns_hostnames = true

  tags {
    Name = "${var.environment} vpc"
    Environment = "${var.environment}"
  }
}

resource "aws_internet_gateway" "gw" {
  vpc_id = "aws_vpc.vpc.id"
  tags {
    Name = "${var.environment} internet gateway"
    Environment = "${var.environment}"
  }
}

Any hints where to look for a solution for this error?

Brian Lalor

unread,
Mar 2, 2016, 6:17:54 AM3/2/16
to terrafo...@googlegroups.com
On Mar 2, 2016, at 4:52 AM, Marco Pas <marco....@gmail.com> wrote:

* aws_vpc.vpc: Error creating VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.

You’ve reached an AWS account limit.  This isn’t a Terraform issue; you either need to remove some existing VPCs or request an account limit increase from Amazon.

— 
Brian Lalor

Marco Pas

unread,
Mar 2, 2016, 7:33:28 AM3/2/16
to terrafo...@googlegroups.com
I checked indeed! I thought our limit was higher! Thanks for the reply!

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Terraform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/terraform-tool/SoLuDrvx2es/unsubscribe.
To unsubscribe from this group and all its topics, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/6AA879A5-DBA7-46ED-A3DD-568446A7B9F7%40bravo5.org.

For more options, visit https://groups.google.com/d/optout.



--
Marco Pas
Reply all
Reply to author
Forward
0 new messages