Skip to content

Instantly share code, notes, and snippets.

from __future__ import print_function
import json
import boto3
import time
import urllib
import csv
from botocore.vendored import requests
# Get the service resource
{
"Version": "2018-03-27",
"Id": "Policy123",
"Statement": [
{
"Sid": "Stmt123",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::XXXXXXXX:role/[ROLE NAME]"
},