hashicorp / terraform-provider-vault

Terraform Vault provider
https://www.terraform.io/docs/providers/vault/
Mozilla Public License 2.0
458 stars 538 forks source link

[Enhancement]: Add max_retries to vault_aws_auth_backend_client resource #2074

Closed zujko closed 3 months ago

zujko commented 10 months ago

Description

The vault_aws_auth_backend_client does not have the max_retries argument to configure retry behavior of the AWS SDK as outlined in the API docs.

This should be added to the resource to align with the AWS client config API /auth/aws/config/client

Affected Resource(s) and/or Data Source(s)

vault_aws_auth_backend_client

Potential Terraform Configuration

resource "vault_auth_backend" "example" {
  type = "aws"
}

resource "vault_aws_auth_backend_client" "example" {
  backend     = vault_auth_backend.example.path
  access_key  = "INSERT_AWS_ACCESS_KEY"
  secret_key  = "INSERT_AWS_SECRET_KEY"
  max_retries = 0
}

References

https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/aws_auth_backend_client https://developer.hashicorp.com/vault/api-docs/auth/aws#configure-client

Would you like to implement a fix?

Yes