cfnlego 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05cf3ec8a02affe9da8016e8990cfbe33efbf227
4
- data.tar.gz: 02ab748f1db4af13150ca9bbe6c85b30417cec66
3
+ metadata.gz: 54d539bc1d941682ad168c217f3898f0ba02c6c3
4
+ data.tar.gz: 2510a91b346d88814edfae879a0aaca1002ea4a9
5
5
  SHA512:
6
- metadata.gz: cc15c55bffc504c274ed2dffd8a92106eda0b5305ce639e480fe9f0a75ce1fc70c5343e998eddc9af975598c04ae9dff4b37c9107ab5cfc7db2040c4751bfe6b
7
- data.tar.gz: c432664886496925e1373593249d1c5dda519375c4f4662bd98bfe72569b6956c248f37a01125cee558db91efa70d748c1243379cd0a2d7d2a54b5921ce2f7b3
6
+ metadata.gz: 184a9ec6e8ff85d462fc82b595f2c31a769985e9c8893d32b776089a8d4bfe6ae50b1c0efcd9c5d5c6af75f5a5b2a8df5393de81b9cff3dfb31a40db3c99bbe7
7
+ data.tar.gz: c79e172d4f17aaf3102251976054ed05983e6a1c6af7dc4d377f9c78a65e56428cd239f990ec8c7bd709ce5680c2142e36f0e5cb489afdb273da6dce4f78dbe5
data/README.md CHANGED
@@ -21,8 +21,10 @@ Usage: cfnlego --reousrce resource [options]
21
21
  -r RESOURCE_TYPE,RESOURCE_LOGICAL_NAME,
22
22
  --resource Add resource type and logical name
23
23
  -i, --indent TOKEN Use TOKEN for indent character (default space)
24
+ -l, --list List supported resources
24
25
  -c, --indent-count [COUNT] Count of characters to use for indenting. (default: 2)
25
26
  -h, --help Prints this help
27
+ -v, --version Show version
26
28
  Example:
27
29
  cfnlego \
28
30
  --reousrce AutoScaling::AutoScalingGroup,ASG \
@@ -38,9 +40,22 @@ Example:
38
40
  - AWS::AutoScaling::ScalingPolicy
39
41
  - AWS::CloudFront::Distribution
40
42
  - AWS::CloudWatch::Alarm
43
+ - AWS::EC2::DHCPOptions
44
+ - AWS::EC2::EIP
41
45
  - AWS::EC2::Instance
46
+ - AWS::EC2::InternetGateway
47
+ - AWS::EC2::NetworkAcl
48
+ - AWS::EC2::NetworkAclEntry
49
+ - AWS::EC2::Route
50
+ - AWS::EC2::RouteTable
42
51
  - AWS::EC2::SecurityGroup
43
52
  - AWS::EC2::SpotFleet
53
+ - AWS::EC2::Subnet
54
+ - AWS::EC2::SubnetRouteTableAssociation
55
+ - AWS::EC2::VPC
56
+ - AWS::EC2::VPCDHCPOptionsAssociation
57
+ - AWS::EC2::VPCEndpoint
58
+ - AWS::EC2::VPCGatewayAttachment
44
59
  - AWS::ECS::Cluster
45
60
  - AWS::ECS::Service
46
61
  - AWS::ECS::TaskDefinition
@@ -50,11 +65,16 @@ Example:
50
65
  - AWS::IAM::Role
51
66
  - AWS::Kinesis::Stream
52
67
  - AWS::KMS::Key
68
+ - AWS::Lambda::EventSourceMapping
53
69
  - AWS::Lambda::Function
70
+ - AWS::Lambda::Permission
54
71
  - AWS::Route53::HealthCheck
72
+ - AWS::Route53::HostedZone
55
73
  - AWS::Route53::RecordSet
56
74
  - AWS::Route53::RecordSetGroup
57
75
  - AWS::SNS::Topic
76
+ - AWS::SNS::TopicPolicy
77
+
58
78
 
59
79
  ### License
60
80
 
data/bin/cfnlego CHANGED
@@ -18,7 +18,7 @@ OptionParser.new do |opts|
18
18
 
19
19
  opts.on("-l", "--list", "List supported resources") do
20
20
  options[:list_resources] = true
21
- puts Cfnlego.Resources
21
+ puts Cfnlego.Resources.sort
22
22
  exit
23
23
  end
24
24
 
@@ -0,0 +1,11 @@
1
+ AWS::EC2::NetworkAcl:
2
+ Properties:
3
+ Tags: |
4
+ [
5
+ {
6
+ "Key" => "Name",
7
+ "Value" => "Public Subnet NetACL"
8
+ }
9
+ ]
10
+ vpcId: "\"vpc-xxxxx\""
11
+
@@ -0,0 +1,12 @@
1
+ AWS::EC2::NetworkAclEntry:
2
+ Properties:
3
+ CidrBlock: "\"172.16.0.0/24\""
4
+ Egress: "\"true|false\""
5
+ Icmp: |
6
+ { "code" => "-1|Integer", "Type" => "-1|Integer"}
7
+ NetworkAclId: "\"String\""
8
+ PortRange: |
9
+ { "From" => "Integer", "To" => "Integer" }
10
+ Protocol: "\"http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml\""
11
+ RuleAction: "\"allow|deny\""
12
+ RuleNumber: 100
@@ -0,0 +1,8 @@
1
+ AWS::EC2::Route:
2
+ Properties:
3
+ DestinationCidrBlock: "\"0.0.0.0/0\""
4
+ GatewayId: "\"igw-xxxxxx\""
5
+ InstanceId: "\"i-xxxxx\""
6
+ NetworkInterfaceId: "\"eni-xxxxxx\""
7
+ RouteTableId: "\"rt-xxxxxx\""
8
+ VpcPeeringConnectionId: "\"pe-xxxxxxx\""
@@ -0,0 +1,10 @@
1
+ AWS::EC2::RouteTable:
2
+ Properties:
3
+ VpcId: "\"vpc-xxxxx\""
4
+ Tags: |
5
+ [
6
+ {
7
+ "Key" => "Name",
8
+ "Value" => "Test EC2"
9
+ }
10
+ ]
@@ -0,0 +1,4 @@
1
+ AWS::EC2::SubnetRouteTableAssociation:
2
+ Properties:
3
+ RouteTableId: "\"rt-xxxxxxxx\""
4
+ SubnetId: "\"sb-xxxxxx\""
@@ -5,6 +5,7 @@ AWS::EC2::VPCEndpoint:
5
5
  "Statement" => [
6
6
  {
7
7
  "Sid" => "Access-to-specific-bucket-only",
8
+ "Effect" => "Allow",
8
9
  "Principal" => "*",
9
10
  "Action" => [
10
11
  "s3:GetObject",
@@ -1,3 +1,3 @@
1
1
  module Cfnlego
2
- VERSION='0.2.0'
2
+ VERSION='0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfnlego
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Yung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-beautify
@@ -99,9 +99,14 @@ files:
99
99
  - lib/cfnlego/resources/AWS/EC2/EIP.yaml
100
100
  - lib/cfnlego/resources/AWS/EC2/Instance.yaml
101
101
  - lib/cfnlego/resources/AWS/EC2/InternetGateway.yaml
102
+ - lib/cfnlego/resources/AWS/EC2/NetworkAcl.yaml
103
+ - lib/cfnlego/resources/AWS/EC2/NetworkAclEntry.yaml
104
+ - lib/cfnlego/resources/AWS/EC2/Route.yaml
105
+ - lib/cfnlego/resources/AWS/EC2/RouteTable.yaml
102
106
  - lib/cfnlego/resources/AWS/EC2/SecurityGroup.yaml
103
107
  - lib/cfnlego/resources/AWS/EC2/SpotFleet.yaml
104
108
  - lib/cfnlego/resources/AWS/EC2/Subnet.yaml
109
+ - lib/cfnlego/resources/AWS/EC2/SubnetRouteTableAssociation.yaml
105
110
  - lib/cfnlego/resources/AWS/EC2/VPC.yaml
106
111
  - lib/cfnlego/resources/AWS/EC2/VPCDHCPOptionsAssociation.yaml
107
112
  - lib/cfnlego/resources/AWS/EC2/VPCEndpoint.yaml