-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpipeline.sh
21 lines (21 loc) · 2.15 KB
/
pipeline.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
python3 -V
mkdir -p cloudwatch_config_builder/files/cloudwatch_metrics
aws --region="$1" cloudwatch list-metrics --namespace=AWS/AutoScaling > cloudwatch_config_builder/files/cloudwatch_metrics/auto_scaling.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/Billing > cloudwatch_config_builder/files/cloudwatch_metrics/billing.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/DynamoDB > cloudwatch_config_builder/files/cloudwatch_metrics/dynamo_db.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/EBS > cloudwatch_config_builder/files/cloudwatch_metrics/ebs.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/EC2 > cloudwatch_config_builder/files/cloudwatch_metrics/ec2.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/ElastiCache > cloudwatch_config_builder/files/cloudwatch_metrics/elasti_cache.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/Events > cloudwatch_config_builder/files/cloudwatch_metrics/events.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/Lambda > cloudwatch_config_builder/files/cloudwatch_metrics/lambda.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/Logs > cloudwatch_config_builder/files/cloudwatch_metrics/logs.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/NetworkELB > cloudwatch_config_builder/files/cloudwatch_metrics/network_elb.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/RDS > cloudwatch_config_builder/files/cloudwatch_metrics/rds.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/S3 > cloudwatch_config_builder/files/cloudwatch_metrics/s3.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/TransitGateway > cloudwatch_config_builder/files/cloudwatch_metrics/transit_gateway.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/TrustedAdvisor > cloudwatch_config_builder/files/cloudwatch_metrics/trusted_advisor.json
aws --region="$1" cloudwatch list-metrics --namespace=AWS/Usage > cloudwatch_config_builder/files/cloudwatch_metrics/usage.json
./custom_gather.sh $1 $2 # $1: REGION. $2: CUSTOM
python3 main.py
cd cloudwatch_config_builder
ansible-playbook --ask-become-pass -vvv main.yml