Coder Social home page Coder Social logo

cloud-governance's Introduction

cloud-governance

Governance in the Cloud

Configure Stack Sets

You need to set up the environment by creating the administrator role that will assume the execution role in the destination account. So in order for this to work, you need to have the Administrator and Executor role.

  1. Create the Administrator role by deploying the AWSCloudFormationStackSetAdministrationRole.yml template
  2. Take note of the account number that will act as the administrator, you'll use it for the Executor role
  3. Create the Executor role by deploying the AWSCloudFormationStackSetExecutionRole.yml. In the parameter section, enter the account number of the administartor account.

Create the Jenkins Deployment Role

  1. Create a CloudFormation stackset using the AWSJenkinsAdministrationRole.yml template, you'll need to deploy it to at least one account for this to work. The template requires an account number that the role will "trus" when assuming the role to create any AWS resource in Jenkins.
  2. If you want to deploy the same template to any other account, enter to the stack and click on "Manage StackSet" and enter the AWS account destination number and the region.

If you want to perform a change in the template role, you can do the change in the template and update the stack set. Then, apply the updates to the AWS accounts.

Pre-Commit Hook

Before you can set up the pre-commit hook, you need to make sure that you have Python and pip installed. Then, you need to install the pre-commit framework with the following command sudo pip install pre-commit.

Create the .pre-commit-config.yaml in the root of the repository with the following content:

# .pre-commit-config.yaml
repos:
-   repo: https://github.com/awslabs/cfn-python-lint
    rev: v0.15.0 # The version of cfn-lint to use
    hooks:
    -   id: cfn-python-lint
    files: src/.*\.(json|yml|yaml)$

Finally, install the hook with the following command pre-commit install.

cloud-governance's People

Contributors

chrismld avatar brandonxg avatar

Watchers

James Cloos avatar  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.