aws / aws/aws-cdk

(Cognito): Ensure a domain is created when VerificationEmailStyle is Link

Open
#8,674 4 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-cognito effort/medium feature-request p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

When a user pool is created with VerificationEmailStyle set to Link, Cognito requires that a domain be present. The CDK could validate this is the case. Info here: https://forums.aws.amazon.com/thread.jspa?threadID=262811

### Use Case

Just to save some headaches down the line.

### Proposed Solution

Throw an exception if a domain doesn't exist.

### Other

* [x] :wave: I may be able to implement this feature request
* [ ] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Contributor guide

Open the contributing guide

Research direction

Start by locating the Cognito user-pool construct and the handling of VerificationEmailStyle. Confirm how the domain setting is represented, then add the requested exception when Link is selected without a domain. Done means invalid configurations fail during CDK validation with a clear error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authentication, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.