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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caf18db0edfbee2f8032e88d5a6607f7a0a1aa1ec2899432a4c8cb15360aa5d8
|
4
|
+
data.tar.gz: 0aff7e73005748908c5891501be67ad6824d3709c3f0fe47b5d4311aff860a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7218e5b6b3b90d1e5d89b1ed9f29e86c4c27ac3d8a9ff87798e61931bcf3421545cb80c18adcdb03fac5a51bb933b251f5b439ae9bbe82459c2c55a3d1dbb63
|
7
|
+
data.tar.gz: 7b7fc9cff1a27a919ed23dd2f1e3497d14532670549601dee71414bb8d06da2301082019e604497ae4310531c07709a9efcb534a6a7ea20c3110afd83a5fd740
|
data/CHANGELOG.md
CHANGED
@@ -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 "
|
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
|
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
|
-
#
|
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
|
data/lib/aws_ec2/version.rb
CHANGED