项目作者: ArunSinghJ123

项目描述 :
Python Wrapper for frequent AWS tasks
高级语言: Python
项目地址: git://github.com/ArunSinghJ123/aws-python-boto3.git
创建时间: 2018-03-26T01:53:48Z
项目社区:https://github.com/ArunSinghJ123/aws-python-boto3

开源协议:

下载


AWS Hammer

The idea of this repo is to write a wrapper functionality for frequently used aws automation scenarios

*IAM*

Creating IAM Role and Attaching custom managed Policy to the IAM Role

Note: Do not remove the mandate_iam_assume.json as it provides the AssumeRolePolicyDocument (change as needed for other entities like lambda)

Edit sample_s3.json as per need - This is an example code

  1. Step 1: git clone this repository
  2. Step 2: virtualenv aws-python-boto3
  3. Step 3: source aws-python-boto3/bin/activate
  4. Step 4: python setup.py install
  5. Step 5: Run iam [ROLENAME] [POLICYNAME] [CUSTOM JSON POLICY DOCUMENT FILE]

*S3 BUCKET POLICY ATTACHMENT TO BUCKETS*

Creating Custom Bucket Policies and Attaching to List of S3 Buckets:

Note: Existing bucket policies if any might get overrided - This is meant for scenarios where 100 buckets need same policy attached

bucketlist - provides the list of buckets to which policies will be attached

bucket_policy.json - bucket policy json , appends bucketname as per the given list

Change the bucketlist file and bucket_policy.json as per need - This is an example code

  1. Step 1: git clone this repository
  2. Step 2: virtualenv aws-python-boto3
  3. Step 3: source aws-python-boto3/bin/activate
  4. Step 4: python setup.py install
  5. Step 5: Run bucket [BUCKET_LIST_FILE] [BUCKET_POLICY_JSON]