Giter Site home page Giter Site logo

ami-launch-permission-tf-module's Introduction

ami-launch-permission-tf-module

GitHub Build Status

A Terraform module for giving one or more (non-master) accounts in an AWS organization permission to launch an AMI.

Usage

module "example" {
  source = "github.com/cisagov/ami-launch-permission-tf-module"

  providers = {
    aws        = aws
    aws.master = aws.master
  }

  account_name_regex = "^env"
  ami_id             = "ami-0123456789abcdef0"
}

For reference, Terraform's regular expression syntax is documented here.

Examples

Requirements

Name Version
terraform ~> 1.0
aws ~> 4.9

Providers

Name Version
aws ~> 4.9
aws.master ~> 4.9

Modules

No modules.

Resources

Name Type
aws_ami_launch_permission.accounts resource
aws_organizations_organization.org data source

Inputs

Name Description Type Default Required
account_name_regex A regular expression that will be applied against the names of all accounts in the AWS organization. If the name of an account matches the regular expression, that account will be allowed to launch the specified AMI. The default value should not match any valid account name. string "^$" no
ami_id The ID of the AMI to assign launch permissions to. string n/a yes
extraorg_account_ids A list of AWS account IDs corresponding to "extra" accounts with which you want to share this AMI (e.g. ["123456789012"]). Normally this variable is used to share an AMI with accounts that are not a member of the same AWS Organization as the account that owns the AMI. list(string) [] no

Outputs

Name Description
accounts A map whose keys are the IDs of the AWS accounts allowed to launch the AMI, and whose values are the aws_ami_launch_permission resources for the corresponding launch permissions.

Notes

Running pre-commit requires running terraform init in every directory that contains Terraform code. In this repository, these are the main directory and every directory under examples/.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

ami-launch-permission-tf-module's People

Contributors

arcsector avatar dav3r avatar dependabot[bot] avatar felddy avatar hillaryj avatar jasonodoom avatar jmorrowomni avatar jsf9k avatar mcdonnnj avatar michaelsaki avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

awsvpc

ami-launch-permission-tf-module's Issues

More flexible way to assign image launch permissions to accounts

๐Ÿš€ Feature Proposal

Create a more flexible way to assign image launch permissions to accounts. Currently we are limited to selecting accounts via a regex.

Motivation

@felddy says: "The regex filter is good enough for now, but I'd like to see a more flexible way to assign image launch permissions to accounts. I'm thinking some sort of a tagging scheme that denotes the purpose of the account, and then images can select the appropriate tags to allow launching."

Example

@felddy - can you edit this section and include any examples that you were thinking of?

Pitch

More flexibility is a Good Thang!

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.