Skip to content

Commit

Permalink
Make ebextension step names unique so they can be identified more eas…
Browse files Browse the repository at this point in the history
…ily from error messages.
  • Loading branch information
stefansundin committed May 10, 2020
1 parent 8c0f850 commit 7a2cc9f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .ebextensions/01-swap.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
commands:
"01":
"01-swap":
command: |
dd if=/dev/zero of=/var/swapfile bs=1M count=512
chmod 600 /var/swapfile
Expand Down
2 changes: 1 addition & 1 deletion .ebextensions/02-tag-root-volume.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
# done
#
# commands:
# "01":
# "01-tag-ebs-volumes":
# command: /opt/tag-ebs-volumes.sh && touch /opt/tag-ebs-volumes.done
# test: test ! -f /opt/tag-ebs-volumes.done
4 changes: 2 additions & 2 deletions .ebextensions/11-redis.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ packages:
redis: []

commands:
"01":
"01-redis":
command: systemctl enable redis.service
"02":
"02-redis":
command: systemctl start redis.service
14 changes: 7 additions & 7 deletions .ebextensions/20-efs.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
# amazon-efs-utils: []
#
# commands:
# "01":
# "01-efs":
# command: mkdir -p /mnt/efs
# test: test ! -d /mnt/efs
# "02":
# "02-efs":
# command: grep -q /mnt/efs /etc/fstab || echo "fs-01234567:/ /mnt/efs efs tls,_netdev" >> /etc/fstab
# "03":
# "03-efs":
# command: mountpoint -q /mnt/efs || mount /mnt/efs
# "04":
# "04-efs":
# command: mkdir -p /mnt/efs/etc/letsencrypt
# test: test ! -d /mnt/efs/etc/letsencrypt
# "05":
# "05-efs":
# command: ln -s /mnt/efs/etc/letsencrypt /etc/letsencrypt
# test: test ! -h /etc/letsencrypt
# "06":
# "06-efs":
# command: mkdir -p /mnt/efs/var/acme-challenges
# test: test ! -d /mnt/efs/var/acme-challenges
# "07":
# "07-efs":
# command: rm -rf /var/acme-challenges && ln -s /mnt/efs/var/acme-challenges /var/acme-challenges
# test: test ! -h /var/acme-challenges
2 changes: 1 addition & 1 deletion .ebextensions/21-certbot.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
# @daily root /opt/certbot-renew
#
# container_commands:
# "01":
# "01-certbot":
# command: mkdir -p /var/acme-challenges
# test: test ! -d /var/acme-challenges
2 changes: 1 addition & 1 deletion .ebextensions/22-amazon-cloudwatch-agent.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Increase the collection interval and only send the metrics that are useful!

# container_commands:
# "01":
# "01-amazon-cloudwatch-agent":
# command: amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:.ebextensions/amazon-cloudwatch-agent.json -s

0 comments on commit 7a2cc9f

Please sign in to comment.