Elastic block store and hooks missing after scheduled AMI update

0

Hi,

After creating a new Elastic beanstalk env, we've added a Volume to this instance and added hooks to update some perms post an appdeploy in "/opt/elasticbeanstalk/hooks/appdeploy/post".

Now each time after an update to the AMI, our volumes and hooks go missing. The platform is "PHP 7.3 running on 64bit Amazon Linux/2.9.4".

Any known issues with this? Anything extra details I can provide to help debug this?

Thanks,
John

FacetAu
gefragt vor 4 Jahren186 Aufrufe
2 Antworten
0

are the hookes in your Application version source code?

Chad777
beantwortet vor 4 Jahren
0

Not in source control, they are on the instance under "/opt/elasticbeanstalk/hooks/"

EDIT1: I see these are discontinued, now under ".platform/hooks" in the repo.

Still unsure as to why our volume goes missing.

EDIT2:
I assume we now add a volume in a .ebextensions conf file? e.g.:
commands:
01mkfs:
command: "mkfs -t ext3 /dev/sdh"
02mkdir:
command: "mkdir /media/volume1"
04mount:
command: "mount /dev/sdh /media/volume1"

option_settings:

  • namespace: aws:autoscaling:launchconfiguration
    option_name: BlockDeviceMappings
    value: /dev/sdh=:8

Edited by: FacetAu on Apr 16, 2020 8:40 PM

Edited by: FacetAu on Apr 16, 2020 9:23 PM

FacetAu
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen