Using Steampipe in AWS Cloud9
AWS Cloud9 is a cloud-based IDE integrated with a code editor, debugger, and terminal that enables you to write, run, and debug your code with a browser. Steampipe seamlessly integrates to enable querying of AWS resources and creation of Steampipe dashboards.
Installing Steampipe in AWS Cloud9
To install Steampipe, paste this command in your AWS Cloud9 terminal.
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/turbot/steampipe/main/scripts/install.sh)"
Query AWS resources
To query AWS resources using Steampipe, first install the AWS plugin with this command.
steampipe plugin install aws
Because Cloud9 includes the AWS CLI and knows your credentials, you can immediately run SQL queries to retrieve data from hundreds of Postgres tables supported by the plugin. This query retrieves public access details for S3 buckets in your account.
selectregion,block_public_acls,bucket_policy_is_public,ignore_public_acls,restrict_public_buckets,block_public_policy,namefromaws_s3_bucket;