With bash I type this command:
ssh -i key.pem ubuntu@ec2-instance ls
And the result will be something like:
file1
file2
file3
Question:
Can I do the same thing with AWS go SDK v2?
What I need:
- Use AWS systems manager
- Do not use ssh.
- Get the output directly in my go code to print it to the console
- Don't need an interactive shell