Skip to content

Commit

Permalink
ACM: Resource Record name is slightly different for wildcard SAN's
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Jan 14, 2025
1 parent e9991da commit e1711c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion moto/acm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ def describe(self) -> Dict[str, Any]:

domain_name_status = "SUCCESS" if self.status == "ISSUED" else self.status
for san in domain_names:
# https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
# Record name usually follows the SAN - except when the SAN starts with an asterisk
rr_name = f"_d930b28be6c5927595552b219965053e.{san[2:] if san.startswith('*.') else san}."
resource_record = {
"Name": f"_d930b28be6c5927595552b219965053e.{san}.",
"Name": rr_name,
"Type": "CNAME",
"Value": "_c9edd76ee4a0e2a74388032f3861cc50.ykybfrwcxw.acm-validations.aws.",
}
Expand Down

0 comments on commit e1711c9

Please sign in to comment.