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 +4 -4
- data/README.md +2 -0
- data/lib/cfnlego/resources/EC2/Instance.yaml +6 -4
- data/lib/cfnlego/resources/EC2/SecurityGroup.yaml +4 -2
- data/lib/cfnlego/resources/Route53/HealthCheck.yaml +20 -0
- data/lib/cfnlego/resources/Route53/RecordSetGroup.yaml +29 -0
- data/lib/cfnlego/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7267ced07fa5dad33d4ac4908f9021c156ad2738
|
4
|
+
data.tar.gz: 3678cb3a120e5639ffdf32e52c37dd383a48acf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c676dfc2fcca11e1915d315d42de1270757c19857a490d9e87fcae109d4eb2a822b563e54c4a505361466299a5ac95a1595cae4c20183d21ac6ec16c279c449
|
7
|
+
data.tar.gz: 9c444e51ae8d4744d77f092e0243896e9e7c1c590bf670aef964421d00d5e38e81b7eea020ed178df4dd1afa9a9c2c8ead30d7536945b19e74e9a6864a6d36d7
|
data/README.md
CHANGED
@@ -67,19 +67,21 @@ AWS::EC2::Instance:
|
|
67
67
|
SubnetId: "\"sb-xxxx\""
|
68
68
|
Tags: |
|
69
69
|
[
|
70
|
-
|
71
|
-
|
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
|
{
|
@@ -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\""
|
data/lib/cfnlego/version.rb
CHANGED
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
|
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-
|
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.
|
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
|