Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

AWS CLI – List All VM Instances

Posted on April 6, 2018 By David Kittell
for region in `aws ec2 describe-regions --output text | cut -f3`
do
  echo -e "\nListing Instances in region:'$region'..."
  aws ec2 describe-instances --region $region
done

Reference: https://github.com/aws/aws-cli/issues/1777

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

AWS AWS CLI Code

Post navigation

Previous post
Next post

Related Posts

Fedora – Install/Reinstall Fedora Desktop

Posted on July 7, 2016

If you start with a server ISO or need to reinstalled desktop because it crashed try this sudo yum groupinstall "Fedora Workstation" sudo systemctl set-default graphical.target sudo shutdown -r now All information on this site is shared with the intention to help. Before any source code or program is ran…

Read More

SharePoint Web Service

Posted on September 10, 2015

Microsoft SharePoint offers a web service to query and use to simplify jobs that typically you’d have to need a connection to active directory. Some Basic URLs: http://(Your SharePoint URL)/_vti_bin/UserProfileService.asmx http://(Your SharePoint URL)/_vti_bin/Lists.asmx http://(Your SharePoint URL)/_vti_bin/UserGroup.asmx From within http://(Your SharePoint URL)/_vti_bin/UserProfileService.asmx you can pull these details UserProfile_GUID, AccountName, FirstName, LastName,…

Read More

PowerShell – Get-TinyURL API Call

Posted on December 14, 2015February 12, 2016

clear Function Get-TinyURL { #PowerShell – Get-TinyURL API Call param ( [Parameter(Mandatory=$true,ValueFromPipeline=$true)] [String] $sHTTPLink ) if ($sHTTPLink.StartsWith("http://") -eq $true -or $sHTTPLink.StartsWith("https://") -eq $true) { if ($WebClient -eq $null) {$Global:WebClient=new-object System.Net.WebClient } $webClient.DownloadString("http://tinyurl.com/api-create.php?url=" + [System.Web.HttpUtility]::UrlEncode($sHTTPLink)) } else { Write-Output "Bad Link, please include http:// or https://" } } Get-TinyURL "http://google.com" GitHub:…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes