cfndsl 0.11.6 → 0.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/lib/cfndsl/aws/types.yaml +15 -0
- data/lib/cfndsl/version.rb +1 -1
- data/spec/aws/kms_alias_spec.rb +23 -0
- data/spec/aws/rds_db_instance_spec.rb +23 -0
- metadata +15 -11
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
ZjE5NjJkZWVmOTI4NzUzMTFkMGIxZTlkNTUyNDBkNTE5MDAwM2IwMg==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 08ec2f4a0a16376506ae02c45819787b64b44439
|
|
4
|
+
data.tar.gz: 857186875475f12cb78f0f79032539f4932c0aa1
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
ODBkY2EzMDE3MjQ5NGM5NWNmZjE3OTE4Nzc5NzM4MzVhNDBlNTljODFiZjli
|
|
11
|
-
ZmRhOGMwYTk1MThhM2NiYjdmZGFkNWJmYmIxNTViMDI3YjZjYWQ=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
MjQ0ZWZhM2JhYzQ5NmQ1NmY5ZTZkZmIwNjlkYjgzNzVmODNlNjljMDIyOWVl
|
|
14
|
-
ZTFiMzI2OWQ3ZWJkY2IxYTBjMGIzNzZkNTgwNmM0ZDhhZmQ1MGE3ZTNkMDM5
|
|
15
|
-
M2U1MjU2YzUyYzU3MjJhZDliZDg5YWQ2ZmFjNzdlYmZiZmVmZmU=
|
|
6
|
+
metadata.gz: a1c9231447ade3fff3ba672216c1d4d747f95f97c7d4e44f8bc113bab09962bb80fefaf5e0ea9ccd0473d0afbe5a221578f82b0d8aa4ece08e2b7fd911d0fa2d
|
|
7
|
+
data.tar.gz: d6e6866281b2c398efe007c208c5bcb2586964f1aeaa8d645faf7fefb67f79781cefcab6085df57e15d8323ea2aaac23027c426b6e4fba5fd816883257ac008f
|
data/lib/cfndsl/aws/types.yaml
CHANGED
|
@@ -152,6 +152,12 @@ Resources:
|
|
|
152
152
|
# BreachDuration: String
|
|
153
153
|
# UpperThreshold: String
|
|
154
154
|
# LowerThreshold: String
|
|
155
|
+
"AWS::CertificateManager::Certificate" :
|
|
156
|
+
Properties:
|
|
157
|
+
DomainName: String
|
|
158
|
+
DomainValidationOptions: [ DomainValidationOption ]
|
|
159
|
+
SubjectAlternativeNames: [ String ]
|
|
160
|
+
Tags: [ ResourceTag ]
|
|
155
161
|
"AWS::CloudFormation::CustomResource" :
|
|
156
162
|
Properties:
|
|
157
163
|
ServiceToken: String
|
|
@@ -694,6 +700,10 @@ Resources:
|
|
|
694
700
|
Enabled: Boolean
|
|
695
701
|
EnableKeyRotation: Boolean
|
|
696
702
|
KeyPolicy: JSON
|
|
703
|
+
"AWS::KMS::Alias" :
|
|
704
|
+
Properties:
|
|
705
|
+
AliasName: String
|
|
706
|
+
TargetKeyId: String
|
|
697
707
|
"AWS::Logs::LogGroup" :
|
|
698
708
|
Properties:
|
|
699
709
|
LogGroupName: String
|
|
@@ -813,6 +823,8 @@ Resources:
|
|
|
813
823
|
LicenseModel: String
|
|
814
824
|
MasterUsername: String
|
|
815
825
|
MasterUserPassword: String
|
|
826
|
+
MonitoringInterval: Integer
|
|
827
|
+
MonitoringRoleArn: String
|
|
816
828
|
MultiAZ: Boolean
|
|
817
829
|
OptionGroupName: String
|
|
818
830
|
Port: String
|
|
@@ -1517,6 +1529,9 @@ Types:
|
|
|
1517
1529
|
TargetString: String
|
|
1518
1530
|
TargetStringBase64: String
|
|
1519
1531
|
TextTransformation: String
|
|
1532
|
+
DomainValidationOption:
|
|
1533
|
+
DomainName: String
|
|
1534
|
+
ValidationDomain: String
|
|
1520
1535
|
FieldToMatch:
|
|
1521
1536
|
Data: String
|
|
1522
1537
|
Type: String
|
data/lib/cfndsl/version.rb
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe CfnDsl::CloudFormationTemplate do
|
|
4
|
+
subject(:template) { described_class.new }
|
|
5
|
+
|
|
6
|
+
describe '#KMS_Alias' do
|
|
7
|
+
it 'supports AliasName property' do
|
|
8
|
+
template.KMS_Alias(:Test) do
|
|
9
|
+
AliasName 'test-key'
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
expect(template.to_json).to include('"AliasName":"test-key"')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it 'supports TargetKeyId property' do
|
|
16
|
+
template.KMS_Alias(:Test) do
|
|
17
|
+
TargetKeyId 'kms-key-123'
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
expect(template.to_json).to include('"TargetKeyId":"kms-key-123"')
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe CfnDsl::CloudFormationTemplate do
|
|
4
|
+
subject(:template) { described_class.new }
|
|
5
|
+
|
|
6
|
+
describe '#RDS_DBInstance' do
|
|
7
|
+
it 'supports MonitoringInterval property' do
|
|
8
|
+
template.RDS_DBInstance(:Test) do
|
|
9
|
+
MonitoringInterval 1
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
expect(template.to_json).to include('"MonitoringInterval":1')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it 'supports MonitoringRoleArn property' do
|
|
16
|
+
template.RDS_DBInstance(:Test) do
|
|
17
|
+
MonitoringRoleArn 'arn:aws:iam:123456789012:role/emaccess'
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
expect(template.to_json).to include('"MonitoringRoleArn":"arn:aws:iam:123456789012:role/emaccess"')
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfndsl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Jack
|
|
@@ -9,20 +9,20 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: '0'
|
|
21
21
|
type: :development
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: '0'
|
|
28
28
|
description: DSL for creating AWS Cloudformation templates
|
|
@@ -34,9 +34,9 @@ executables:
|
|
|
34
34
|
extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
|
36
36
|
files:
|
|
37
|
-
- .gitignore
|
|
38
|
-
- .rubocop.yml
|
|
39
|
-
- .travis.yml
|
|
37
|
+
- ".gitignore"
|
|
38
|
+
- ".rubocop.yml"
|
|
39
|
+
- ".travis.yml"
|
|
40
40
|
- Gemfile
|
|
41
41
|
- LICENSE
|
|
42
42
|
- README.md
|
|
@@ -88,7 +88,9 @@ files:
|
|
|
88
88
|
- sample/vpc_example.rb
|
|
89
89
|
- sample/vpc_with_vpn_example.rb
|
|
90
90
|
- spec/aws/ecs_task_definition_spec.rb
|
|
91
|
+
- spec/aws/kms_alias_spec.rb
|
|
91
92
|
- spec/aws/logs_log_group_spec.rb
|
|
93
|
+
- spec/aws/rds_db_instance_spec.rb
|
|
92
94
|
- spec/cfndsl_spec.rb
|
|
93
95
|
- spec/cli_spec.rb
|
|
94
96
|
- spec/cloud_formation_template_spec.rb
|
|
@@ -108,19 +110,19 @@ homepage: https://github.com/stevenjack/cfndsl
|
|
|
108
110
|
licenses:
|
|
109
111
|
- MIT
|
|
110
112
|
metadata: {}
|
|
111
|
-
post_install_message:
|
|
112
|
-
will be removed in the next major version.
|
|
113
|
+
post_install_message: "'addTag' is now deprecated in favour of 'add_tag'. 'addTag'
|
|
114
|
+
will be removed in the next major version."
|
|
113
115
|
rdoc_options: []
|
|
114
116
|
require_paths:
|
|
115
117
|
- lib
|
|
116
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
119
|
requirements:
|
|
118
|
-
- -
|
|
120
|
+
- - ">="
|
|
119
121
|
- !ruby/object:Gem::Version
|
|
120
122
|
version: '0'
|
|
121
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
124
|
requirements:
|
|
123
|
-
- -
|
|
125
|
+
- - ">="
|
|
124
126
|
- !ruby/object:Gem::Version
|
|
125
127
|
version: '0'
|
|
126
128
|
requirements: []
|
|
@@ -131,7 +133,9 @@ specification_version: 4
|
|
|
131
133
|
summary: AWS Cloudformation DSL
|
|
132
134
|
test_files:
|
|
133
135
|
- spec/aws/ecs_task_definition_spec.rb
|
|
136
|
+
- spec/aws/kms_alias_spec.rb
|
|
134
137
|
- spec/aws/logs_log_group_spec.rb
|
|
138
|
+
- spec/aws/rds_db_instance_spec.rb
|
|
135
139
|
- spec/cfndsl_spec.rb
|
|
136
140
|
- spec/cli_spec.rb
|
|
137
141
|
- spec/cloud_formation_template_spec.rb
|