cfndsl 0.2.4 → 0.2.7
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 +8 -8
- data/lib/cfndsl/aws_types.yaml +42 -0
- 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
|
+
ZmM3YTU1MjUyNDA3ZTk3YjgyYTNlYzYwMWYwNjI5NmU3YWFkYWQwOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWY5NDkyNTMzNWZjM2I1MWMyYTdiNWEyZDMxZDU5Mzg3MDY3MGM3Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjM2NzgxN2Q3Yzg3NjkyMGU4MzI1ZThjYmFhMjgzZThhY2QwMDMzYzEzZGJh
|
10
|
+
Mjk4NmZlOTA1Yzc1YWVlNTc3ZWM3ODllYzNhY2E3OTQ3ZmQ1NTgwYWM2Mzdj
|
11
|
+
NzQ4ZTlmMzg4MWNhYTljYTMwMTAzN2E0NzgwYmVhZDZlODViOTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OThmNTAyZDVlZDkzMTdiOTM5NWZmMGY2NzA5MDZkY2I5ZGMzMGExNmNlMzY3
|
14
|
+
NTkzYjNmNjA4MDYzMWI2NWQ0MWNlZjRhMDQ1OTBmY2ZkZDkyNDdjNDM3NGJh
|
15
|
+
Mjc1ZmU5NGU1ZDZlMzUzNjVmN2E3NmFmZTU3NTBjYTY1ZmViMjc=
|
data/lib/cfndsl/aws_types.yaml
CHANGED
@@ -702,6 +702,20 @@ Resources:
|
|
702
702
|
Properties:
|
703
703
|
ContainerDefinitions: [ ECSContainerDefinition ]
|
704
704
|
Volumes: [ ECSVolume ]
|
705
|
+
"AWS::CodeDeploy::Application" :
|
706
|
+
Properties: {}
|
707
|
+
"AWS::CodeDeploy::DeploymentConfig" :
|
708
|
+
Properties:
|
709
|
+
MinimumHealthyHosts: CDMinimumHealthyHosts
|
710
|
+
"AWS::CodeDeploy::DeploymentGroup" :
|
711
|
+
Properties:
|
712
|
+
ApplicationName: String
|
713
|
+
AutoScalingGroups: [ String ]
|
714
|
+
Deployment: CDDeployment
|
715
|
+
DeploymentConfigName: String
|
716
|
+
Ec2TagFilters: [ CDEc2TagFilters ]
|
717
|
+
OnPremisesInstanceTagFilters: [ CDOnPremisesInstanceTagFilters ]
|
718
|
+
ServiceRoleArn: String
|
705
719
|
|
706
720
|
Types:
|
707
721
|
String: String
|
@@ -958,3 +972,31 @@ Types:
|
|
958
972
|
ECSVolume:
|
959
973
|
Name: String
|
960
974
|
Host: ECSHost
|
975
|
+
CDMinimumHealthyHosts:
|
976
|
+
Type: String
|
977
|
+
Value: Integer
|
978
|
+
CDGitHubLocation:
|
979
|
+
CommitId: String
|
980
|
+
Repository: String
|
981
|
+
CDS3Location:
|
982
|
+
Bucket: String
|
983
|
+
BundleType: String
|
984
|
+
ETag: String
|
985
|
+
Key: String
|
986
|
+
Version: String
|
987
|
+
CDRevision:
|
988
|
+
GitHubLocation: CDGitHubLocation
|
989
|
+
RevisionType: String
|
990
|
+
S3Location: CDS3Location
|
991
|
+
CDDeployment:
|
992
|
+
Description: String
|
993
|
+
IgnoreApplicationStopFailures: Boolean
|
994
|
+
Revision: CDRevision
|
995
|
+
CDEc2TagFilters:
|
996
|
+
Key: String
|
997
|
+
Type: String
|
998
|
+
Value: String
|
999
|
+
CDOnPremisesInstanceTagFilters:
|
1000
|
+
Key: String
|
1001
|
+
Type: String
|
1002
|
+
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.2.
|
4
|
+
version: 0.2.7
|
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-16 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
|