Git Product home page Git Product logo

aws-samples / amazon-tagging-policy-converter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 5 KB

The tagging policy converter will help users convert the AWS tagging policies into the IAM policies. As the tagging policy is not available in AWS China region, this convert tool will help customers migrate tagging policies to AWS China region.

License: MIT No Attribution

Python 100.00%
alternative aws china china-region iam tagging tagging-tool workaround

amazon-tagging-policy-converter's Introduction

Tagging Policy convertor

This repo is used to convert tagging policies to IAM policies and able to enforce tags in the policies if required.

Repo Structure

  • tagging-policy-connvert.py <= This is the script for converting tagging policies to IAM policies and also could be enforce tags if required.
  • requirements.txt <= python module required.
  • samples <= an exmaple tagging policy

User Guide

  • install required python3 lib
pip install -r requirements.txt
  • script help usage
tagging-policy-connvert.py -h
Usage: 
tagging-policy-connvert.py -f TaggingPolicyFileLocation -e true/false[default is false]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -f TAGPOLICYFILE, --TagPolicyFile=TAGPOLICYFILE
                        interaction Tagging Policy file location: [example:
                        ./tagging-policy-01.json]
  -e ENFORCE, --enforce=ENFORCE
                        interaction if tag enforcement is required: [example:
                        true]
  • Only convert tagging policy, not enforcing tags
tagging-policy-connvert.py -f sample/test-tagging-policy.json
Mission Completed, please check the output file: test-tagging-policy-IAMBased.json, policy size 806
  • Convert tagging policy and enforcing tags
python3 tagging-policy-connvert.py -f samples/test-tagging-policy.json -e true
Mission Completed, please check the output file: test-tagging-policy-IAMBased-TagEnforce.json, policy size 1232

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-tagging-policy-converter's People

Contributors

amazon-auto avatar xiedans avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.