Skip to content

Instantly share code, notes, and snippets.

View revolutionisme's full-sized avatar

Biplob Biswas revolutionisme

View GitHub Profile
@revolutionisme
revolutionisme / convert.py
Created July 4, 2023 08:47 — forked from ghelobytes/convert.py
Convert s3 url to http url
def s3_to_http(url):
if url.startswith('s3://'):
s3_path = url
bucket = s3_path[5:].split('/')[0]
object_name = '/'.join(s3_path[5:].split('/')[1:])
return 'https://s3.amazonaws.com/{0}/{1}'.format(bucket, object_name)
else:
return url
@revolutionisme
revolutionisme / list.txt
Created November 12, 2018 14:41 — forked from shortjared/list.txt
List of AWS Service Principals
acm.amazonaws.com
apigateway.amazonaws.com
application-autoscaling.amazonaws.com
appstream.application-autoscaling.amazonaws.com
appsync.amazonaws.com
athena.amazonaws.com
autoscaling.amazonaws.com
batch.amazonaws.com
channels.lex.amazonaws.com
clouddirectory.amazonaws.com
@revolutionisme
revolutionisme / RDS-Aurora-CloudFormation-Example.yaml
Created November 6, 2018 14:08 — forked from sjparkinson/RDS-Aurora-CloudFormation-Example.yaml
A basic CloudFormation template for an RDS Aurora cluster.
---
AWSTemplateFormatVersion: 2010-09-09
Description: >
A basic CloudFormation template for an RDS Aurora cluster.
Parameters:
DatabaseUsername:
AllowedPattern: "[a-zA-Z0-9]+"
ConstraintDescription: must be between 1 to 16 alphanumeric characters.