You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Alternative Implementation with `ec2-instance-connect`
50
-
The advantage from security perspective it that you don't need to grant `ssm:SendCommand` to users and there by the permission to execute everything.
51
-
Instead you only grant`ec2-instance-connect:SendSSHPublicKey` permission.
50
+
The advantage from security perspective it that you don't need to grant `ssm:SendCommand` to users and there by the permission to execute everything as root.
51
+
Instead you only grant`ec2-instance-connect:SendSSHPublicKey` permission to a specific instance user e.g. `ec2-user`.
52
52
* Ensure [Prerequisits](#prerequisits)
53
53
* Use this [aws-ssm-ec2-proxy-command.sh](ec2-instance-connect/aws-ssm-ec2-proxy-command.sh) proxy command script instead
54
54
* Use this [IAM Policy Example](ec2-instance-connect/aws-ssm-ec2-iam-policy.json) instead
0 commit comments