Questions tagged [amazon-linux-2]

251 questions
6
votes
1 answer

get-config key change when upgrading to Linux2 in Elastic Beanstalk

I am upgrading my Elastic Beanstalk deploy to Linux2. Several .ebextensions scripts are failing in the new deploy. It appears that the usage for get_config has changed. Old script variables: EB_APP_USER=$(/opt/elasticbeanstalk/bin/get-config…
E L Rayle
  • 1,131
  • 2
  • 9
  • 11
6
votes
1 answer

/.platform/hooks/': No such file or directory when deploying Django App to AWS Elastic Beanstalk

I am trying to deploy a Django app to AWS ElasticBeanStalk. I followed all the guides in the marked correct answer but I still get the below error: [INFO] -----------------------Command Output----------------------- [INFO] find:…
6
votes
1 answer

How to unzip on Amazon Linux 2?

I have a file names awscliv2.zip and I'm trying to unzip it. So first I tried: unzip awscliv2.zip But got: -bash: unzip: command not found And then I tried: tar xvf awscliv2.zip But got: tar: This does not look like a tar archive tar: Skipping…
Alon
  • 10,381
  • 23
  • 88
  • 152
6
votes
2 answers

Mariadb installation on Amazon linux 2

Can someone provide steps to install mariadb on amazon linux 2? I am pretty new in linux, so a little detail will be greatly appreciated. I have seen few links to install maria db on centOs but not sure if the same works for Amazon linux 2
dbNovice
  • 399
  • 2
  • 4
  • 18
5
votes
2 answers

How to enable HTTPS with certobot/letsencrypt on Amazon Linux 2 with nginx

Install certbot/letsencrypt on Amazon Linux 2 and enable HTTPS on nginx (similar process available for apache)
Majico
  • 475
  • 1
  • 6
  • 20
5
votes
3 answers

Amazon Linux 2 worker fails to reboot

I'm running a Node.js application on an Amazon Linux 2 worker instance, connected to SQS. The problem It all runs fine, except that for technical reasons I need to restart the server regularly. To do this, I've set up a cron to run /sbin/shutdown -r…
5
votes
1 answer

elasticbeanstalk fail to deploy web environment /var/pids/web.pid: no such file or directory

I would like to deploy a JAVA application (based on PlayFramework 1.x) on AWS Beanstalk. I am using a web server environment based on Corretto 8 running on 64bit Amazon Linux 2/3.1.6. I also added a load balancer in the environment. During the…
5
votes
2 answers

AWC EC2 Amazon Linux 2 Instances failed to boot after applying os updates

Yesterday we lost contact with 10 identically configured servers, after some investigation the conclusion was that a reboot after security updates had failed. We have so far not been able to get any of the servers back online, but were lucky enough…
5
votes
3 answers

Can't install php-imagick on Amazon Linux 2 for PHP 7.4

When I try to run sudo yum install php-imagick I'm getting this response: Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core …
Nikko R.
  • 178
  • 1
  • 11
5
votes
1 answer

Run Django manage.py shell commands on elastic beanstalk on AL2

I have my Django service up and running on AWS Elastic Beanstalk (on Amazon Linux 2). eb deploy works perfectly. But I would like to run some functions from shell of Django on by eb or maybe perform migrations on my DB. I am unable to find my…
5
votes
0 answers

How can I update to Amazon Linux 2 ECS optimized container instance?

Since I started using AWS ECS I have followed the AWS ECS reference architecture. This reference architecture uses Amazon Linux, and I would like to update to Amazon Linux 2, but I'm not sure what I'm required to do in order to make this transition…
4
votes
1 answer

Stop EBS Linux 2 (Node.js) from trying to do npm install?

I'm trying to run a Node application on AWS Linux 2 on Elastic Beanstalk and need to install the dependencies using yarn. (My Node app causes errors if you try to use npm to install dependencies instead of yarn.) I've already figured out how to set…
4
votes
2 answers

How to enable cgroups V2 on Amazon linux 2

I am trying to enable cgroups V2 on Amazon linux 2, but so far unsuccesfully. I have tried to add systemd.unified_cgroup_hierarchy=1 to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, then grub2-mkconfig -o /boot/grub2/grub.cfg reboot After that,…
dragonraid
  • 61
  • 3
4
votes
2 answers

Increasing worker_connections of nginx on Beanstalk nodejs environment

I am trying to increase the number of possible worker_connections of my nginx on my Beanstalk nodejs server (Amazon Linux 2). I followed the documentation and created a file .platform/nginx/conf.d/proxy.conf with this content: worker_rlimit_nofile…
httpete
  • 5,875
  • 4
  • 32
  • 41
4
votes
2 answers

Why is the aws cli not found on amazonlinux2 ami?

The AmazonLinux2 AMI I am using for my Docker hosts does not appear to have the AWS CLI installed. The log has an error from the user data script that tries to run an aws command: /var/lib/cloud/instance/scripts/part-001: line 7: aws: command not…
1
2
3
16 17