Git Product home page Git Product logo

terraform-cross-account-bucket-policy's Introduction

Terraform S3 bucket policy to grant read-only access to another AWS account

Overview

This project deploys an S3 bucket policy to grant another account read-only access to the S3 bucket.

Note that the account accessing the S3 bucket being accessed must apply IAM policies to an IAM role assigned to a file share.

Deploying this project in an AWS account can launch resources that are not free to deploy and use. Consult the various AWS pricing guides available for the resources included in this project before deploying these resources.

Disclaimer

The author of this terraform example bears no responsibility for any costs that may arise as a result of using this project. User of this example code assumes full responsibility for it's use and any results that may come from its deployment.

Usage Instructions

The code in this repo is meant to be incorporated into a separate project deploying one or more storage gateways across multiple accounts.

This code can also be consumed as a terraform module. To use this project as a module, you can call it by doing the following:

module "bucket_policy" {
 source                = "${path_to_this_module}"
 bucket_name           = "" #the bucket to whcih the policy is being added
 bucket_arn            = "" #the ARN of the bucket to which the policy is being applied
 read_account_id       = "" #the 12 digit account number to which you are granting access
}

terraform-cross-account-bucket-policy's People

Contributors

dstauffacher 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.