Code Monkey home page Code Monkey logo

Comments (4)

groverlalit avatar groverlalit commented on July 16, 2024

Hello @gdunkle Thanks for opening this issue and pull request.
Can you please elaborate on the use case for this feature request? Thanks.

from aws-control-tower-customizations.

gdunkle avatar gdunkle commented on July 16, 2024

@groverlalit, I ran into this with a customer who wanted to share out multiple subnets via RAM. Currently they have to deploy the vpc then hardcode the subnet ids in a parameter file.

Template

---
AWSTemplateFormatVersion: '2010-09-09'
Description: Share resources via RAM
Parameters:
    Name:
        Description: The name of the resource share.
        Type: String
    AllowExternalPrincipals:
        AllowedValues:
          - 'true'
          - 'false'
        Default: 'false'
        Description: Indicates whether principals outside your AWS organization can be associated with a resource share. 
        Type: String
    Principals:
        Description: The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations. 
        Type: CommaDelimitedList
    ResourceArns:
        Description: The Amazon Resource Names (ARN) of the resources to associate with the resource share.
        Type: CommaDelimitedList    
Resources:
    ResourceShare:
        Type: AWS::RAM::ResourceShare
        Properties: 
          AllowExternalPrincipals: !Ref AllowExternalPrincipals
          Name: !Ref Name
          Principals: !Ref Principals
          ResourceArns: !Ref ResourceArns

Parameters:

[
  {
    "ParameterKey": "Name",
    "ParameterValue": "ram-subnets-vpc-sandbox-us-east-2"
  },
  {
    "ParameterKey": "Principals",
    "ParameterValue": ["arn:aws:organizations::123456789012:ou/o-rlcvejgy5g/ou-0v3b-emvezkoj"]                                                                        
  },
  {
    "ParameterKey": "ResourceArns",
    "ParameterValue": ["$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PrivateSubnet1AARN]"
                      ,"$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PrivateSubnet2AARN]"
                      ,"$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PrivateSubnet3AARN]"
                      ,"$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PublicSubnet1ARN]"
                      ,"$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PublicSubnet2ARN]"
                      ,"$[alfred_ssm_/cfct/vpc-sandbox-01-us-east-2/PublicSubnet3ARN]"
    ]
  }
  
]

from aws-control-tower-customizations.

groverlalit avatar groverlalit commented on July 16, 2024

Thanks for creating a pull request. We have added this our backlog.

from aws-control-tower-customizations.

groverlalit avatar groverlalit commented on July 16, 2024

This change was released in v2.1.0.

from aws-control-tower-customizations.

Related Issues (20)

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.