[Bug]: API Gateway - API key value's length verification is not correct #30872
Labels
bug
Addresses a defect in current functionality.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
Terraform Core Version
1.4.5
AWS Provider Version
4.64.0
Affected Resource(s)
Expected Behavior
API key value length can be in range of (20, 128) characters according to https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html#apigateway-usage-plans-best-practices
Actual Behavior
API key value's length must be in range of (30, 128) characters:
terraform-provider-aws/aws/resource_aws_api_gateway_api_key.go
Line 61 in 61dfaa9
Relevant Error/Panic Output Snippet
│ Error: expected length of value to be in the range (30 - 128)
Terraform Configuration Files
resource "aws_api_gateway_api_key" "api-gateway-api-key" {
name = "test"
value = "1234567890123456789012345"
}
Steps to Reproduce
Debug Output
│ Error: expected length of value to be in the range (30 - 128), got 1234567890123456789012345
│
│ with aws_api_gateway_api_key.api-gateway-api-key,
│ on api.tf line 3, in resource "aws_api_gateway_api_key" "api-gateway-api-key":
│ 3: value = "1234567890123456789012345"
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: