mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(cognito): refuse user pool custom domains in GovCloud The AWS GovCloud (US) User Guide lists "Custom domains for user pools are not available" among the Cognito differences (https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-cog.html), but CreateUserPoolDomain and UpdateUserPoolDomain treated a CustomDomainConfig the same in every partition. In a GovCloud region the request only failed later, on the us-east-1 certificate check, with a message about the certificate rather than about the feature. Both operations now refuse a CustomDomainConfig when the request region is in aws-us-gov, before the certificate is looked at, with an InvalidParameterException, which the cognito-idp model declares for both. No source shows AWS's message, so the wording is Floci's own, as for the API Gateway EDGE gate. Prefix domains keep working in GovCloud. EUSC is left as it is because no source covers it, and China and the ISO partitions have no user pools. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(cognito): refuse user pool custom domains in EUSC too The European Sovereign Cloud guide lists user pool custom domains as not available, in the same words as the GovCloud guide, so a CustomDomainConfig in eusc-de-east-1 is now refused with InvalidParameterException instead of falling through to the us-east-1 certificate check. The issued-certificate ACM stub the user pool domain unit tests each carried a copy of moves to one helper, CognitoCertificateStubs. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>