testcore3 v1.0.19
README
This README would normally document whatever steps are necessary to get your application up and running.
What is this repository for?
- Quick summary
- Version
- Learn Markdown
How do I get set up?
- Summary of set up
- Configuration
- Dependencies
- Database configuration
- How to run tests
- Deployment instructions
Contribution guidelines
- Writing tests
- Code review
- Other guidelines
Who do I talk to?
- Repo owner or admin
- Other community or team contact
Steps to create IAM User and Role for elastic search access, and establish trust relationship
Step 1: Create IAM User using AWS Management Console
/
Instructions:
1. Go to the IAM console.
2. Click on 'Users' in the left navigation pane.
3. Click 'Add user'.
4. Enter a username (e.g., test@user.com
).
5. Skip attaching permissions directly since the user will assume a role.
6. Review the details and create the user.
7. Download the user credentials (access key ID and secret access key).
8. After the user is created, go to the user's summary page and copy the User ARN.
It should look like arn:aws:iam::123456789012:user/test@user.com
.
/
Step 2: Create IAM Role using YAML file with the User's ARN
/* Instructions: 1. Add the below yaml code in Yaml file, define the IAM User ARN, you copied in the previous step in yaml Parameters:
```yaml
IAMRole:
Type: "AWS::IAM::Role"
Properties:
RoleName: "RoleName"
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Principal:
AWS: !Sub "${UserArn}" # IAM User ARN Created using above step
Action: "sts:AssumeRole"
Policies:
- PolicyName: "AssumeRolePolicyName"
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "es:*"
Resource: "*"
```
*/
Step 3: Use the ARN of the Role in Lambda function
``` yaml
Environment:
Variables:
ROLE:
Fn::GetAtt: [ IAMRole , Arn ]
```
Step 3: Deploy the YAML file using AWS CloudFormation
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago