DEV Community

Trinisia Fortune
Trinisia Fortune

Posted on

AWS SAM CLI - Hello World Nuances (JS)

Hey all! I'm new here and to tech. Here's my first post hoping that it'll help newbies like me!

if you follow this link (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html), you'll find AWS' version and while it does work, there are a few things to note:

when you've reached sso configuration:

aws configure sso
Enter fullscreen mode Exit fullscreen mode
  1. a list of prompts will come up. aws' tutorial provides placeholders that could be misleading. make sure you are logged into your IAM identity center where you must make a user profile for each user who is also added to each group with permissions. this is important to identify who is accessing IAM.

  2. now, when you've reached the prompt that provides an auth code/start url, instead of using this to deploy, access you IAM identity center dashboard where you will find your AWS user access portal. click there. put in your username (for the user that is accessing IAM (reference #1). you will most likely get an error. go ahead and RESET your password to a different one. (I believe this happens as an additional security check on AWS side). Before returning to your code and trying to access the url, ensure that you have logged on successfully to IAM identity because you will be timed out--you should be able to see if you have any active applications

Hope this helps!!!

Top comments (0)