cfndsl 0.1.17 → 0.1.18

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
- MzU3YmUxZDJhYTg1YWNjNmE5MWE5OWY3NDBiNzM5NjNhMTMxYmM4Mw==
4
+ NDZhMzRmZTA1MjIwNTE1Y2Y3NDE4N2EyYjBmNDVkNDFkMWMxMDBkOQ==
5
5
  data.tar.gz: !binary |-
6
- OGM0MGQ3ZjY4YzllMDFiMGM2N2ZjNWNhZDhkN2U2OTVjY2QwYjhjMQ==
6
+ MzE3ZmUzN2FkNjQwNGI1ZmNhZmUyNWU2OWI5MzY2MTBlYmM1Njk4OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmUwNTYyZmY0NjM4YWJmYzdhZmY2ZmVjNThmOTZhZTc0OGZjZDRmZmZjMzE5
10
- N2UyNzg2NmM0MTJjZGUzMDNmMTc4YTk0ZmYxMjViMWY5MGQ0ZTI4ZDIzZmU2
11
- MGNiZWU5Y2QxNWJlZmEyMTY3ZjMzNGQxYzBlYWFmOWNjNDlmMjE=
9
+ NzA2YjllYmJlNzhhYWFhOWY1ZjE0YThkZDlmMzNhODIwMGE5NTI5MzU1NGNh
10
+ ZTEwM2EyMjA0ZTkwMGE4ODkzMzA4ZmRjODM1NDk4MTI5NGFmOGRmYWYzMjI1
11
+ NTk4NDM3YjQ0N2M1M2E2ZTg1M2ZiZGI0NGE1MTkxYzM5Njc1NmM=
12
12
  data.tar.gz: !binary |-
13
- ZTczZDA1NTAzNDUyNDIwNGYxY2M4YjcxMjI3OWE1Mzc5YzQwNTM2MGQ3MjNi
14
- ZWZiMWM0Y2ZhMWRkMGI4NGU2MDE5NDUyNDU0YjljYTQyNWNhY2JlNjU5Y2Qy
15
- MDM1OWRkMTBlMTUxZDFiNzQ2NjU1NDQxNDYxMWNmNWQ2YmM4MjE=
13
+ YmMxYmI5ZGNkYjZmNjQ0NTY2NDU5NTI5M2M4Mzk1MWMzMGNjMzQ5MDgxNDYw
14
+ YmI2YTE0ZDJiYjc2MTRmY2U0MzA4NGQ3NGYxOTE2MTQ2ZWE2NTA0OTk2ZTBm
15
+ YmJmNjRkZWM0YjM5Y2ZjMWM2ZTBjNmM3ZTlmMzNiNjQ4ZTc2NjM=
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ task :bump, :type do |t, args|
12
12
 
13
13
  fail unless %w(major minor patch).include? type
14
14
 
15
- if `git rev-parse --abbrev-ref HEAD` != "master"
15
+ if `git rev-parse --abbrev-ref HEAD`.strip != "master"
16
16
  fail "Looks like you're trying to create a release in a branch, you can only create one in 'master'"
17
17
  end
18
18
 
@@ -642,6 +642,19 @@ Resources:
642
642
  Attributes:
643
643
  Arn: String
644
644
  QueueName: String
645
+ "AWS::ECS::Cluster" :
646
+ Properties: {}
647
+ "AWS::ECS::Service" :
648
+ Properties:
649
+ Cluster: String
650
+ DesiredCount: Integer
651
+ LoadBalancers: [ ECSLoadBalancer ]
652
+ Role: String
653
+ TaskDefinition: String
654
+ "AWS::ECS::TaskDefinition" :
655
+ Properties:
656
+ ContainerDefinitions: [ ECSContainerDefinition ]
657
+ Volumes: [ ECSVolume ]
645
658
 
646
659
  Types:
647
660
  String: String
@@ -863,3 +876,38 @@ Types:
863
876
  LoadBalancerPorts: [ String ]
864
877
  PolicyName: String
865
878
  PolicyType: String
879
+ ECSHost:
880
+ SourcePath: String
881
+ ECSEnvironmentVariable:
882
+ Name: String
883
+ Value: String
884
+ ECSMountPoint:
885
+ ContainerPath: String
886
+ SourceVolume: String
887
+ ReadOnly: Boolean
888
+ ECSPortMap:
889
+ ContainerPort: Integer
890
+ HostPort: Integer
891
+ ECSVolumeFrom:
892
+ SourceContainer: String
893
+ ReadOnly: Boolean
894
+ ECSLoadBalancer:
895
+ ContainerName: String
896
+ ContainerPort: Integer
897
+ LoadBalancerName: String
898
+ ECSContainerDefinition:
899
+ Command: [ String ]
900
+ Cpu: Integer
901
+ EntryPoint: [ String ]
902
+ Environment: [ ECSEnvironmentVariable ]
903
+ Essential: Boolean
904
+ Image: String
905
+ Links: [ String ]
906
+ Memory: Integer
907
+ MountPoints: [ ECSMountPoint ]
908
+ Name: String
909
+ PortMappings: [ ECSPortMap ]
910
+ VolumesFrom: [ ECSVolumeFrom ]
911
+ ECSVolume:
912
+ Name: String
913
+ Host: ECSHost
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
data/sample/ecs.rb ADDED
@@ -0,0 +1,51 @@
1
+ CloudFormation {
2
+ DESCRIPTION ||= "ecs description"
3
+
4
+ Description DESCRIPTION
5
+
6
+ Resource('MyECSCluster') {
7
+ Type 'AWS::ECS::Cluster'
8
+ }
9
+
10
+ Resource('MyTaskDef') {
11
+ Type 'AWS::ECS::Service'
12
+ Property('ContainerDefinitions', [
13
+ {
14
+ Command: ['echo hello'],
15
+ Cpu: 300,
16
+ EntryPoint: ['/bin/bash'],
17
+ Environment: [{
18
+ Name: 'test',
19
+ Value: 'testvalue'
20
+ }],
21
+ Essential: true,
22
+ Image: 'ubuntu:latest',
23
+ Links: ['myothercontainer'],
24
+ Memory: 1024,
25
+ MountPoints: [{
26
+ ContainerPath: '/var/log',
27
+ SourceVolume: 'log_volume',
28
+ ReadOnly: false
29
+ }],
30
+ Name: 'MyTaskDef',
31
+ PortMappings: [{
32
+ ContainerPort: 80,
33
+ HostPort: 8080
34
+ }],
35
+ VolumesFrom: [{
36
+ SourceContainer: 'myothercontainer',
37
+ ReadOnly: true
38
+ }]
39
+
40
+ }
41
+ ])
42
+ }
43
+
44
+ Resource('MyECSService') {
45
+ Type 'AWS::ECS::Service'
46
+ Property('Cluster', Ref('MyECSCluster'))
47
+ Property('DesiredCount', 10)
48
+ Property('Role', 'ecsServiceRole')
49
+ Property('TaskDefinition', 'MyTask:1')
50
+ }
51
+ }
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.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -67,6 +67,7 @@ files:
67
67
  - sample/autoscale.template
68
68
  - sample/autoscale2.rb
69
69
  - sample/circular.rb
70
+ - sample/ecs.rb
70
71
  - sample/t1.rb
71
72
  - sample/t1.yaml
72
73
  - sample/vpc-example.rb