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

resource/aws_dynamodb_table: Return error instead of panic on empty CreateTable response #13925

Merged
merged 1 commit into from Jun 25, 2020

Conversation

bflad
Copy link
Member

@bflad bflad commented Jun 24, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #13673

Release note for CHANGELOG:

* resource/aws_dynamodb_table: Return error instead of panic on empty `CreateTable` API response

Was not able to reproduce the original crash report on LocalStack 0.11.2, but this will at least prevent the panic in the future.

Output from acceptance testing:

--- PASS: TestAccAWSDynamoDbTable_basic (36.98s)

…reateTable response

Reference: #13673

Was not able to reproduce the original crash report on LocalStack 0.11.2, but this will at least prevent the panic in the future.

Output from acceptance testing:

```
--- PASS: TestAccAWSDynamoDbTable_basic (36.98s)
```
@bflad bflad added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. labels Jun 24, 2020
@bflad bflad requested a review from a team June 24, 2020 17:41
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/dynamodb Issues and PRs that pertain to the dynamodb service. labels Jun 24, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM 👍
Output of acceptance tests:

--- PASS: TestAccAWSDynamoDbTable_streamSpecificationValidation (82.45s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdateValidation (114.04s)
--- PASS: TestAccAWSDynamoDbTable_basic (343.36s)
--- PASS: TestAccAWSDynamoDbTable_disappears (243.54s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateCapacity (380.50s)
--- PASS: TestAccAWSDynamoDbTable_Ttl_Enabled (381.76s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_PayPerRequestToProvisioned (385.89s)
--- PASS: TestAccAWSDynamoDbTable_streamSpecification (388.11s)
--- PASS: TestAccAWSDynamoDbTable_tags (389.60s)
--- PASS: TestAccAWSDynamoDbTable_Ttl_Disabled (401.35s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_GSI_PayPerRequestToProvisioned (401.53s)
--- PASS: TestAccAWSDynamoDbTable_disappears_PayPerRequestWithGSI (408.85s)
--- PASS: TestAccAWSDynamoDbTable_enablePitr (338.93s)
--- PASS: TestAccAWSDynamoDbTable_encryption (484.42s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateNonKeyAttributes (667.50s)
--- PASS: TestAccAWSDynamoDbTable_extended (669.45s)
--- PASS: TestAccAWSDynamoDbTable_Replica_Single (772.20s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdate (989.95s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateOtherAttributes (989.95s)
--- PASS: TestAccAWSDynamoDbTable_Replica_Multiple (1488.70s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_ProvisionedToPayPerRequest (1496.44s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_GSI_ProvisionedToPayPerRequest (1711.81s)

@bflad bflad added this to the v2.68.0 milestone Jun 25, 2020
@bflad bflad merged commit ff61e6e into master Jun 25, 2020
@bflad bflad deleted the b-aws_dynamodb_table-SetId-panic branch June 25, 2020 16:59
c4po added a commit to c4po/terraform-provider-aws that referenced this pull request Jun 25, 2020
* origin/master: (59 commits)
  Update CHANGELOG for hashicorp#13935
  resource/aws_batch_compute_environment: Remove resource from Terraform state when not found instead of returning error (hashicorp#13935)
  resource/aws_dynamodb_table: Return error instead of panic on empty CreateTable response (hashicorp#13925)
  Update CHANGELOG for hashicorp#13918
  New Data Source: aws_efs_access_points (hashicorp#13918)
  tests/resource/aws_instance: Ensure sweeper has dependencies on resources that manage EC2 Instances (hashicorp#13917)
  Update CHANGELOG for hashicorp#13937
  Update CHANGELOG for hashicorp#5448
  resource/aws_cloudtrail: Handle single event selector in cloudtrail with non-default read_write_type (hashicorp#5448)
  Update CHANGELOG for hashicorp#13892
  correct retry message to match in error handling
  correct import resource name
  accept empty string in volume_type validation
  Update CHANGELOG for hashicorp#4855
  resource/aws_batch_compute_environment: Support fully optional desired_vcpus and wait for updates
  add retry error handling for SLR
  remove unused WebACL resource name in disappears test
  reference current AWS partition in iam role policy stmt
  remove duplicated disappears test step
  Update CHANGELOG for hashicorp#13926
  ...
@ghost
Copy link

ghost commented Jun 26, 2020

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ewbankkit ewbankkit mentioned this pull request Jul 1, 2020
@ghost
Copy link

ghost commented Jul 25, 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 Jul 25, 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. crash Results from or addresses a Terraform crash or kernel panic. service/dynamodb Issues and PRs that pertain to the dynamodb service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash: Creating Localstack Lambda Function
2 participants