Real-Dev-Squad / todo-action-items

A running list of todo items for Real Dev Squad site
MIT License
4 stars 9 forks source link

(PRD) Granting AWS access via discord commands #245

Open vikhyat187 opened 2 months ago

vikhyat187 commented 2 months ago

Overview

This ticket, lists all the requirements for the feature to grant AWS access via discord slash commands.

Requirments checklist

Flow

  1. Super user runs the command grant-aws-access @vikhyat - This can be the first command which grants user the AWS access. This commands check if there exists a user with discordId if not create a new user.
  2. The second command can be to add user to the user group which has the required permissions. add-user-to-group @vikhyat <user-group name> - This command checks if the user with discordId exists if yes add the user to the user-group which has permissions, if the user group doesn't not exists, then throw error.
  3. When we hit the discord command, discord-slash-command service, will call website-backend to fetch the user details (discordId)
  4. Using this discordId we can check if the user already exists.
  5. We can have another Super user only command to remove the access remove-aws-access @vikhyat this will delete the user from our AWS account.
  6. Post creation of user in AWS, user will receive an email for setting up their password. (Need to do a quick POC for this)

Tasks list

Open questions

Conclusion

This PRD outlines the process required to implement discord command, which can help in creating the AWS user and granting them permissions. Please review and let me know if any changes are needed.

vikhyat187 commented 1 month ago

Further Requirements discussed with Ankush on 19th Sep