1 回答
- 最新
- 投票最多
- 评论最多
4
I think what you are asking is to allow lambda to assume this role and only THAT lambda? in that case here is an example of trust relationship.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"aws:SourceArn": "arn:aws:lambda:<region>:<account-id>:function:<lambda-function-name>"
}
}
}
]
}
已回答 1 年前