generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
area/adoption-annotationIssues or PRs related to ACK Adoption by Annotation featureIssues or PRs related to ACK Adoption by Annotation featureservice/dynamodbIndicates issues or PRs that are related to dynamodb-controller.Indicates issues or PRs that are related to dynamodb-controller.
Description
Describe the bug
Adopting PAY_PER_REQUEST table results in validation error.
api error ValidationException: 2 validation errors detected: Value ''0''
at ''globalSecondaryIndexUpdates.1.member.update.provisionedThroughput.writeCapacityUnits''
failed to satisfy constraint: Member must have value greater than or equal to
1; Value ''0'' at ''globalSecondaryIndexUpdates.1.member.update.provisionedThroughput.readCapacityUnits''
failed to satisfy constraint: Member must have value greater than or equal to
1
After manually clearing spec.provisionedTroughput and globalSecondaryIndexes.[].provisionedTroughput, we get
api error ValidationException: One or more parameter values were invalid: The only Updates for index: <index name> when TableThroughputMode is PAY_PER_REQUEST can be to OnDemandThroughput, WarmThroughput'
Steps to reproduce
- Try adopting table that is configured with pay per request and global secondary indexes by setting annotations
services.k8s.aws/adoption-fields: |
{
"tableName": "<name>"
}
services.k8s.aws/adoption-policy: adopt
Expected outcome
Table should be adopted without validation errors
Environment
- Kubernetes version 1.31
- Using EKS (yes/no), if so version? Yes
- AWS service targeted (S3, RDS, etc.) - DynamoDB
Using ack DynamoDB controller v1.4.0.
Metadata
Metadata
Assignees
Labels
area/adoption-annotationIssues or PRs related to ACK Adoption by Annotation featureIssues or PRs related to ACK Adoption by Annotation featureservice/dynamodbIndicates issues or PRs that are related to dynamodb-controller.Indicates issues or PRs that are related to dynamodb-controller.