cfndsl 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cfndsl/aws_types.yaml +63 -15
- data/lib/cfndsl/version.rb +1 -1
- data/sample/codedeploy.rb +48 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWQyZDBlNzMzYWU2OGNiOWY3NWU2ZjhlYzVmYzBhZTIwYjdiNjZjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzc4MzM2MjkzYzI1MTllYzIxNzFlZmE4NGIzNDdkYWM3OTU3N2NjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmI1MzdiMTg2ODFhYTE0ZDVmMDA4OWM4NGQyYWIwNTAzYWExZmVmZjYxNTli
|
10
|
+
NDZmZDlhYmJkNzhlNmIxMDM0Y2ZjNzIxZmJiODk0ZTQ3ZjBhZGRjMTE4ODY1
|
11
|
+
ZTgxNzU1NTFjMWYzNzE3OTJjOGM4MjNjM2JmYTAwYjA3MTc4OTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTgzZTQ5OWIxYTM4YTVlNTc2MzhlNDVjMDM5YTE3M2MxZjY5NDkxNTRiOWJi
|
14
|
+
OTAzZDVmN2M1NWU1MWFiMjE2NDI3OTVjZDYxNWQzZjdmN2E1MGE3MTgwYzI5
|
15
|
+
NmQ2MDE1ZGY2YjAyMTMwMDU0ZDllNGYwZmI3MTQ3NDgxOWIzOTI=
|
data/lib/cfndsl/aws_types.yaml
CHANGED
@@ -326,20 +326,26 @@ Resources:
|
|
326
326
|
VpnGatewayId : String
|
327
327
|
"AWS::ElastiCache::CacheCluster" :
|
328
328
|
Properties:
|
329
|
-
AutoMinorVersionUpgrade: Boolean
|
330
|
-
|
331
|
-
CacheNodeType: String
|
332
|
-
CacheParameterGroupName: String
|
333
|
-
CacheSecurityGroupNames: [String]
|
334
|
-
CacheSubnetGroupName: String
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
329
|
+
AutoMinorVersionUpgrade : Boolean
|
330
|
+
AZMode : String
|
331
|
+
CacheNodeType : String
|
332
|
+
CacheParameterGroupName : String
|
333
|
+
CacheSecurityGroupNames : [ String ]
|
334
|
+
CacheSubnetGroupName : String
|
335
|
+
ClusterName : String
|
336
|
+
Engine : String
|
337
|
+
EngineVersion : String
|
338
|
+
NotificationTopicArn : String
|
339
|
+
NumCacheNodes : String
|
340
|
+
Port : Integer
|
341
|
+
PreferredAvailabilityZone : String
|
342
|
+
PreferredAvailabilityZones : [ String ]
|
343
|
+
PreferredMaintenanceWindow : String
|
344
|
+
SnapshotArns : [ String ]
|
345
|
+
SnapshotName : String
|
346
|
+
SnapshotRetentionLimit : Integer
|
347
|
+
SnapshotWindow : String
|
348
|
+
VpcSecurityGroupIds : [String]
|
343
349
|
"AWS::ElastiCache::ReplicationGroup" :
|
344
350
|
Properties:
|
345
351
|
AutomaticFailoverEnabled: Boolean
|
@@ -367,7 +373,7 @@ Resources:
|
|
367
373
|
Properties: [ String ]
|
368
374
|
"AWS::ElastiCache::SecurityGroup" :
|
369
375
|
Properties:
|
370
|
-
|
376
|
+
Description: String
|
371
377
|
"AWS::ElastiCache::SecurityGroupIngress" :
|
372
378
|
Properties:
|
373
379
|
CacheSecurityGroupName: String
|
@@ -702,6 +708,20 @@ Resources:
|
|
702
708
|
Properties:
|
703
709
|
ContainerDefinitions: [ ECSContainerDefinition ]
|
704
710
|
Volumes: [ ECSVolume ]
|
711
|
+
"AWS::CodeDeploy::Application" :
|
712
|
+
Properties: {}
|
713
|
+
"AWS::CodeDeploy::DeploymentConfig" :
|
714
|
+
Properties:
|
715
|
+
MinimumHealthyHosts: CDMinimumHealthyHosts
|
716
|
+
"AWS::CodeDeploy::DeploymentGroup" :
|
717
|
+
Properties:
|
718
|
+
ApplicationName: String
|
719
|
+
AutoScalingGroups: [ String ]
|
720
|
+
Deployment: CDDeployment
|
721
|
+
DeploymentConfigName: String
|
722
|
+
Ec2TagFilters: [ CDEc2TagFilters ]
|
723
|
+
OnPremisesInstanceTagFilters: [ CDOnPremisesInstanceTagFilters ]
|
724
|
+
ServiceRoleArn: String
|
705
725
|
|
706
726
|
Types:
|
707
727
|
String: String
|
@@ -958,3 +978,31 @@ Types:
|
|
958
978
|
ECSVolume:
|
959
979
|
Name: String
|
960
980
|
Host: ECSHost
|
981
|
+
CDMinimumHealthyHosts:
|
982
|
+
Type: String
|
983
|
+
Value: Integer
|
984
|
+
CDGitHubLocation:
|
985
|
+
CommitId: String
|
986
|
+
Repository: String
|
987
|
+
CDS3Location:
|
988
|
+
Bucket: String
|
989
|
+
BundleType: String
|
990
|
+
ETag: String
|
991
|
+
Key: String
|
992
|
+
Version: String
|
993
|
+
CDRevision:
|
994
|
+
GitHubLocation: CDGitHubLocation
|
995
|
+
RevisionType: String
|
996
|
+
S3Location: CDS3Location
|
997
|
+
CDDeployment:
|
998
|
+
Description: String
|
999
|
+
IgnoreApplicationStopFailures: Boolean
|
1000
|
+
Revision: CDRevision
|
1001
|
+
CDEc2TagFilters:
|
1002
|
+
Key: String
|
1003
|
+
Type: String
|
1004
|
+
Value: String
|
1005
|
+
CDOnPremisesInstanceTagFilters:
|
1006
|
+
Key: String
|
1007
|
+
Type: String
|
1008
|
+
Value: String
|
data/lib/cfndsl/version.rb
CHANGED
@@ -0,0 +1,48 @@
|
|
1
|
+
CloudFormation {
|
2
|
+
DESCRIPTION ||= "CodeDeploy description"
|
3
|
+
|
4
|
+
Description DESCRIPTION
|
5
|
+
|
6
|
+
Parameter("ServiceRoleArn") {
|
7
|
+
Description "CodeDeploy Service Role"
|
8
|
+
Type "String"
|
9
|
+
}
|
10
|
+
|
11
|
+
Resource('MyCodeDeployApp') {
|
12
|
+
Type 'AWS::CodeDeploy::Application'
|
13
|
+
}
|
14
|
+
|
15
|
+
Resource('MyDeploymentConfig') {
|
16
|
+
Type 'AWS::CodeDeploy::DeploymentConfig'
|
17
|
+
Property('MinimumHealthyHosts', {
|
18
|
+
Type: "FLEET_PERCENT",
|
19
|
+
Value: "50"
|
20
|
+
})
|
21
|
+
}
|
22
|
+
|
23
|
+
Resource('MyDeploymentGroup') {
|
24
|
+
Type 'AWS::CodeDeploy::DeploymentGroup'
|
25
|
+
Property('ApplicationName', Ref('MyCodeDeployApp'))
|
26
|
+
Property('Deployment', {
|
27
|
+
Description: 'My App CodeDeploy',
|
28
|
+
IgnoreApplicationStopFailures: true,
|
29
|
+
Revision: {
|
30
|
+
RevisionType: 'S3',
|
31
|
+
S3Location: {
|
32
|
+
Bucket: 'my_code_deploy_bucket',
|
33
|
+
Key: '/my_app_code_deloy',
|
34
|
+
BundleType: 'zip',
|
35
|
+
ETag: '1234567890ABCDEF',
|
36
|
+
Version: '10'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
})
|
40
|
+
Property('Ec2TagFilters', [{
|
41
|
+
Key: 'Role',
|
42
|
+
Value: 'myapp',
|
43
|
+
Type: 'KEY_AND_VALUE',
|
44
|
+
}])
|
45
|
+
Property('ServiceRoleArn', Ref('ServiceRoleArn'))
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|
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.3.
|
4
|
+
version: 0.3.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: 2015-10-
|
12
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- sample/autoscale.template
|
69
69
|
- sample/autoscale2.rb
|
70
70
|
- sample/circular.rb
|
71
|
+
- sample/codedeploy.rb
|
71
72
|
- sample/ecs.rb
|
72
73
|
- sample/t1.rb
|
73
74
|
- sample/t1.yaml
|