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公式更新しました 3年前
Works as i wanted, thank you very much.