amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

Ability to include link to application in the "user invitation" email

Open tomqwpl opened this issue 4 months ago • 0 comments

Environment information

System:
  OS: Windows 11 10.0.26100
  CPU: (18) x64 Intel(R) Core(TM) Ultra 5 125H
  Memory: 1.90 GB / 15.37 GB
Binaries:
  Node: 20.19.3 - C:\Program Files\nodejs\node.EXE
  Yarn: undefined - undefined
  npm: 11.4.2 - C:\Program Files\nodejs\npm.CMD
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.8.1
  @aws-amplify/backend: 1.16.1
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.7.1
  @aws-amplify/backend-cli: 1.8.0
  @aws-amplify/backend-data: 1.6.1
  @aws-amplify/backend-deployer: 2.1.3
  @aws-amplify/backend-function: 1.14.1
  @aws-amplify/backend-output-schemas: 1.7.0
  @aws-amplify/backend-output-storage: 1.3.1
  @aws-amplify/backend-secret: 1.4.0
  @aws-amplify/backend-storage: 1.4.1
  @aws-amplify/cli-core: 2.2.1
  @aws-amplify/client-config: 1.8.0
  @aws-amplify/data-construct: 1.16.3
  @aws-amplify/data-schema: 1.21.1
  @aws-amplify/deployed-backend-client: 1.8.0
  @aws-amplify/form-generator: 1.2.4
  @aws-amplify/model-generator: 1.2.0
  @aws-amplify/platform-core: 1.10.0
  @aws-amplify/plugin-types: 1.11.0
  @aws-amplify/sandbox: 2.1.2
  @aws-amplify/schema-generator: 1.4.0
  @aws-cdk/toolkit-lib: 1.1.1
  aws-amplify: 6.15.4
  aws-cdk-lib: 2.207.0
  typescript: 5.8.3
npm warn exec The following package was not found and will be installed: [email protected]
No AWS environment variables
No CDK environment variables

Describe the feature

For the "verification" email, I can specify a style of "LINK", and then I have access to a function that will generate a link, so the user can just click on the link, rather than having to know the URL of the application.

For the "user invitation" email though, I only appear to have the ability to reference the user and the temporary password. I'd like to include a link to the base URL of the application, so "welcome to <a href="whereever">My Awsome App</a>". I don't appear to be able to do this. I would have to hard code a link to the URL, and I don't want to do that as it means I couldn't have it work for production and other branches without maintaining that file separately for each branch, which I don't want to do (fragile). I don't believe it's possible to reference environment variables in those email templates.

Use case

Improve usability in the case of user invites.

tomqwpl avatar Jul 30 '25 16:07 tomqwpl