Disable copy and paste options in AWS SSM

0

Hi, We need to restrict any user cant copy from the ssm command terminal and paste into ssm command. How to avoid those feature in unix (none of the users) perform those activity.

Thanks

  • please accept the answer if it was useful

質問済み 6ヶ月前382ビュー
1回答
1

Unfortunately, there is no built-in option in AWS SSM to directly disable copy and paste operations. However, you can achieve a higher level of control and restriction using IAM.

Ensure that only authorized users have access to start SSM sessions. Define an IAM policy that limits which users can access SSM sessions.

Example IAM Policy to Restrict SSM Session for instances with tag Environment: Production

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Deny",
            "Action": [
                "ssm:SendCommand",
                "ssm:StartSession",
                "ssm:ResumeSession",
                "ssm:TerminateSession"
            ],
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ssm:ResourceTag/Environment": "Production"
                }
            }
        }
    ]
}
profile picture
エキスパート
回答済み 6ヶ月前
profile picture
エキスパート
レビュー済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ