Member-only story

Cognito setup guide for UI applications

Kristijan
3 min readOct 5, 2020

--

Authentication is a common feature required in many applications but also one of the most sensitive ones. You don’t want someone having access to something that shouldn’t. Or not having to something that someone should. You can build your own, but why reinvent the wheel when there are already done and tested solutions. Cognito is a tool created by amazon and part of AWS that can provide that functionality for you. A slight problem might be setup. While very detailed, AWS documentation can be too much and confusing. In this post, I am describing step by step, how to do it for your web application.

Dependency

Before start, you need to install the AWS CLI library. You can do this by executing the following CLI command:

npm install -g @aws-amplify/cli

After installation finishes, you need to connect your local machine to your AWS account. For this, execute the following command:

amplify configure

This command gives some CLI prompts and might even open a browser to create IAM user. You can read more about it here.

UI app setup

--

--

No responses yet