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 #2146

Closed
hashibot opened this issue Nov 1, 2017 · 2 comments · Fixed by #2274
Closed

Creating 10+ dynamo tables now causes LimitExceededException #2146

hashibot opened this issue Nov 1, 2017 · 2 comments · Fixed by #2274
Labels
bug Addresses a defect in current functionality.

Comments

@hashibot
Copy link

hashibot commented Nov 1, 2017

This issue was originally opened by @grayaii as hashicorp/terraform#16525. It was migrated here as a result of the provider split. The original body of the issue is below.


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.

@bflad
Copy link
Contributor

bflad commented Nov 14, 2017

This PR should hopefully fix this up: #2274

@ghost
Copy link

ghost commented Apr 10, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
2 participants