Skip to content

Commit 343f302

Browse files
authored
Update README.md
1 parent 0974e34 commit 343f302

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Ensure Your IAM Permissions
88
* [IAM Policy Example](aws-ssm-ec2-proxy-command-iam-policy.json)
99
* `ssm:StartSession` for DocumentName: `AWS-StartSSHSession` and Target Instance
10-
* [AWS DOcumentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/getting-started-restrict-access-examples.html)
10+
* [AWS Documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/getting-started-restrict-access-examples.html)
1111
* `ssm:SendCommand` for DocumentName: `AWS-RunShellScript` and Target Instance
12-
* [AWS DOcumentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-rc-setting-up.html)
12+
* [AWS Documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-rc-setting-up.html)
1313
* Target Instance Setup
1414
* [Ensure SSM Permissions](https://docs.aws.amazon.com/systems-manager/latest/userguide/setup-instance-profile.html) fo Target Instance Profile
1515
* Ensure SSM Agent is installed (preinstalled on all AWS Linux AMIs already)
@@ -37,6 +37,12 @@
3737
* If default region does not match instance region you need to provide it like this
3838
* `AWS_PROFILE='default' ssh <INSTACEC_USER>@<INSTANCE_ID>--<INSTANCE_REGION>`
3939

40-
## TODO
41-
Add variant to send ssh key by ec2-instance-connect:SendSSHPublicKey
42-
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html
40+
## Alternative Implementation with `ec2-instance-connect`
41+
* Ensure [Prerequisits](#prerequisits)
42+
* Use [aws-ssm-ec2-proxy-command--ec2-instance-connect.sh](aws-ssm-ec2-proxy-command--ec2-instance-connect.sh) proxy command script instead
43+
* Use this [IAM Policy Example](aws-ssm-ec2-proxy-command-iam-policy--ec2-instance-connect.json) instead
44+
* `ssm:StartSession` for DocumentName: `AWS-StartSSHSession` and Target Instance
45+
* [AWS Documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/getting-started-restrict-access-examples.html)
46+
* `ec2-instance-connect:SendSSHPublicKey` for Target Instance and `ec2:DescribeInstances`
47+
* [AWS Documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-rc-setting-up.html)
48+
* Follow [Install Guide](#install-ssh-proxy-command)

0 commit comments

Comments
 (0)