Skip to content

Instantly share code, notes, and snippets.

View hashishrajan's full-sized avatar
🤴
I may be slow to respond.

Ashish hashishrajan

🤴
I may be slow to respond.
View GitHub Profile
@ustayready
ustayready / gpt.py
Created January 16, 2023 23:49
CloudGPT - Use ChatGPT to analyze AWS policies for vulnerabilities
import openai
import boto3
import json
import time
from typing import Dict, List
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###'
session = boto3.session.Session()
client = session.client('iam')