Skip to content

Instantly share code, notes, and snippets.

@413n
Last active November 15, 2021 17:26
Show Gist options
  • Save 413n/6372f6a8303de55509766c9affb08727 to your computer and use it in GitHub Desktop.
Save 413n/6372f6a8303de55509766c9affb08727 to your computer and use it in GitHub Desktop.
Amplify CLI config workarounds before first push

Auth

Using Amplify CLI 7.3.1.

Add preferred_username as attribute and disable case sensitive usernames

xxx = Auth name

Folder: amplify/backend/auth/xxx/ - Files: cli-inputs.json and ./build/parameters.json

  ...,
	"aliasAttributes": ["email", "preferred_username"],
	"usernameCaseSensitive": false,

File: amplify/backend/auth/xxx/build/xxx-cloudformation-template.json

Line: 215

    "UserPool": {
      ...
      "Properties": {
        "AliasAttributes": {
          "Ref": "aliasAttributes"
        },
        "UsernameConfiguration": {
          "CaseSensitive": false
        },

Refs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment