I need to restrict some users AWS SSM access to SSH only. These users should only be able to start a SSH session via SSM like this:
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p"
It should not be possible to start a SSM session directly (ssm-user):
aws ssm start-session --target i-*
Is this possible?