RealDevSquad / RealDevSquad/website-backend
Deployment Steps for Grant AWS command
@iamitprakash is already working on this.
Since Nov 21, 2024.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
This ticket, has the steps to set the ENV for /grant-aws-access discord command, this command grants AWS access of mentioned groupId to the user, so for granting this access programatically we needed the access keys, secret keys with permission to add user to the AWS account and add them to the mentioned group.
They are basically 4 ENVs
- AWS_REGION
- AWS_ACCESS_KEY
- AWS_SECRET_KEY
- IDENTITY_STORE_ID
Steps to fetch the first 3 variables
- In order to create a access and secret key with required permissions
-
We can either check this document https://k21academy.com/amazon-web-services/create-access-and-secret-keys-in-aws/
a. On top right corner select security credentials
b. select create access keys
c. Setting these access and secret keys in the ENV variables in github
- List of permissions for AWS access and secret keys
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "identitystore:ListUsers",
"Resource": [
"arn:aws:identitystore:::user/*",
"arn:aws:identitystore::<account-no>:identitystore/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "identitystore:CreateUser",
"Resource": "arn:aws:identitystore::<account-no>:identitystore/*"
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": "identitystore:CreateGroupMembership",
"Resource": [
"arn:aws:identitystore:::group/*",
"arn:aws:identitystore:::user/*",
"arn:aws:identitystore::<account-no>:identitystore/*"
]
}
]
}
- To set the identity store Id
a. click on the IAM Identity center and click on settingsb. Scroll down and we can find the identity store Id
- Note : Important step
- We need to check the AWS group is linked to an AWS account if not the users, will see a blank screen like this
cc : @prakashchoudhary07
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.