Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating 10+ dynamo tables now causes LimitExceededException #16525

Closed
grayaii opened this issue Nov 1, 2017 · 2 comments
Closed

Creating 10+ dynamo tables now causes LimitExceededException #16525

grayaii opened this issue Nov 1, 2017 · 2 comments

Comments

@grayaii
Copy link
Contributor

grayaii commented Nov 1, 2017

Terraform Version

Terraform v0.10.7

Terraform Configuration Files

resource "aws_dynamodb_table" "tab1" {
    name           = "${var.environment}_cron"
    read_capacity  = "${var.cron_read_capacity}"
    write_capacity = "${var.cron_write_capacity}"
    hash_key       = "task_arn"
    attribute {
      name = "task_arn"
      type = "S"
    }
}
resource "aws_dynamodb_table" "tab2" {
    name           = "${var.environment}_cron"
    read_capacity  = "${var.cron_read_capacity}"
    write_capacity = "${var.cron_write_capacity}"
    hash_key       = "task_arn"
    attribute {
      name = "task_arn"
      type = "S"
    }
}
// ETC ETC... all the way up to 15 tables.

Expected Behavior

Dynamo tables should have been created without throwing a LimitExceededException, and without terraform failing.

Actual Behavior

 * aws_dynamodb_table.change_in_condition: AWS Error creating DynamoDB table: LimitExceededException: Subscriber limit exceeded: You have exceeded the maximum number of indexed tables that can be created simultaneously
 	status code: 400, request id: BJLQQ32VNNT0C3SF1OJ28ES3QFVV4KQNSO5AEMVJF66Q9ASUAAJG
 * aws_dynamodb_table.cron: 1 error(s) occurred:

 * aws_dynamodb_table.cron: AWS Error creating DynamoDB table: LimitExceededException: Subscriber limit exceeded: Only 10 tables can be created, updated, or deleted simultaneously
 	status code: 400, request id: 2HBQDGSJJQ2740DD08G9KPF8GJVV4KQNSO5AEMVJF66Q9ASUAAJG
 * aws_dynamodb_table.es_wotc_pay_period: 1 error(s) occurred:

Steps to Reproduce

  1. terraform init
  2. terraform apply

This only started happening when we upgraded terraform from v0.8.8 to v0.10.7. It seems to be that terraform is creating all the tables in parallel, not sequentially, or at least it's failing now where it used to work before.

@hashibot
Copy link
Contributor

hashibot commented Nov 1, 2017

This issue has been automatically migrated to hashicorp/terraform-provider-aws#2146 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.

@hashibot hashibot closed this as completed Nov 1, 2017
@ghost
Copy link

ghost commented Apr 6, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants