cfnlego 0.0.9 → 0.1.0

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: 66a6f641bd72a9a25ee4ca635c00edd254a0cdd6
4
- data.tar.gz: 721512826b9d65f1e2a8bc35f9eee169682e38f3
3
+ metadata.gz: 7267ced07fa5dad33d4ac4908f9021c156ad2738
4
+ data.tar.gz: 3678cb3a120e5639ffdf32e52c37dd383a48acf6
5
5
  SHA512:
6
- metadata.gz: dbef6433175ec8af196ca16fd45db6196f8f9bc34b276c6b2571b2a2385b7329d5d1f9c7c768b030514e43d547594a1c660effb290ac20bfcaa768268347476f
7
- data.tar.gz: f78fbe1d153c1e29eb166ac850bc9407877bfcb1681d8481f1f3bdf96eb3f74648903ea08e5423e90580858c913d332cb55fab272bb5ab75f518fc88adcdd265
6
+ metadata.gz: 8c676dfc2fcca11e1915d315d42de1270757c19857a490d9e87fcae109d4eb2a822b563e54c4a505361466299a5ac95a1595cae4c20183d21ac6ec16c279c449
7
+ data.tar.gz: 9c444e51ae8d4744d77f092e0243896e9e7c1c590bf670aef964421d00d5e38e81b7eea020ed178df4dd1afa9a9c2c8ead30d7536945b19e74e9a6864a6d36d7
data/README.md CHANGED
@@ -45,6 +45,8 @@ Example:
45
45
  - AWS::IAM::Role
46
46
  - AWS::Lambda::Function
47
47
  - AWS::Route53::RecordSet
48
+ - AWS::Route53::RecordSetGroup
49
+ - AWS::Route53::HealthCheck
48
50
  - AWS::SNS::Topic
49
51
  - AWS::SNS::TopicPolicy
50
52
 
@@ -67,19 +67,21 @@ AWS::EC2::Instance:
67
67
  SubnetId: "\"sb-xxxx\""
68
68
  Tags: |
69
69
  [
70
- "Key" => "Name",
71
- "Value" => "Test EC2"
70
+ {
71
+ "Key" => "Name",
72
+ "Value" => "Test EC2"
73
+ }
72
74
  ]
73
75
  Tenancy: "\"default | dedicated\""
74
76
  UserData: |
75
- FnJoin("/n",
77
+ FnBase64(FnJoin("/n",
76
78
  [
77
79
  "/bin/bash",
78
80
  "exec 1<&-",
79
81
  "exec 2<&-",
80
82
  "exec 1<>/var/log/user-data.txt",
81
83
  "exec 2>&1"
82
- ])
84
+ ]))
83
85
  Volumes: |
84
86
  [
85
87
  {
@@ -25,7 +25,9 @@ AWS::EC2::SecurityGroup:
25
25
  ]
26
26
  Tags: |
27
27
  [
28
- "Key" => "Name",
29
- "Value" => "allow HTTP Eg and In"
28
+ {
29
+ "Key" => "Name",
30
+ "Value" => "allow HTTP Eg and In"
31
+ }
30
32
  ]
31
33
  VpcId: "\"vpc-xxxxx\""
@@ -0,0 +1,20 @@
1
+ AWS::Route53::HealthCheck:
2
+ Properties:
3
+ HealthCheckConfig: |
4
+ {
5
+ "FailureThreshold" => "2",
6
+ "FullyQualifiedDomainName" => "www.example.com", #If you specified the IPAddress property, the value that you want Amazon Route 53 to pass in the host header in all health checks except for TCP health checks. If you don't specify an IP address, the domain that Amazon Route 53 sends a DNS request to. Amazon Route 53 uses the IP address that the DNS returns to check the health of the endpoint.
7
+ "IPAddress" => "1.1.1.1",
8
+ "Port" => 80,
9
+ "RequestInterval" => 15, # The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request.
10
+ "ResourcePath" => "/index.html", # The path that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint returns an HTTP status code of 2xx or 3xx when the endpoint is healthy, such as /docs/route53-health-check.html.
11
+ "SearchString" => "don't know this is a good idea or not", # If the value of the Type property is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Amazon Route 53 considers the resource healthy.
12
+ "Type" => "HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, or TCP" # The type of health check that you want to create, which indicates how Amazon Route 53 determines whether an endpoint is healthy. You can specify HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, or TCP
13
+ }
14
+ HealthCheckTags: |
15
+ [
16
+ {
17
+ "Key" => "Application",
18
+ "Value" => "MyApp"
19
+ }
20
+ ]
@@ -0,0 +1,29 @@
1
+ AWS::Route53::RecordSetGroup:
2
+ Properties:
3
+ HostedZoneId: "\"xxxxx\""
4
+ HostedZoneName: |
5
+ "example.com." # When you create a stack using an AWS::Route53::RecordSet that specifies HostedZoneName, AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName. If AWS CloudFormation cannot find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack. If you have multiple hosted zones with the same domain name, you must explicitly specify the hosted zone using HostedZoneId. Required: Conditional. You must specify either the HostedZoneName or HostedZoneId, but you cannot specify both."
6
+ RecordSets: |
7
+ [
8
+ {
9
+ "AliasTarget" => "AliasTarget",
10
+ "Comment" => "String",
11
+ "Failover" => "String",
12
+ "GeoLocation" => {
13
+ "ContinentCode" => "see http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets_Requests.html#change-rrsets-request-continent-code",
14
+ "CountryCode" => "String",
15
+ "SubdivisionCode" => "String"
16
+ },
17
+ "HealthCheckId" => "String",
18
+ "HostedZoneId" => "String",
19
+ "HostedZoneName" => "String",
20
+ "Name" => "String",
21
+ "Region" => "String", # Latency resource record sets only: The Amazon EC2 region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, for example, Amazon EC2 instance or an Elastic Load Balancing load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.
22
+ "ResourceRecords" => [ "String" ],
23
+ "SetIdentifier" => "String",
24
+ "TTL" => "String",
25
+ "Type" => "String",
26
+ "Weight" => "Integer"
27
+ }
28
+ ]
29
+ Comment: "\"Comment\""
@@ -1,3 +1,3 @@
1
1
  module Cfnlego
2
- VERSION='0.0.9'
2
+ VERSION='0.1.0'
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.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Yung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-07 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-beautify
@@ -101,7 +101,9 @@ files:
101
101
  - lib/cfnlego/resources/IAM/ManagedPolicy.yaml
102
102
  - lib/cfnlego/resources/IAM/Role.yaml
103
103
  - lib/cfnlego/resources/Lambda/Function.yaml
104
+ - lib/cfnlego/resources/Route53/HealthCheck.yaml
104
105
  - lib/cfnlego/resources/Route53/RecordSet.yaml
106
+ - lib/cfnlego/resources/Route53/RecordSetGroup.yaml
105
107
  - lib/cfnlego/resources/SNS/Topic.yaml
106
108
  - lib/cfnlego/resources/SNS/TopicPolicy.yaml
107
109
  - lib/cfnlego/version.rb
@@ -125,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
127
  version: '0'
126
128
  requirements: []
127
129
  rubyforge_project:
128
- rubygems_version: 2.4.6
130
+ rubygems_version: 2.4.8
129
131
  signing_key:
130
132
  specification_version: 4
131
133
  summary: Command Line tool to bootstrap CloudForamtion development with cfndsl