Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

Here I have a role in JSON which I created for Lambda function,

{

  "roleName": "somestack-HelloWorldFunctionRole-AAAAAAAA",

  "policies": [

    {...}, # AWSLambdaExecute

    {...}, # AWSLambdaSQSQueueExecutionRole

    {....} # AWSLambdaBasicExecutionRole

  ],

  "trustedEntities": [

    "lambda.amazonaws.com"

  ]

}

So my question is what are these "trustedEntities" in JSON?

1 Answer

0 votes
by (12.4k points)

Here "trustedEntities" are a set of entities that assume this role. Like if you create a function using SAM then the trust relationship between the role created by SAM and lambda is automatically created, which means that your lambda function can assume this role.

To assign this role to EC2, you can do as given below:

"trustedEntities": [

    "lambda.amazonaws.com",

    "ec2.amazonaws.com"

  ]

Learn more about AWS by going through AWS Online training and master this trending technology.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
asked Jan 20, 2020 in AWS by anmolj (9k points)
0 votes
0 answers

Browse Categories

...