Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devsecfranklin/cloud-scripts
Data collection script for public cloud
https://github.com/devsecfranklin/cloud-scripts
Last synced: about 1 month ago
JSON representation
Data collection script for public cloud
- Host: GitHub
- URL: https://github.com/devsecfranklin/cloud-scripts
- Owner: devsecfranklin
- License: mit
- Created: 2022-03-21T16:57:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T16:59:06.000Z (2 months ago)
- Last Synced: 2024-09-09T20:51:33.350Z (2 months ago)
- Language: Shell
- Size: 91.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# cloud-scripts
[![Script Validation](https://github.com/devsecfranklin/cloud-scripts/actions/workflows/bash_chk.yaml/badge.svg)](https://github.com/devsecfranklin/cloud-scripts/actions/workflows/bash_chk.yaml) [![REUSE](https://github.com/devsecfranklin/cloud-tools/actions/workflows/reuse.yml/badge.svg)](https://github.com/devsecfranklin/cloud-tools/actions/workflows/reuse.yml) [![build container](https://github.com/devsecfranklin/cloud-tools/actions/workflows/trivy.yaml/badge.svg)](https://github.com/devsecfranklin/cloud-tools/actions/workflows/trivy.yaml)
These scripts are for data gathering on public cloud infrastructure and configuration.
The easiest way to use this is to clone it into a cloud shell and run from there.
```sh
git clone https://github.com/devsecfranklin/cloud-tools.git
cd cloud-tools
```## Azure
Download the script to your cloud shell in Azure.
```sh
wget -O az_check.sh https://raw.githubusercontent.com/devsecfranklin/cloud-scripts/main/az/az_check.sh
chmod 755 az_check.sh
```Execute the script once for each Resource Group, such as `./az_check.sh -r `.
```sh
./az_check.sh -r bmika-app3
```Upload the compressed TAR file as directed.
## Google Cloud
Download the script to your cloud shell in GCP.
```sh
wget -O gcp_check.sh https://raw.githubusercontent.com/devsecfranklin/cloud-scripts/main/gcp/gcp_check.sh
chmod 755 gcp_check.sh
```Execute the script once for each VPC (such as mgmt, trust, and untrust).
```sh
./gcp_check.sh -v ps-devsecops-mgmt
./gcp_check.sh -v ps-devsecops-trust
./gcp_check.sh -v ps-devsecops-untrust
```Same as previous example, but in a single line:
```sh
for vpc in ps-devsecops-mgmt ps-devsecops-trust ps-devsecops-untrust; do \
./gcp_check.sh -v ${vpc}; done
```Upload the compressed TAR file as directed.
## AWS
Download the script to your cloud shell in AWS.
```sh
wget -O aws_check.sh https://raw.githubusercontent.com/devsecfranklin/cloud-scripts/main/aws/aws_check.sh
chmod 755 aws_check.sh
```Execute the script once for each VPC.
```sh
./aws_check.sh -v ps-devsecops-mgmt
./aws_check.sh -v ps-devsecops-trust
./aws_check.sh -v ps-devsecops-untrust
```Same as previous example, but in a single line:
```sh
for vpc in ps-devsecops-mgmt ps-devsecops-trust ps-devsecops-untrust; do \
./aws_check.sh -v ${vpc}; done
```## OCI
Download the script to your cloud shell in AWS.
```sh
wget -O oci_check.sh https://raw.githubusercontent.com/devsecfranklin/cloud-scripts/main/oci/oci_check.sh
chmod 755 oci_check.sh
```Execute the script once for each Compartment.
Example:
```sh
./oci_check.sh -c ocid1.compartment.oc1..aaaaaaaa123412341234asdfasdf
```## OpenShift
Download the script.
```sh
wget -O oci_check.sh https://raw.githubusercontent.com/devsecfranklin/cloud-scripts/main/oci/oci_check.sh
chmod 755 oci_check.sh
```Execute the script once for the `kube-system` namespace, and other desired namespaces.
Example:
```sh
./openshift_check.sh -n kube-system
./openshift_check.sh -n web-app-test
```## Results
A small set of test and JSON output is generated from the execution of the
scripts. Upload the compressed TAR file as directed.