This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
from datetime import datetime, timedelta | |
from datetime import date | |
region=['eu-central-1','us-east-1'] | |
current_date = date.today() | |
def lambda_handler(event, context): | |
ecs_used_images=[] | |
ecr_images=[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Tested and verified in python3 env | |
#!/usr/bin/python3 | |
import requests | |
import csv | |
import json | |
headers = { | |
"Content-Type": "application/json", | |
"Accept": "application/vnd.pagerduty+json;version=2", |