Skip to content

Commit

Permalink
Update > SP > Integrations doc > Cloud 9 > Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulSrivastav14 committed May 16, 2023
1 parent 678215a commit 9d76dd8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/integrations/cloud9.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ sidebar_label: AWS Cloud9
---
# Using Steampipe in AWS Cloud9

[AWS Cloud9](https://aws.amazon.com/cloud9/) is a cloud-based IDE integrated with a code editor, debugger, and terminal that lets you write, run, and debug your code with a browser. Steampipe seamlessly integrates to enable querying of AWS resources and generating Steampipe dashboards.
[AWS Cloud9](https://aws.amazon.com/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, simply paste this command in your AWS Cloud9 terminal.
To install Steampipe, paste this command in your AWS Cloud9 terminal.

```
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/turbot/steampipe/main/install.sh)"
Expand All @@ -26,7 +26,7 @@ To query AWS resources using Steampipe, first install the [AWS plugin](https://h
steampipe plugin install aws
```

The plugin installation is swift due to the AWS CLI and credential integration into the terminal. You can instantly create SQL queries to retrieve data from hundreds of Postgres tables supported by the plugin. This query retrieves public access specifics of S3 buckets in your account.
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.

```sql
select
Expand All @@ -47,7 +47,7 @@ from

## Visualize Steampipe Dashboards with AWS Cloud9

[Steampipe dashboards](https://steampipe.io/docs/dashboard/overview) provide rich visualizations of Steampipe data. Here, we will leverage the [AWS Well-Architected Mod](https://hub.steampipe.io/mods/turbot/aws_well_architected) to develop a dashboard for verifying adherence to the best practices of the AWS Well-Architected Framework in the account. To get started, paste this command to install the mod.
[Steampipe dashboards](https://steampipe.io/docs/dashboard/overview) provide rich visualizations of Steampipe data. Here, we will use the [AWS Well-Architected Mod](https://hub.steampipe.io/mods/turbot/aws_well_architected) to develop a dashboard to check adherence to the best practices defined by the AWS Well-Architected Framework. To get started, install the mod by pasting this command.

```
git clone https://github.com/turbot/steampipe-mod-aws-well-architected
Expand All @@ -60,18 +60,20 @@ Then, execute the following command to install the mod's dependencies.
steampipe mod install
```

After installing the mod and its dependencies, initiate the dashboard server by executing this command. As AWS Cloud9 only allows `port 8080` to be opened for a local host, the `--dashboard-port` flag is utilized to specify the port number.
After installing the mod and its dependencies, start the dashboard server with this command.

```
steampipe dashboard --dashboard-port 8080
```

Click on `Preview`, select `Preview Running Application` to view the dashboard and click on `Reliability Pillar`.
AWS Cloud9 only allows `port 8080` to be opened for a local host, so use the `--dashboard-port` flag to specify that port.

Now click on `Preview`, select `Preview Running Application` to view the dashboard, then click `Reliability Pillar`.

<div style={{"marginBottom":"2em","borderWidth":"thin", "borderStyle":"solid", "borderColor":"lightgray", "padding":"20px", "width":"100%"}}>
<img alt="well-architected-dashboard-preview" src="/images/docs/ci-cd-pipelines/cloud9-well-architected-dashboard-preview.png" />
</div>

Likewise, you can also run the benchmark within the AWS Cloud9 terminal with `steampipe check benchmark.reliability`.
Alternatively, you can run the benchmark in the AWS Cloud9 terminal: `steampipe check benchmark.reliability`.

That's it! Now you can query and create dashboards using Steampipe's [plugins](https://hub.steampipe.io/plugins) and [mods](https://hub.steampipe.io/mods) in your AWS Cloud9 Environment.
That's it! Now you use Cloud9 to query and create dashboards using Steampipe's [plugins](https://hub.steampipe.io/plugins) and [mods](https://hub.steampipe.io/mods).

0 comments on commit 9d76dd8

Please sign in to comment.