Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflycons committed Jul 11, 2019
1 parent cbad5c8 commit 80054cd
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
9 changes: 9 additions & 0 deletions aws-toolbox/Public/SSM/Invoke-ATSSMPowerShellScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ function Invoke-ATSSMPowerShellScript
.EXAMPLE
Invoke-ATSSMPowerShellScript -InstanceIds i-00000000 -AsText { dir c:\ }
Returns directory listing from remote instance to the console.
.NOTES
IAM permissions required to run this command
- ssm:GetConnectionStatus
- ssm:ListCommandInvocations
- ssm:ListCommands
- ssm:SendCommand
- ec2:DescribeInstances
#>
[CmdletBinding(DefaultParameterSetName = 'AsText')]
param
Expand Down
11 changes: 10 additions & 1 deletion aws-toolbox/Public/SSM/Invoke-ATSSMShellScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ function Invoke-ATSSMShellScript
Format of bucket name is aws-toolbox-workspace-REGIONNAME-AWSACCOUNTID
.EXAMPLE
Invoke-ATSSMShellScript -InstanceIds i-00000000 -AsText { ls -la / }
Invoke-ATSSMShellScript -InstanceIds i-00000000 -AsText "ls -la /"
Returns directory listing from remote instance to the console.
.NOTES
IAM permissions required to run this command
- ssm:GetConnectionStatus
- ssm:ListCommandInvocations
- ssm:ListCommands
- ssm:SendCommand
- ec2:DescribeInstances
#>
[CmdletBinding(DefaultParameterSetName = 'AsText')]
param
Expand Down
9 changes: 7 additions & 2 deletions docs/en-US/Invoke-ATSSMPowerShellScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ For more information, see about_CommonParameters (http://go.microsoft.com/fwlink
### - ResultObject If -AsJson and the result was successfully parsed, then an object else NULL
### - ResultText Standard Output returned by the script (Write-Host etc.)
## NOTES
aws-toolbox uses a working bucket for passing results through S3 which will be created if not found.
Format of bucket name is aws-toolbox-workspace-REGIONNAME-AWSACCOUNTID
IAM permissions required to run this command
- ssm:GetConnectionStatus
- ssm:ListCommandInvocations
- ssm:ListCommands
- ssm:SendCommand
- ec2:DescribeInstances
## RELATED LINKS
11 changes: 8 additions & 3 deletions docs/en-US/Invoke-ATSSMShellScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Runs the command on the listed instances.

### EXAMPLE 2
```
Invoke-ATSSMShellScript -InstanceIds i-00000000 -AsText { ls -la / }
Invoke-ATSSMShellScript -InstanceIds i-00000000 -AsText "ls -la /"
```

Returns directory listing from remote instance to the console.
Expand Down Expand Up @@ -172,7 +172,12 @@ For more information, see about_CommonParameters (http://go.microsoft.com/fwlink
### - ResultObject If -AsJson and the result was successfully parsed, then an object else NULL
### - ResultText Standard Output returned by the script (Write-Host etc.)
## NOTES
aws-toolbox uses a working bucket for passing results through S3 which will be created if not found.
Format of bucket name is aws-toolbox-workspace-REGIONNAME-AWSACCOUNTID
IAM permissions required to run this command
- ssm:GetConnectionStatus
- ssm:ListCommandInvocations
- ssm:ListCommands
- ssm:SendCommand
- ec2:DescribeInstances
## RELATED LINKS

0 comments on commit 80054cd

Please sign in to comment.