aws-ec2 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 470632b05ae98e847346203b518d904a1c55dca285aa598d494b3fc8bfbf5e51
4
- data.tar.gz: d487775d14d5b2223178cc174af9146b8462e7d340dbc568da3a437ef3f5b078
3
+ metadata.gz: caf18db0edfbee2f8032e88d5a6607f7a0a1aa1ec2899432a4c8cb15360aa5d8
4
+ data.tar.gz: 0aff7e73005748908c5891501be67ad6824d3709c3f0fe47b5d4311aff860a00
5
5
  SHA512:
6
- metadata.gz: d7d836b0c97a9d681e40cb1d9621805e3fdc9aced2ad17c2c632247b2bbbc4278bd5fe543b31f76f073b22093e815e2adfaeee90030bbdb7f93e0a6bef3a0358
7
- data.tar.gz: 75873cc2bb9b54fdc6d25c132a16e2a8f461e3b1ac327ddac08881e7e014ba5e8b16528e4eadf42a2478dc2e6a2d326f3c5df3a9b31f84ae216d9a4bf6422bd2
6
+ metadata.gz: a7218e5b6b3b90d1e5d89b1ed9f29e86c4c27ac3d8a9ff87798e61931bcf3421545cb80c18adcdb03fac5a51bb933b251f5b439ae9bbe82459c2c55a3d1dbb63
7
+ data.tar.gz: 7b7fc9cff1a27a919ed23dd2f1e3497d14532670549601dee71414bb8d06da2301082019e604497ae4310531c07709a9efcb534a6a7ea20c3110afd83a5fd740
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.4.6]
7
+ - enable awslogs on reboot
8
+ - improve message when auto-terminate gets called from a previous ami
9
+
6
10
  ## [1.4.5]
7
11
  - fix cloudwatch python install for ubuntu
8
12
 
@@ -10,7 +10,9 @@ function terminate_instance() {
10
10
  AMI_ID=$(cat /opt/aws-ec2/data/ami-id.txt | jq -r '.ImageId')
11
11
  if [ "$SOURCE_AMI_ID" = "$AMI_ID" ]; then
12
12
  echo "The source ami and ami_id are the same: $AMI_ID"
13
- echo "WILL NOT TERMINATE!"
13
+ echo "Will not terminate the instance for this case."
14
+ echo "This case can happen when an /etc/rc.local script to auto-terminate the "
15
+ echo "instance was capture from a previous AMI build."
14
16
  return
15
17
  fi
16
18
 
@@ -3,6 +3,8 @@
3
3
  # yum install already has configured
4
4
  # /usr/lib/systemd/system/awslogsd.service
5
5
  # Restart because we adjust the config with configure.sh
6
+ # The yum awslogs package creates a systemd unit called awslogsd.
6
7
  systemctl daemon-reload
7
- systemctl restart awslogsd # with the yum awslogs package the systemd is called awslogsd
8
+ systemctl restart awslogsd
9
+ systemctl enable awslogsd
8
10
  # systemctl status awslogsd
@@ -1,10 +1,7 @@
1
1
  #/bin/bash -exu
2
2
 
3
- # Interestingly, the awslogs-agent-setup.py command in the install.sh script
4
- # already sets up systemd.
5
- # With the yum awslogs-agent-setup.py setup, the systemd is called awslogs
6
-
7
- # We just have to reload and restart it since we reconfigured it
3
+ # The awslogs-agent-setup.py setup creates a systemd unit is called awslogs.
8
4
  systemctl daemon-reload
9
5
  systemctl restart awslogs
6
+ systemctl enable awslogs
10
7
  # systemctl status awslogs
@@ -1,3 +1,3 @@
1
1
  module AwsEc2
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen