1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Unfortunately, Systems Manager does not seem to allow a Document to be specified for the Condition Key.
How about the following IAM policy?
SessionDocumentAccessCheck can be used to enforce the use of AWS-StartSSHSession.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"NotAction": [
"ssm:*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ssm:StartSession",
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ssm:*:*:document/AWS-StartSSHSession"
],
"Condition": {
"BoolIfExists": {
"ssm:SessionDocumentAccessCheck": "true"
}
}
}
]
}
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
Works as i wanted, thank you very much.