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

aws_dynamodb_table resource can not be created in cn-north-1 region #4567

Closed
benoertel opened this issue May 17, 2018 · 5 comments · Fixed by #4573
Closed

aws_dynamodb_table resource can not be created in cn-north-1 region #4567

benoertel opened this issue May 17, 2018 · 5 comments · Fixed by #4573
Labels
bug Addresses a defect in current functionality. partition/aws-cn Pertains to the aws-cn partition. service/dynamodb Issues and PRs that pertain to the dynamodb service.
Milestone

Comments

@benoertel
Copy link

I try creating the following resource in cn-north-1 region:

resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
  name = "${var.dynamo_lock_table_name}"
  hash_key = "LockID"
  read_capacity = 20
  write_capacity = 20

  point_in_time_recovery {
    enabled = false
  }

  attribute {
    name = "LockID"
    type = "S"
  }
}

The table is created, but terraform script fails with an error that dynamodb/DescribeContinuousBackups is not available.

2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: POST / HTTP/1.1
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Host: dynamodb.cn-north-1.amazonaws.com.cn
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: User-Agent: aws-sdk-go/1.13.47 (go1.9.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11.7
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Content-Length: 33
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Accept-Encoding: identity
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIAPQ7ALHIM46ZI5XCA/20180517/cn-north-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-target, Signature=e96718eaeb461b5d6a53d91a80e605745724e2f802b6121b9b81f5350cc37fb7
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Content-Type: application/x-amz-json-1.0
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: X-Amz-Date: 20180517T143853Z
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: X-Amz-Target: DynamoDB_20120810.DescribeContinuousBackups
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 
2018-05-17T14:38:53.863Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: -----------------------------------------------------
module.dynamo.aws_dynamodb_table.dynamodb-terraform-state-lock: Still creating... (20s elapsed)
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 2018/05/17 14:38:55 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/DescribeContinuousBackups Details:
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: ---[ RESPONSE ]--------------------------------------
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: HTTP/1.1 400 Bad Request
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Connection: close
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Content-Length: 103
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Content-Type: application/x-amz-json-1.0
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Date: Thu, 17 May 2018 14:38:54 GMT
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: Server: Server
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: X-Amz-Crc32: 2885926038
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: X-Amzn-Requestid: UFLP3UOJ40DCHIAN9KD3RU68A3VV4KQNSO5AEMVJF66Q9ASUAAJG
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: -----------------------------------------------------
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 2018/05/17 14:38:55 [DEBUG] [aws-sdk-go] {"__type":"com.amazon.coral.service#UnknownOperationException","message":"Unknown operation exception"}
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4: 2018/05/17 14:38:55 [DEBUG] [aws-sdk-go] DEBUG: Validate Response dynamodb/DescribeContinuousBackups failed, not retrying, error UnknownOperationException: Unknown operation exception
2018-05-17T14:38:55.803Z [DEBUG] plugin.terraform-provider-aws_v1.19.0_x4:      status code: 400, request id: UFLP3UOJ40DCHIAN9KD3RU68A3VV4KQNSO5AEMVJF66Q9ASUAAJG
2018/05/17 14:38:55 [ERROR] root.dynamo: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* aws_dynamodb_table.dynamodb-terraform-state-lock: UnknownOperationException: Unknown operation exception
        status code: 400, request id: UFLP3UOJ40DCHIAN9KD3RU68A3VV4KQNSO5AEMVJF66Q9ASUAAJG
2018/05/17 14:38:55 [ERROR] root.dynamo: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* aws_dynamodb_table.dynamodb-terraform-state-lock: UnknownOperationException: Unknown operation exception
        status code: 400, request id: UFLP3UOJ40DCHIAN9KD3RU68A3VV4KQNSO5AEMVJF66Q9ASUAAJG

@bflad bflad added bug Addresses a defect in current functionality. service/dynamodb Issues and PRs that pertain to the dynamodb service. partition/aws-cn Pertains to the aws-cn partition. labels May 17, 2018
@bflad bflad added this to the v1.20.0 milestone May 17, 2018
@bflad
Copy link
Contributor

bflad commented May 17, 2018

Pull request submitted to bypass this error: #4573

@bflad
Copy link
Contributor

bflad commented May 23, 2018

The fix for this will release with v1.20.0 of the AWS provider, likely later today. 👍

@bflad
Copy link
Contributor

bflad commented May 23, 2018

This has been released in version 1.20.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@benoertel
Copy link
Author

@bflad awesome work, is working great 👍

@ghost
Copy link

ghost commented Apr 5, 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 5, 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. partition/aws-cn Pertains to the aws-cn partition. service/dynamodb Issues and PRs that pertain to the dynamodb service.
Projects
None yet
2 participants