cumulus-aws 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +3 -0
  3. data/.travis.yml +12 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +29 -0
  6. data/LICENSE +202 -0
  7. data/README.md +41 -0
  8. data/autocomplete +137 -0
  9. data/bin/cumulus +658 -0
  10. data/cumulus +2 -0
  11. data/cumulus-aws.gemspec +20 -0
  12. data/lib/autoscaling/AutoScaling.rb +40 -0
  13. data/lib/autoscaling/loader/Loader.rb +56 -0
  14. data/lib/autoscaling/manager/Manager.rb +360 -0
  15. data/lib/autoscaling/models/AlarmConfig.rb +165 -0
  16. data/lib/autoscaling/models/AlarmDiff.rb +172 -0
  17. data/lib/autoscaling/models/AutoScalingDiff.rb +178 -0
  18. data/lib/autoscaling/models/GroupConfig.rb +330 -0
  19. data/lib/autoscaling/models/PolicyConfig.rb +135 -0
  20. data/lib/autoscaling/models/PolicyDiff.rb +73 -0
  21. data/lib/autoscaling/models/ScheduledActionDiff.rb +53 -0
  22. data/lib/autoscaling/models/ScheduledConfig.rb +96 -0
  23. data/lib/aws_extensions/ec2/DhcpOptions.rb +41 -0
  24. data/lib/aws_extensions/ec2/Instance.rb +29 -0
  25. data/lib/aws_extensions/ec2/NetworkAcl.rb +25 -0
  26. data/lib/aws_extensions/ec2/NetworkInterface.rb +14 -0
  27. data/lib/aws_extensions/ec2/RouteTable.rb +26 -0
  28. data/lib/aws_extensions/ec2/SecurityGroup.rb +16 -0
  29. data/lib/aws_extensions/ec2/Subnet.rb +28 -0
  30. data/lib/aws_extensions/ec2/Volume.rb +24 -0
  31. data/lib/aws_extensions/ec2/Vpc.rb +14 -0
  32. data/lib/aws_extensions/ec2/VpcEndpoint.rb +11 -0
  33. data/lib/aws_extensions/elb/BackendServerDescription.rb +12 -0
  34. data/lib/aws_extensions/elb/PolicyDescription.rb +14 -0
  35. data/lib/aws_extensions/kinesis/StreamDescription.rb +12 -0
  36. data/lib/aws_extensions/route53/AliasTarget.rb +21 -0
  37. data/lib/aws_extensions/s3/Bucket.rb +33 -0
  38. data/lib/aws_extensions/s3/BucketAcl.rb +28 -0
  39. data/lib/aws_extensions/s3/BucketCors.rb +17 -0
  40. data/lib/aws_extensions/s3/BucketLifecycle.rb +21 -0
  41. data/lib/aws_extensions/s3/BucketLogging.rb +18 -0
  42. data/lib/aws_extensions/s3/BucketNotification.rb +23 -0
  43. data/lib/aws_extensions/s3/BucketPolicy.rb +18 -0
  44. data/lib/aws_extensions/s3/BucketTagging.rb +15 -0
  45. data/lib/aws_extensions/s3/BucketVersioning.rb +14 -0
  46. data/lib/aws_extensions/s3/BucketWebsite.rb +49 -0
  47. data/lib/aws_extensions/s3/CORSRule.rb +27 -0
  48. data/lib/aws_extensions/s3/ReplicationConfiguration.rb +22 -0
  49. data/lib/cloudfront/CloudFront.rb +83 -0
  50. data/lib/cloudfront/loader/Loader.rb +31 -0
  51. data/lib/cloudfront/manager/Manager.rb +183 -0
  52. data/lib/cloudfront/models/CacheBehaviorConfig.rb +237 -0
  53. data/lib/cloudfront/models/CacheBehaviorDiff.rb +211 -0
  54. data/lib/cloudfront/models/CustomOriginConfig.rb +51 -0
  55. data/lib/cloudfront/models/CustomOriginDiff.rb +74 -0
  56. data/lib/cloudfront/models/DistributionConfig.rb +183 -0
  57. data/lib/cloudfront/models/DistributionDiff.rb +131 -0
  58. data/lib/cloudfront/models/InvalidationConfig.rb +37 -0
  59. data/lib/cloudfront/models/OriginConfig.rb +144 -0
  60. data/lib/cloudfront/models/OriginDiff.rb +86 -0
  61. data/lib/cloudfront/models/OriginSslProtocols.rb +28 -0
  62. data/lib/cloudfront/models/OriginSslProtocolsDiff.rb +39 -0
  63. data/lib/common/BaseLoader.rb +80 -0
  64. data/lib/common/manager/Manager.rb +148 -0
  65. data/lib/common/models/Diff.rb +114 -0
  66. data/lib/common/models/ListChange.rb +21 -0
  67. data/lib/common/models/TagsDiff.rb +55 -0
  68. data/lib/common/models/UTCTimeSource.rb +17 -0
  69. data/lib/conf/Configuration.rb +365 -0
  70. data/lib/ec2/EC2.rb +503 -0
  71. data/lib/ec2/IPProtocolMapping.rb +165 -0
  72. data/lib/ec2/loaders/EbsLoader.rb +19 -0
  73. data/lib/ec2/loaders/InstanceLoader.rb +32 -0
  74. data/lib/ec2/managers/EbsManager.rb +176 -0
  75. data/lib/ec2/managers/InstanceManager.rb +509 -0
  76. data/lib/ec2/models/EbsGroupConfig.rb +133 -0
  77. data/lib/ec2/models/EbsGroupDiff.rb +48 -0
  78. data/lib/ec2/models/InstanceConfig.rb +202 -0
  79. data/lib/ec2/models/InstanceDiff.rb +95 -0
  80. data/lib/elb/ELB.rb +148 -0
  81. data/lib/elb/loader/Loader.rb +65 -0
  82. data/lib/elb/manager/Manager.rb +581 -0
  83. data/lib/elb/models/AccessLogConfig.rb +82 -0
  84. data/lib/elb/models/AccessLogDiff.rb +47 -0
  85. data/lib/elb/models/HealthCheckConfig.rb +91 -0
  86. data/lib/elb/models/HealthCheckDiff.rb +50 -0
  87. data/lib/elb/models/ListenerConfig.rb +99 -0
  88. data/lib/elb/models/ListenerDiff.rb +91 -0
  89. data/lib/elb/models/LoadBalancerConfig.rb +239 -0
  90. data/lib/elb/models/LoadBalancerDiff.rb +265 -0
  91. data/lib/iam/IAM.rb +36 -0
  92. data/lib/iam/loader/Loader.rb +117 -0
  93. data/lib/iam/manager/IamGroups.rb +98 -0
  94. data/lib/iam/manager/IamResource.rb +288 -0
  95. data/lib/iam/manager/IamRoles.rb +112 -0
  96. data/lib/iam/manager/IamUsers.rb +54 -0
  97. data/lib/iam/manager/Manager.rb +29 -0
  98. data/lib/iam/migration/AssumeRoleUnifier.rb +34 -0
  99. data/lib/iam/migration/PolicyUnifier.rb +90 -0
  100. data/lib/iam/models/GroupConfig.rb +40 -0
  101. data/lib/iam/models/IamDiff.rb +132 -0
  102. data/lib/iam/models/PolicyConfig.rb +67 -0
  103. data/lib/iam/models/ResourceWithPolicy.rb +208 -0
  104. data/lib/iam/models/RoleConfig.rb +53 -0
  105. data/lib/iam/models/StatementConfig.rb +35 -0
  106. data/lib/iam/models/UserConfig.rb +21 -0
  107. data/lib/kinesis/Kinesis.rb +94 -0
  108. data/lib/kinesis/loader/Loader.rb +19 -0
  109. data/lib/kinesis/manager/Manager.rb +206 -0
  110. data/lib/kinesis/models/StreamConfig.rb +75 -0
  111. data/lib/kinesis/models/StreamDiff.rb +58 -0
  112. data/lib/lambda/Lambda.rb +41 -0
  113. data/lib/route53/loader/Loader.rb +32 -0
  114. data/lib/route53/manager/Manager.rb +241 -0
  115. data/lib/route53/models/AliasTarget.rb +86 -0
  116. data/lib/route53/models/RecordConfig.rb +178 -0
  117. data/lib/route53/models/RecordDiff.rb +140 -0
  118. data/lib/route53/models/Vpc.rb +24 -0
  119. data/lib/route53/models/ZoneConfig.rb +156 -0
  120. data/lib/route53/models/ZoneDiff.rb +118 -0
  121. data/lib/s3/S3.rb +89 -0
  122. data/lib/s3/loader/Loader.rb +66 -0
  123. data/lib/s3/manager/Manager.rb +296 -0
  124. data/lib/s3/models/BucketConfig.rb +321 -0
  125. data/lib/s3/models/BucketDiff.rb +167 -0
  126. data/lib/s3/models/GrantConfig.rb +189 -0
  127. data/lib/s3/models/GrantDiff.rb +50 -0
  128. data/lib/s3/models/LifecycleConfig.rb +142 -0
  129. data/lib/s3/models/LifecycleDiff.rb +46 -0
  130. data/lib/s3/models/LoggingConfig.rb +81 -0
  131. data/lib/s3/models/NotificationConfig.rb +157 -0
  132. data/lib/s3/models/NotificationDiff.rb +62 -0
  133. data/lib/s3/models/ReplicationConfig.rb +133 -0
  134. data/lib/s3/models/ReplicationDiff.rb +60 -0
  135. data/lib/s3/models/WebsiteConfig.rb +107 -0
  136. data/lib/security/SecurityGroups.rb +39 -0
  137. data/lib/security/loader/Loader.rb +94 -0
  138. data/lib/security/manager/Manager.rb +246 -0
  139. data/lib/security/models/RuleConfig.rb +161 -0
  140. data/lib/security/models/RuleDiff.rb +72 -0
  141. data/lib/security/models/RuleMigration.rb +127 -0
  142. data/lib/security/models/SecurityGroupConfig.rb +172 -0
  143. data/lib/security/models/SecurityGroupDiff.rb +112 -0
  144. data/lib/sns/SNS.rb +40 -0
  145. data/lib/sqs/SQS.rb +62 -0
  146. data/lib/sqs/loader/Loader.rb +34 -0
  147. data/lib/sqs/manager/Manager.rb +128 -0
  148. data/lib/sqs/models/DeadLetterConfig.rb +70 -0
  149. data/lib/sqs/models/DeadLetterDiff.rb +35 -0
  150. data/lib/sqs/models/QueueConfig.rb +115 -0
  151. data/lib/sqs/models/QueueDiff.rb +89 -0
  152. data/lib/util/Colors.rb +111 -0
  153. data/lib/util/StatusCodes.rb +51 -0
  154. data/lib/vpc/loader/Loader.rb +73 -0
  155. data/lib/vpc/manager/Manager.rb +954 -0
  156. data/lib/vpc/models/AclEntryConfig.rb +150 -0
  157. data/lib/vpc/models/AclEntryDiff.rb +54 -0
  158. data/lib/vpc/models/DhcpConfig.rb +100 -0
  159. data/lib/vpc/models/DhcpDiff.rb +90 -0
  160. data/lib/vpc/models/EndpointConfig.rb +76 -0
  161. data/lib/vpc/models/EndpointDiff.rb +69 -0
  162. data/lib/vpc/models/NetworkAclConfig.rb +87 -0
  163. data/lib/vpc/models/NetworkAclDiff.rb +116 -0
  164. data/lib/vpc/models/RouteConfig.rb +82 -0
  165. data/lib/vpc/models/RouteDiff.rb +50 -0
  166. data/lib/vpc/models/RouteTableConfig.rb +92 -0
  167. data/lib/vpc/models/RouteTableDiff.rb +101 -0
  168. data/lib/vpc/models/SubnetConfig.rb +113 -0
  169. data/lib/vpc/models/SubnetDiff.rb +78 -0
  170. data/lib/vpc/models/VpcConfig.rb +173 -0
  171. data/lib/vpc/models/VpcDiff.rb +315 -0
  172. data/rakefile.rb +8 -0
  173. metadata +245 -0
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTgxNWIyNGMwZGFmNDcwNzlhM2JmMWQzMTMzNGRhYjMwMjk3MmVkMQ==
5
+ data.tar.gz: !binary |-
6
+ ZTZkM2E0MTEwM2M4NDI1YTZmMmFhODU2NDkyNmM2NjdjZWM3YTBkMA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ OGQxMWVkNzU3ZjQ5NzhmMDkzOWVmNTI4N2MzM2Q1ZWVlM2U5NWM2ZjhmN2Y3
10
+ OGI0MDkyNjZjODQ1ZTA2NjJmNWY1MDI1ZGY1ZWZmZDQ2Yjg2MTdlNTNlZjY1
11
+ NzBmMjdlNjg2Y2JlYTIwYjk2ODEyMjNjODhjZjlmYWMzODIwMDg=
12
+ data.tar.gz: !binary |-
13
+ MmE4ZGEzOTU5NGYzYzRkYmY4NGFjN2JjOTY3Mzc3N2UyM2FiOGIyMDgzMTAy
14
+ NjdjOGUxN2FhNDUxODkxNGM4NzlhMTczYjA2Y2EyY2QxYmM1MGExODVhOGEy
15
+ OGZjNzlmZTQ1NDM3NDM3MjA1YzY4ZWVlMzRmNjczOGNmY2Y1YzI=
@@ -0,0 +1,3 @@
1
+ _site
2
+ generated/
3
+ .sass-cache/
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2
4
+ - 1.9.3
5
+ deploy:
6
+ provider: rubygems
7
+ api_key:
8
+ secure: ZkuZwEeZCFxNOo2jyC/QkqqRajP8S7Ss1XuFAWnTGwWFD+SWptEHCT2G+IasQPXRXoAy056/z6WMG6d3WfGx53Hf08FrVBZUBGtrw32qDscYFa17/7H3UgNxK2rQ2JXS6jeyblkuNY9uskfScze0qsPr65UDVTsLt5iv836/vsbMHEWebzllSWrfFzrbpNx+uGzY9LQA/6RmDJDfosZ5GhRTppr8I+D0vlOIwpDP+64D0mlvHql/DnfqADsK+vKy4k8LjTAk7SDWtlI7D3vTBC60lNREUJf0LH1CAOefHqXgO51s/X1KFoBoT4H1v+bYi/k1sd6BcTpXDrGUFZSHu6hCLwJBevOVT3xntbL/1jGPquA5pqXOR/WKpjKgjza3xSzt7DTeEBIqn7X53TxsTGHDT7KiuAuttUZ7LBsb2wIRxgsNJGIpjpG/wOArzc/U95t6j2DGl93IhV2Me7bR41D3Maton6aVDj7uL8CPyV7Rl9gLPTZt4+4sdPJJNfxwyEGybdM+j/ktdikn0t9FRlqhwhqKU0ggiaidexSDrCF/yf9YHMTfiLEo8zIta7CxvIcNb8H6HgOug/71yyqjh7bgLToHLhtA/sdyQkaoIjRSBeYwLeT4YFmvdUtAZy6fxAo9eCoDsHqqHnFR1I/+5AZXMxakBc28XlZ7lAEAbnU=
9
+ gem: cumulus-aws
10
+ on:
11
+ tags: true
12
+ repo: lucidsoftware/cumulus
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ gemspec :name => 'cumulus-aws'
3
+
4
+ gem 'rake'
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cumulus-aws (0.11.1)
5
+ aws-sdk (= 2.2.8)
6
+ parse-cron (~> 0.1.4)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ aws-sdk (2.2.8)
12
+ aws-sdk-resources (= 2.2.8)
13
+ aws-sdk-core (2.2.8)
14
+ jmespath (~> 1.0)
15
+ aws-sdk-resources (2.2.8)
16
+ aws-sdk-core (= 2.2.8)
17
+ jmespath (1.1.3)
18
+ parse-cron (0.1.4)
19
+ rake (11.2.2)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ cumulus-aws!
26
+ rake
27
+
28
+ BUNDLED WITH
29
+ 1.12.5
data/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
@@ -0,0 +1,41 @@
1
+ # cumulus
2
+
3
+ [![Join the chat at https://gitter.im/lucidsoftware/cumulus](https://badges.gitter.im/lucidsoftware/cumulus.svg)](https://gitter.im/lucidsoftware/cumulus?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
5
+ [![Stories in Ready](https://badge.waffle.io/lucidsoftware/cumulus.png?label=ready&title=Ready)](https://waffle.io/lucidsoftware/cumulus)
6
+
7
+ CloudFormation alternative
8
+
9
+ ### Usage
10
+
11
+ To run cumulus,
12
+ ```
13
+ cumulus <module> <action>
14
+ ```
15
+
16
+ For details, run
17
+ ```bash
18
+ cumulus <module> help
19
+ ```
20
+ or
21
+ ```bash
22
+ cumulus help
23
+ ```
24
+
25
+ ### Dependencies
26
+
27
+ Cumulus uses [Bundler](http://bundler.io/) to manage dependencies. Run
28
+ ```bash
29
+ gem install bundler
30
+ ```
31
+ followed by
32
+ ```bash
33
+ bundler install
34
+ ```
35
+ to resolve dependencies
36
+
37
+ ### Documentation
38
+ See [documentation site](http://lucidsoftware.github.io/cumulus) for details
39
+
40
+ ### Lucid Software
41
+ Cumulus was created by [Lucid Software](https://www.golucid.co), creators of [Lucidchart](https://www.lucidchart.com) and [Lucidpress](https://www.lucidpress.com).
@@ -0,0 +1,137 @@
1
+ cumulus_command="cumulus"
2
+
3
+ function _cumulus {
4
+ local cur=${COMP_WORDS[COMP_CWORD]}
5
+ local prev=${COMP_WORDS[COMP_CWORD-1]}
6
+ local twoprev=${COMP_WORDS[COMP_CWORD-2]}
7
+ local threeprev=${COMP_WORDS[COMP_CWORD-3]}
8
+
9
+ case "$threeprev" in
10
+ iam)
11
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
12
+ configs=$(${cumulus_command} iam "$twoprev" list)
13
+ COMPREPLY=( $(compgen -W "$configs" -- $cur ) )
14
+ fi
15
+ ;;
16
+ ec2)
17
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
18
+ configs=$(${cumulus_command} ec2 "$twoprev" list)
19
+ COMPREPLY=( $(compgen -W "$configs" -- $cur ) )
20
+ fi
21
+ ;;
22
+ *)
23
+ case "$twoprev" in
24
+ iam)
25
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
26
+ ;;
27
+ autoscaling)
28
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
29
+ configs=$(${cumulus_command} autoscaling list)
30
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
31
+ fi
32
+ ;;
33
+ cloudfront)
34
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
35
+ configs=$(${cumulus_command} cloudfront list)
36
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
37
+ fi
38
+ if [ "$prev" == "invalidate" ]; then
39
+ configs=$(${cumulus_command} cloudfront invalidate list)
40
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
41
+ fi
42
+ ;;
43
+ elb)
44
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
45
+ configs=$(${cumulus_command} elb list)
46
+ COMPREPLY=( $(compgen -W "$configs" -- $cur))
47
+ fi
48
+ if [ "$prev" == "migrate" ]; then
49
+ COMPREPLY=( $(compgen -W "default-policies elbs" -- $cur) )
50
+ fi
51
+ ;;
52
+ route53)
53
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
54
+ configs=$(${cumulus_command} route53 list)
55
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
56
+ fi
57
+ ;;
58
+ s3)
59
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
60
+ configs=$(${cumulus_command} s3 list)
61
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
62
+ fi
63
+ ;;
64
+ security-groups)
65
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
66
+ configs=$(${cumulus_command} security-groups list)
67
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
68
+ fi
69
+ ;;
70
+ vpc)
71
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
72
+ configs=$(${cumulus_command} vpc list)
73
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
74
+ fi
75
+ if [ "$prev" == "rename" ]; then
76
+ COMPREPLY=( $(compgen -W "network-acl policy route-table subnet vpc" -- $cur) )
77
+ fi
78
+ ;;
79
+ kinesis)
80
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
81
+ configs=$(${cumulus_command} kinesis list)
82
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
83
+ fi
84
+ ;;
85
+ sqs)
86
+ if [ "$prev" == "diff" ] || [ "$prev" == "sync" ]; then
87
+ configs=$(${cumulus_command} sqs list)
88
+ COMPREPLY=( $(compgen -W "$configs" -- $cur) )
89
+ fi
90
+ ;;
91
+ ec2)
92
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
93
+ ;;
94
+ *)
95
+ case "$prev" in
96
+ iam)
97
+ COMPREPLY=( $(compgen -W "groups roles users" -- $cur) )
98
+ ;;
99
+ autoscaling)
100
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
101
+ ;;
102
+ ${cumulus_command})
103
+ COMPREPLY=( $(compgen -W "autoscaling cloudfront ec2 elb help iam kinesis route53 s3 security-groups sqs vpc" -- $cur) )
104
+ ;;
105
+ cloudfront)
106
+ COMPREPLY=( $(compgen -W "diff invalidate list migrate sync" -- $cur) )
107
+ ;;
108
+ elb)
109
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
110
+ ;;
111
+ route53)
112
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
113
+ ;;
114
+ s3)
115
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
116
+ ;;
117
+ security-groups)
118
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
119
+ ;;
120
+ vpc)
121
+ COMPREPLY=( $(compgen -W "diff list migrate sync rename" -- $cur) )
122
+ ;;
123
+ kinesis)
124
+ COMPREPLY=( $(compgen -W "diff list migrate sync" -- $cur) )
125
+ ;;
126
+ sqs)
127
+ COMPREPLY=( $(compgen -W "diff list migrate sync urls" -- $cur) )
128
+ ;;
129
+ ec2)
130
+ COMPREPLY=( $(compgen -W "ebs instances" -- $cur) )
131
+ ;;
132
+ esac
133
+ ;;
134
+ esac
135
+ esac
136
+ }
137
+ complete -F _cumulus ${cumulus_command}