Description
In the AWS API, the valid values for MutualAuthenticationAttributes depends on the value of Mode.
When the mode is off, no other values can be set.
When the mode is passthrough, only TrustStoreArn can be set.
When the mode is validate, both TrustStoreArn and IgnoreClientCertificateExpiry can be set, and IgnoreClientCertificateExpiry should default to false.
The provider schema currently defaults ignore_client_certificate_expiry to false in all cases, and allows both ignore_client_certificate_expiry and trust_store_arn to be set regardless of the value of mode.
This is a breaking change
Affected Resource(s) and/or Data Source(s)
aws_lb_listener
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None
Description
In the AWS API, the valid values for
MutualAuthenticationAttributesdepends on the value ofMode.When the mode is
off, no other values can be set.When the mode is
passthrough, onlyTrustStoreArncan be set.When the mode is
validate, bothTrustStoreArnandIgnoreClientCertificateExpirycan be set, andIgnoreClientCertificateExpiryshould default tofalse.The provider schema currently defaults
ignore_client_certificate_expirytofalsein all cases, and allows bothignore_client_certificate_expiryandtrust_store_arnto be set regardless of the value ofmode.Add a plan modifier toHas to be handled in flatteners and expanders in SDKignore_client_certificate_expiryto default tofalseonly ifmodeisvalidate, andnullotherwiseignore_client_certificate_expiryto be set ifmodeisvalidatetrust_store_arnto be set and required it ifmodeisvalidateadvertise_trust_store_ca_namesto be set ifmodeisvalidateThis is a breaking change
Affected Resource(s) and/or Data Source(s)
aws_lb_listener
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None