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
질문됨 4년 전184회 조회
2개 답변
0

are the hookes in your Application version source code?

Chad777
답변함 4년 전
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
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠