At the moment the module defaults to creating a certificate if custom domain is set. This is misleading as a certificate should be an active decision. Making this behavior problematic because it assumes an action (certificate creation) without explicit user intent. Certificates often come with associated costs, configurations, or compliance requirements, so creating them by default can lead to unintended consequences for the user. Instead, the module should require the user to explicitly opt in to certificate creation, ensuring they are aware of and actively choosing this functionality. This change would align the module's behavior with the principle of least surprise and better support user expectations.
Description
At the moment the module defaults to creating a certificate if custom domain is set. This is misleading as a certificate should be an active decision. Making this behavior problematic because it assumes an action (certificate creation) without explicit user intent. Certificates often come with associated costs, configurations, or compliance requirements, so creating them by default can lead to unintended consequences for the user. Instead, the module should require the user to explicitly opt in to certificate creation, ensuring they are aware of and actively choosing this functionality. This change would align the module's behavior with the principle of least surprise and better support user expectations.
Versions
Reproduction Code [Required]
Affected resource:
aws_apigatewayv2_domain_name