elastic_beans 0.13.0.alpha4 → 0.13.0.alpha5

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a69e6d19ef9b23f9db1ccddb65d7f49644e72233
4
- data.tar.gz: 1b2b65654a6abcc05e7033946f13464d5f51a85b
3
+ metadata.gz: 1afb81d4fa7f5f42059df586f24b1e39a4306f2e
4
+ data.tar.gz: bf4b9d6263e6e75e76fd1fb02ac3240193712f61
5
5
  SHA512:
6
- metadata.gz: ced50156c632ae34c5219d7d8f4384cf7ccf1243611dd23e06c57eb552707907305d6bbd03a9bfda390126c220a96ff35a7b363649d72ea94bebc41da91dd5a7
7
- data.tar.gz: 87f4ec5eb18640de5d43327b24a29a0539c4d22fbffb08c3fb8968054de09d0d2bff152f38467722ea625e70b68b932a362694846ca00c4872cc2c016ff07bef
6
+ metadata.gz: c82526896458dd23dff5d494c204b3effde9567f0a752b2bf08800cc7e25017b83c91e01dbfe2399a293f0d763378b2cc3df6249732d2972bac590ca19aabe96
7
+ data.tar.gz: a5b9fc5746ed2aec887b38fa05212dc7e29bb79c4e7851b65f8405095087c77479b31cdaab069b82f5f6d3fed35ea065dfbaff724de8f32836d3ae30efbcb284
data/README.md CHANGED
@@ -130,6 +130,12 @@ This environment will enqueue the commands from `cron.yaml` for the `exec` envir
130
130
 
131
131
  ## What elastic_beans does differently than awsebcli
132
132
 
133
+ ### Cleanup of old versions
134
+
135
+ Elastic Beanstalk [has a 1,000 version limit](https://aws.amazon.com/elasticbeanstalk/faqs/) that when reached will not allow any more versions to be deployed.
136
+ To avoid this, Elastic Beans will clean up versions older than 1 week when deploying a new version.
137
+ It will always leave a minimum of 5 versions behind in case you need to roll back from the Elastic Beanstalk console.
138
+
133
139
  ### End-to-end encryption
134
140
 
135
141
  Elastic Beans sets up [end-to-end encryption][e2e] by default.
@@ -103,6 +103,7 @@ Requires AWS credentials to be set in the environment, i.e. AWS_ACCESS_KEY_ID an
103
103
  version.date_updated + APPLICATION_VERSION_MAX_AGE < cutoff
104
104
  }
105
105
  if leftover_versions.size < APPLICATION_VERSION_MIN_COUNT
106
+ outdated_versions.sort_by!(&:date_updated)
106
107
  outdated_versions.pop(APPLICATION_VERSION_MIN_COUNT - leftover_versions.size)
107
108
  end
108
109
  outdated_versions.each do |version|
@@ -1,3 +1,3 @@
1
1
  module ElasticBeans
2
- VERSION = "0.13.0.alpha4"
2
+ VERSION = "0.13.0.alpha5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_beans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.alpha4
4
+ version: 0.13.0.alpha5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stegman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk