Skip to content

AWS Note

What does this page say#

  • All AWS related, mainly Amplify (till 2021-09-26)
  • Chapters are chronologically ordered, assumably, also from easy to difficult.

Two-days trip on AWS customizing#

  • @2021-09-19
  • AWS and amplify use different users
  • Amplify creates an assumed role, and it seems not possible to log out. So can't change users.
  • Amplify assumed role is also in the role list. Role list can have more than one page.
  • Not any Cognito User Pool can be used in Amplify (via amplify import auth). To use for "Pool and Identities", need to have a "Federated Identities" as well.
  • InvalidParameterException, Cannot perform specific action because there does not exist a valid use pool domain associated with the user pool: action here is means verification email not sent or some more thing, but the account is already created.

Amplify automatically login after sign-up#

  • @2021-09-20
  • verify & confirm are different things.
  • Use a Pre-Sign Up Lambda trigger to set event.response.autoConfirmUser = true
  • Following this GH answer, values are here

Amplify use @aws-amplify/cli@latest#

  • @2021-09-20
  • After upgrading Amplify CLI from v4 to v6.0.0, need to mannually set Env. Var. like this GH answer
  • Additional: For error Cannot find file './aws-exports' in './src', check this SO answer, see AWS Doc

Amplify Accessing Environment variables#