AWS Slack Chatbot: Difference between revisions

From SWKLS WIKI
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
@aws lightsail get-instances --query Instances[*].Name --region us-east-1  
@aws lightsail get-instances --query Instances[*].Name --region us-east-1  
</syntaxhighlight>
===List Instance Names - Extended Information===
<syntaxhighlight lang="bash">
@aws lightsail get-instances --query Instances[*].[Name,PublicIpAddress,BlueprintId] --region us-east-1
</syntaxhighlight>
</syntaxhighlight>



Revision as of 15:49, 23 October 2020

AWS Chatbot Command Examples

LightSail

List Instance Names

@aws lightsail get-instances --query Instances[*].Name --region us-east-1

List Instance Names - Extended Information

@aws lightsail get-instances --query Instances[*].[Name,PublicIpAddress,BlueprintId] --region us-east-1

List Single Instance Info

@aws lightsail get-instance --instance-name swkls-sandbox-nano