stanb / comformation Goto Github PK
View Code? Open in Web Editor NEWCompose AWS CloudFormation templates with C# .NET
License: MIT License
Compose AWS CloudFormation templates with C# .NET
License: MIT License
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, "/*" ] ]
`
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.