-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_dynamodb_table_gsi #22513
r/aws_dynamodb_table_gsi #22513
Conversation
693f4a9
to
63b6aaa
Compare
63b6aaa
to
e8018d9
Compare
@ewbankkit no need to review now. This is a WIP PR and will need some love based on feedback from the GitHub issues associated |
fd8c222
to
d6b4787
Compare
Co-Authored-By: Ben Bourdin <ben-bourdin451@users.noreply.github.com>
d6b4787
to
c7097e0
Compare
4141e32
to
991f117
Compare
"global_secondary_index": { | ||
Type: schema.TypeSet, | ||
Optional: true, | ||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open for discussion, should we set the Deprecated
bit?
@ewbankkit wondering if I could bump this for your review? |
@danquack Thanks for the work here 🎉 👏. Our concern with attempting to decompose the DynamoDB Table resource into multiple smaller resources (as has been done for S3 Bucket recently) is that the underlying AWS API doesn't cleanly support it (unlike the S3 API which does have separate API actions for the sub-resources). Attempting to address this (as I see you have done) via a For example, running the GSI tests for % make testacc TESTS=TestAccDynamoDBTable_gsi PKG=dynamodb ACCTEST_PARALLELISM=1
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dynamodb/... -v -count 1 -parallel 1 -run='TestAccDynamoDBTable_gsi' -timeout 180m
=== RUN TestAccDynamoDBTable_gsiUpdateCapacity
=== PAUSE TestAccDynamoDBTable_gsiUpdateCapacity
=== RUN TestAccDynamoDBTable_gsiUpdateOtherAttributes
=== PAUSE TestAccDynamoDBTable_gsiUpdateOtherAttributes
=== RUN TestAccDynamoDBTable_gsiUpdateNonKeyAttributes
=== PAUSE TestAccDynamoDBTable_gsiUpdateNonKeyAttributes
=== CONT TestAccDynamoDBTable_gsiUpdateCapacity
table_test.go:847: Step 1/3 error: Error running apply: exit status 1
Error: error creating DynamoDB Table: InvalidParameter: 1 validation error(s) found.
- missing required field, CreateTableInput.AttributeDefinitions.
with aws_dynamodb_table.test,
on terraform_plugin_test.tf line 6, in resource "aws_dynamodb_table" "test":
6: resource "aws_dynamodb_table" "test" {
--- FAIL: TestAccDynamoDBTable_gsiUpdateCapacity (6.15s)
=== CONT TestAccDynamoDBTable_gsiUpdateNonKeyAttributes
table_test.go:1044: Step 1/3 error: Error running apply: exit status 1
Error: error creating DynamoDB Table: InvalidParameter: 1 validation error(s) found.
- missing required field, CreateTableInput.AttributeDefinitions.
with aws_dynamodb_table.test,
on terraform_plugin_test.tf line 6, in resource "aws_dynamodb_table" "test":
6: resource "aws_dynamodb_table" "test" {
--- FAIL: TestAccDynamoDBTable_gsiUpdateNonKeyAttributes (5.11s)
=== CONT TestAccDynamoDBTable_gsiUpdateOtherAttributes
table_test.go:915: Step 1/3 error: Error running apply: exit status 1
Error: error creating DynamoDB Table: InvalidParameter: 1 validation error(s) found.
- missing required field, CreateTableInput.AttributeDefinitions.
with aws_dynamodb_table.test,
on terraform_plugin_test.tf line 6, in resource "aws_dynamodb_table" "test":
6: resource "aws_dynamodb_table" "test" {
--- FAIL: TestAccDynamoDBTable_gsiUpdateOtherAttributes (4.90s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb 22.120s
FAIL
make: *** [testacc] Error 1 DynamoDB tables are mission-critical resources at many practitioners’ organizations and we prefer to err on the side of caution when making significant changes to workflows built around this resource. An AWS support ticket has been opened to start the conversation around making changes to the DynamoDB API to enable table index operations to be performed separately from the table itself, but as you can imagine this will not be a quick change. Any limitations to the current |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Co-Authored-By: @ben-bourdin451. updated to v2 sdks from #6688
Community Note
Relates or Closes #17096
Relates or Closes #671
Output from acceptance testing:
Contributor Notes:
Open for feedback...