connection_pool_config is said to be optional for aws_db_proxy_default_target_group resource, but result in a fail if absent #16285
Labels
bug
Addresses a defect in current functionality.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.5
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The documentation at https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_proxy_default_target_group state that
connection_pool_config
is optional. This means we should be able to declare the resource with only required arguments, ie. onlydb_proxy_name
.However, not setting it result in this kind of error:
Declaring the block, even empty makes terraform able to pass.
Therefore, either the documentation have to be corrected to correctly state what's required or not, either the code shouldn't fail if optional arguments are not provided.
Steps to Reproduce
Pick documentation's example about
aws_db_proxy_default_target_group
but get rid of everythings marked as optional (ie. everything excepted thedb_proxy_name
)The text was updated successfully, but these errors were encountered: