cfndsl 0.11.0 → 0.11.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2U4ZWRiYzQ2MTQ2OTAzMGFlNzM0YmY3N2Q2YWVmNDEzNDk3M2JiOQ==
4
+ N2M3MmIxMWQyMTcxZjhhODJhYmYzZWM1OTdjZGM0ZmM3MGRlNzMyMQ==
5
5
  data.tar.gz: !binary |-
6
- MzczODNhYWYzOWZkNjMyZTYyZDQyNTExMmE4OGY3NDk3YTk1ZDVhOA==
6
+ MDU1ODE0NTk4OWM2NjIzZWZjMGQ4NDczN2NkOWZhMDUzMjkxNWZkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODc4ODAyNjQ2NDYzMTBjMWIzYjk5NTMzYWJjMWRlZTI2MjcxN2UzMzNmZTVh
10
- NmE5ZjY3MzI2NmUxMGZhZjE0ZTZhOTM4NDZjZmM1NGI5ZTFiMjdkY2E4MWVm
11
- ZDU0MWE3MzhkZjU2ZWZjMTA2MWM1ZTM4NjM4NGIxN2EwMTNkNmU=
9
+ MzEwMGE0Y2RmZmMyNzhkNjM2MjVkMGQ3MjkxNDcyMDQyZmNlMThhZjIyYjkz
10
+ MzBlZWVjYzllMTRjNDNkYmIzOWU5OTViNjI2ZjI5NWI4M2FhYTg0ZGM1MWEz
11
+ MTAyY2ViYjI4MDMyZDYzMzdkZWZkZDRkZTgxYmJlMjBhN2RkNmY=
12
12
  data.tar.gz: !binary |-
13
- MDI2OThlM2M4NDQ3Njg4NmQ0ZjY2ODZlYjgxMTUzYzA3MGNmZjgzNWE4YjNk
14
- MjczOTQwOGI4MjBjYTUyN2IyYTIyNDhlZGE0NTVmNDViNjRmZDA1NjhhY2Ix
15
- ZTUyMzM5MjdmYzg1NWRlOTZjNTdkMmVjNWYyMTBhODk1MWM4MjE=
13
+ MDc3MTRiOWZkNzk0MDFiYzQ5YmU0YjBjNmVjYzYwZGRjNTIxZDUxOWY0ZTUx
14
+ NzA1NjNlN2ZmMjgzY2JjYjY0NGEwN2VmMGExZmUwYjNhNmE1OWVmNzJiZjU1
15
+ MWFjOGU4N2E2NTg5Y2FmOWM3YWJiNjk1YTZmZmEzOGExZDBmMDI=
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  *~
3
3
  Gemfile.lock
4
4
  tmp/
5
+ coverage/
data/Gemfile CHANGED
@@ -13,4 +13,5 @@ group :test do
13
13
  gem 'aruba'
14
14
  gem 'rake'
15
15
  gem 'rspec'
16
+ gem 'simplecov'
16
17
  end
data/Rakefile CHANGED
@@ -7,6 +7,12 @@ require 'yamllint/rake_task'
7
7
  RSpec::Core::RakeTask.new
8
8
  RuboCop::RakeTask.new
9
9
 
10
+ desc 'Run RSpec with SimpleCov'
11
+ task :cov do
12
+ ENV['CFNDSL_COV'] = 'true'
13
+ Rake::Task[:spec].execute
14
+ end
15
+
10
16
  YamlLint::RakeTask.new do |t|
11
17
  t.paths = %w(
12
18
  lib/cfndsl/aws/types.yaml
@@ -249,7 +249,7 @@ Resources:
249
249
  Properties :
250
250
  BgpAsn : Number
251
251
  IpAddress : String
252
- Tags : [ EC2Tag ]
252
+ Tags : [ ResourceTag ]
253
253
  Type : String
254
254
  "AWS::EC2::EIP" :
255
255
  Properties:
@@ -297,7 +297,7 @@ Resources:
297
297
  SourceDestCheck: Boolean
298
298
  SsmAssociations: [ SsmAssociation ]
299
299
  SubnetId: String
300
- Tags: [ EC2Tag ]
300
+ Tags: [ ResourceTag ]
301
301
  Tenancy: String
302
302
  UserData: String
303
303
  Volumes: [ EC2MountPoint ]
@@ -309,10 +309,10 @@ Resources:
309
309
  PublicIp: String
310
310
  "AWS::EC2::InternetGateway" :
311
311
  Properties:
312
- Tags: [ EC2Tag ]
312
+ Tags: [ ResourceTag ]
313
313
  "AWS::EC2::NetworkAclEntry" :
314
314
  Properties:
315
- Tags: [ EC2Tag ]
315
+ Tags: [ ResourceTag ]
316
316
  CidrBlock: String
317
317
  Egress: Boolean
318
318
  Icmp: EC2Icmp
@@ -323,7 +323,7 @@ Resources:
323
323
  Protocol: Integer
324
324
  "AWS::EC2::NetworkInterface" :
325
325
  Properties:
326
- Tags: [ EC2Tag ]
326
+ Tags: [ ResourceTag ]
327
327
  GroupSet: [ String ]
328
328
  SubnetId: String
329
329
  PrivateIpAddress: String
@@ -341,14 +341,14 @@ Resources:
341
341
  "AWS::EC2::RouteTable" :
342
342
  Properties:
343
343
  VpcId: String
344
- Tags: [ EC2Tag ]
344
+ Tags: [ ResourceTag ]
345
345
  "AWS::EC2::SecurityGroup" :
346
346
  Properties:
347
347
  GroupDescription: String
348
348
  SecurityGroupIngress: [ EC2SecurityGroupRule ]
349
349
  SecurityGroupEgress: [ EC2SecurityGroupRule ]
350
350
  VpcId: String
351
- Tags : [ EC2Tag ]
351
+ Tags : [ ResourceTag ]
352
352
  "AWS::EC2::SecurityGroupEgress" :
353
353
  Properties:
354
354
  GroupId: String
@@ -373,7 +373,7 @@ Resources:
373
373
  AvailabilityZone: String
374
374
  VpcId: String
375
375
  CidrBlock: String
376
- Tags: [ EC2Tag ]
376
+ Tags: [ ResourceTag ]
377
377
  MapPublicIpOnLaunch: Boolean
378
378
  "AWS::EC2::SubnetRouteTableAssociation" :
379
379
  Properties:
@@ -388,7 +388,7 @@ Resources:
388
388
  AvailabilityZone: String
389
389
  Size: String
390
390
  SnapshotId: String
391
- Tags: [ EC2Tag ]
391
+ Tags: [ ResourceTag ]
392
392
  Encrypted: Boolean
393
393
  Iops: Number
394
394
  VolumeType: String
@@ -401,7 +401,7 @@ Resources:
401
401
  Properties:
402
402
  CidrBlock: String
403
403
  InstanceTenancy: String
404
- Tags: [ EC2Tag ]
404
+ Tags: [ ResourceTag ]
405
405
  EnableDnsSupport: Boolean
406
406
  EnableDnsHostnames: Boolean
407
407
  "AWS::EC2::DHCPOptions" :
@@ -411,7 +411,7 @@ Resources:
411
411
  NetbiosNameServers : [ String ]
412
412
  NetbiosNodeType : Number
413
413
  NtpServers : [ String ]
414
- Tags : [ EC2Tag ]
414
+ Tags : [ ResourceTag ]
415
415
  "AWS::EC2::VPCDHCPOptionsAssociation" :
416
416
  Properties:
417
417
  DhcpOptionsId: String
@@ -425,7 +425,7 @@ Resources:
425
425
  "AWS::EC2::NetworkAcl" :
426
426
  Properties:
427
427
  VpcId: String
428
- Tags : [ EC2Tag ]
428
+ Tags : [ ResourceTag ]
429
429
  "AWS::EC2::VPCGatewayAttachment" :
430
430
  Properties:
431
431
  InternetGatewayId: String
@@ -434,25 +434,25 @@ Resources:
434
434
  "AWS::EC2::VPCPeeringConnection" :
435
435
  Properties:
436
436
  PeerVpcId : String
437
- Tags : [ EC2Tag ]
437
+ Tags : [ ResourceTag ]
438
438
  VpcId : String
439
439
  "AWS::EC2::VPNGateway" :
440
440
  Properties:
441
441
  Type : String
442
- Tags : [ EC2Tag ]
442
+ Tags : [ ResourceTag ]
443
443
  "AWS::EC2::VPNGatewayConnection" :
444
444
  Properties:
445
445
  Type : String
446
446
  CustomerGatewayId : String
447
447
  StaticRoutesOnly : Boolean
448
- Tags : [ EC2Tag ]
448
+ Tags : [ ResourceTag ]
449
449
  VpnGatewayId : String
450
450
  "AWS::EC2::VPNConnection" :
451
451
  Properties:
452
452
  Type : String
453
453
  CustomerGatewayId : String
454
454
  StaticRoutesOnly : Boolean
455
- Tags : [ EC2Tag ]
455
+ Tags : [ ResourceTag ]
456
456
  VpnGatewayId : String
457
457
  "AWS::EC2::VPNConnectionRoute" :
458
458
  Properties:
@@ -487,7 +487,7 @@ Resources:
487
487
  SnapshotName : String
488
488
  SnapshotRetentionLimit : Integer
489
489
  SnapshotWindow : String
490
- Tags: [ EC2Tag ]
490
+ Tags: [ ResourceTag ]
491
491
  VpcSecurityGroupIds : [String]
492
492
  "AWS::ElastiCache::ReplicationGroup" :
493
493
  Properties:
@@ -558,7 +558,7 @@ Resources:
558
558
  ConnectionSettings: ConnectionSettings
559
559
  LoadBalancerName: String
560
560
  Policies: [ ElasticLoadBalancingPolicy ]
561
- Tags: [ EC2Tag ]
561
+ Tags: [ ResourceTag ]
562
562
  Attributes:
563
563
  CanonicalHostedZoneName: String
564
564
  CanonicalGostedZoneNameID: String
@@ -572,7 +572,7 @@ Resources:
572
572
  Scheme: String
573
573
  SecurityGroups: [ String ]
574
574
  Subnets: [ String ]
575
- Tags: [ EC2Tag ]
575
+ Tags: [ ResourceTag ]
576
576
  "AWS::ElasticLoadBalancingV2::Listener" :
577
577
  Properties:
578
578
  Certificates: [ LBCertificate ]
@@ -599,7 +599,7 @@ Resources:
599
599
  Name: String
600
600
  Port: String
601
601
  Protocol: String
602
- Tags: [ EC2Tag ]
602
+ Tags: [ ResourceTag ]
603
603
  TargetGroupAttributes: [ TargetGroupAttribute ]
604
604
  Targets: [ TargetDescription ]
605
605
  UnhealthyThresholdCount: Integer
@@ -612,7 +612,7 @@ Resources:
612
612
  EBSOptions: EBSOptions
613
613
  ElasticsearchClusterConfig: ElasticsearchClusterConfig
614
614
  SnapshotOptions: SnapshotOptions
615
- Tags: [ EC2Tag ]
615
+ Tags: [ ResourceTag ]
616
616
  "AWS::Events::Rule":
617
617
  Properties:
618
618
  Description: String
@@ -679,6 +679,13 @@ Resources:
679
679
  Policies: [ IAMEmbeddedPolicy ]
680
680
  Attributes:
681
681
  Arn: String
682
+ "AWS::Kinesis::Stream" :
683
+ Properties:
684
+ Name: String
685
+ ShardCount: Integer
686
+ Tags: [ ResourceTag ]
687
+ Attributes:
688
+ Arn: String
682
689
  "AWS::KMS::Key" :
683
690
  Properties:
684
691
  Description: String
@@ -772,14 +779,14 @@ Resources:
772
779
  PreferredBackupWindow: String
773
780
  PreferredMaintenanceWindow: String
774
781
  SnapshotIdentifier: String
775
- Tags: JSON
782
+ Tags: [ ResourceTag ]
776
783
  VpcSecurityGroupIds: [ String ]
777
784
  "AWS::RDS::DBClusterParameterGroup" :
778
785
  Properties:
779
786
  Description: String
780
787
  Family: String
781
788
  Parameters: JSON
782
- Tags: JSON
789
+ Tags: [ ResourceTag ]
783
790
  "AWS::RDS::DBInstance" :
784
791
  Properties:
785
792
  AllocatedStorage: String
@@ -812,7 +819,7 @@ Resources:
812
819
  SourceDBInstanceIdentifier: String
813
820
  StorageEncrypted: Boolean
814
821
  StorageType: String
815
- Tags: [ EC2Tag ]
822
+ Tags: [ ResourceTag ]
816
823
  VPCSecurityGroups: [ String ]
817
824
  Attributes:
818
825
  DBInstanceIdentifier: String
@@ -823,14 +830,14 @@ Resources:
823
830
  Description: String
824
831
  Family: String
825
832
  Parameters: JSON
826
- Tags: JSON
833
+ Tags: [ ResourceTag ]
827
834
  "AWS::RDS::OptionGroup":
828
835
  Properties:
829
836
  EngineName: String
830
837
  MajorEngineVersion: String
831
838
  OptionGroupDescription: String
832
839
  OptionConfigurations: JSON
833
- Tags: JSON
840
+ Tags: [ ResourceTag ]
834
841
  "AWS::RDS::DBSecurityGroup" :
835
842
  Properties:
836
843
  EC2VpcId: String
@@ -841,7 +848,7 @@ Resources:
841
848
  Properties:
842
849
  DBSubnetGroupDescription: String
843
850
  SubnetIds: [ String ]
844
- Tags: [ EC2Tag ]
851
+ Tags: [ ResourceTag ]
845
852
  "AWS::RDS::EventSubscription" :
846
853
  Properties:
847
854
  Enabled: Boolean
@@ -936,7 +943,7 @@ Resources:
936
943
  NotificationConfiguration: S3NotificationConfiguration
937
944
  VersioningConfiguration: JSON
938
945
  WebsiteConfiguration: JSON
939
- Tags: [ EC2Tag ]
946
+ Tags: [ ResourceTag ]
940
947
  Attributes:
941
948
  DomainName: String
942
949
  WebsiteUrl: String
@@ -1122,7 +1129,7 @@ Types:
1122
1129
  SourceSecurityGroupOwnerId: String
1123
1130
  FromPort: String
1124
1131
  ToPort: String
1125
- EC2Tag:
1132
+ ResourceTag:
1126
1133
  Key: String
1127
1134
  Value: String
1128
1135
  ApplicationVersion:
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.11.1'.freeze
3
3
  end
@@ -1,6 +1,16 @@
1
- require 'cfndsl'
2
1
  require 'aruba/rspec'
3
2
 
3
+ if ENV['CFNDSL_COV']
4
+ require 'simplecov'
5
+
6
+ SimpleCov.start do
7
+ add_group 'Code', 'lib'
8
+ add_group 'Test', 'spec'
9
+ end
10
+ end
11
+
12
+ require 'cfndsl'
13
+
4
14
  bindir = File.expand_path('../../bin', __FILE__)
5
15
  ENV['PATH'] = [ENV['PATH'], bindir].join(':')
6
16
 
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.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-25 00:00:00.000000000 Z
12
+ date: 2016-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler