Giter VIP home page Giter VIP logo

comformation's Issues

s3 PolicyDocument

Hi,

Many thanks for this project, it's already proving to be very useful.

May I ask for help with regard to converting the below YML to Comformation code, please?

I'm stuck on how exactly I should be using the Union object for the PolicyDocument.

Many thanks,

Luke.

`

DeployBucketPolicy: 

Type: AWS::S3::BucketPolicy

Properties: 

Bucket: !Ref DeployBucket

PolicyDocument: 

  Statement: 

    - 

      Sid: PublicReadGetObject

      Effect: Allow

      Principal: "*"

      Action: 

        - s3:GetObject            

      Resource: !Join [ "", [ "arn:aws:s3:::", !Ref DeployBucket, "/*" ] ]

`

ALB Subnets Question

Hi, Thanks for publishing this library - it would have been super handy when I started writing CF from hand a couple of years ago ๐Ÿ˜‚.

I'm looking at converting those templates into c#, but have come up with a challenge with subnets.

I have a template where the subnets are passed as a parameter:

Parameters:

    ALBSubnets:
        Description: Choose which subnets the Application Load Balancer should be deployed to
        Type: List<AWS::EC2::Subnet::Id>

Then used to in a LoadBalancer

    LoadBalancer:
        Type: AWS::ElasticLoadBalancingV2::LoadBalancer
        Properties:
            Subnets: !Ref ALBSubnets

The input value is actually a reference to output of another stack:

  WebsiteAndALB:
    Type: AWS::CloudFormation::Stack
    Properties:
      TemplateURL: https://xxxx.yaml
      Parameters:
        ALBSubnets: 
          Fn::ImportValue: !Sub "${NetworkStack}-PublicSubnets"

Question is:

  • Can I use an equivalent of ::ImportValue or something for this?
  • If not, could I use an array/list of strings? I can't quite work out the syntax.

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.