Questions tagged [amazon-linux-2]

251 questions
2
votes
1 answer

How to get current ssm sessionId after starting a new session?

I'm trying to get the current aws ssm sessionId after starting a session. I can see that when I start it it gets printed, like this Starting session with SessionId: test@test.com-0ftz59d2285d67fb5 But I don't know where this comes from. I can also…
2
votes
1 answer

WSGI path doen't work with Amazon Linux 2

I'm trying to get going with Elastic Beanstalk and Amazon Linux 2. One thing I've noticed is that the WSGI path seems to be a little different. For a Django app I would usually set <>.wsgi.py Instead, the new way to define it is with a…
Xen_mar
  • 8,330
  • 11
  • 51
  • 74
2
votes
1 answer

The deployment to Lightsail instances failed because no instances were found for your deployment group

Following from Marci's answer, I went on and tried to deploy from GitHub using the steps he mentions (adapting the region) but I'm getting The deployment failed because no instances were found for your deployment group. Check your deployment group…
2
votes
1 answer

ElasticBeanstalk Amazon Linux 2 Node not logging to web.stdout

I've been upgrading to Amazon linux 2 recently and I'm now trying to debug my node application with the web.stdout logs. I was seeing them previously and now they aren't being shown. I can curl my node application as expected so I know it has to be…
2
votes
1 answer

ElasticBeanstalk with Amazing Linux 2 keeps timing out even with Nginx config updates

I have a Flask app (WSGI) deployed to Elastic Beanstalk using the Amazing Linux 2. In my /var/log/web.stdout.log, I have: Jul 13 20:47:34 ip-172-31-11-53 web: [2020-07-13 20:47:34 +0000] [1531] [INFO] Worker exiting (pid: 1531) Jul 13 20:47:34…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
2
votes
1 answer

Increasing Amazon Linux 2 AMI /tmp size

I'm trying to install tensorflow on a Amazon linux AMI EC2 micro instance, but I keep getting EnvironmentError: [Errno 28] No space left on device even while the disk is empty. On ubuntu server, I fix this increasing the /tmp size with the command…
2
votes
2 answers

Updating Lambda function to new runtime. Why is cURL no longer working in Node 10 on AWS Lambda?

This is the line in my Lambda function that's raising an error: // running in Node 8 const { execSync } = require('child_process'); execSync('curl https://github.com'); I'm trying to upgrade my Lambda function from Node 8 to Node 10 or Node 12,…
Matt
  • 5,800
  • 1
  • 44
  • 40
2
votes
1 answer

How do I install package from amazon-linux-extras using Puppet?

I am trying to set up a Puppet module to install PHP 7.3 on Amazon Linux 2. It is available as a amazon-linux-extras package. I could simply install it using CLI: amazon-linux-extras install php7.3 But I would like to define it as a package and…
Tomage
  • 187
  • 1
  • 12
1
vote
0 answers

Error: Schema validation failed with the following errors: Data path "" must have required property 'outputPath'

ng build --aot --build-optimizer Skipping invalid target value; expected an object. Project extension with invalid name (serve) found. Project extension with invalid name (extract-i18n) found. Project extension with invalid name (test)…
1
vote
0 answers

Build C++ Applications in a Amazon Linux 2 Docker Container with Visual Studio

I followed the next URL and successfully built a simple C++ app on Ubuntu Docker container with Visual studio 2022. Build C++ Applications in a Linux Docker Container with Visual Studio Next, I tried using Amazon Linux 2, but the visual studio said…
onkjm
  • 11
  • 2
1
vote
2 answers

How can I include single quotes surrounding a value coming from an environment variable into a PostgreSQL statement

This line of command I picked from one of my bash scripts I am trying to use to automate some initial setup of a PostgreSQL database in an Amazon Linux machine. I have the environment variable named TEST_PASSWORD contains the value TestSecret. I…
Rafiq
  • 1,380
  • 4
  • 16
  • 31
1
vote
3 answers

Failed to install java in Amazon Linux 2

I am using sudo amazon-linux-extras install java-openjdk11 this command,but it says sudo: amazon-linux-extras: command not found How I can install java in my ec2 ? I am using sudo amazon-linux-extras install java-openjdk11 this command,but it…
1
vote
0 answers

Is it ok to use yum priorities plugin or will it cause any issues?

I am currently working on upgrading PHP installation on Amazon Linux 2 instance. As all the PHP 8 modules are not available in the default EPEL repo I have planned to use the REMI repository. However when I am trying to install some of the modules…
Rob Wilkinson
  • 1,131
  • 5
  • 18
  • 34
1
vote
0 answers

Unable to install Redis module with PHP 8.x version on Linux

Deployment of one of the application in our environment started failing while trying to install PHP Redis module on Amazon Linux. The environment has PHP 8 installed. I am getting the below error. ---> Package php-pecl-redis.x86_64 0:2.2.8-1.el7…
Rob Wilkinson
  • 1,131
  • 5
  • 18
  • 34
1
vote
1 answer

Getting Error: unrecognized option -march=nocona while installing aerospike 3.10.0 version for python on amazon linux 2 system

I am currently using aerospike version < 4.9, which requires a python aerospike client < 5.0.0 While doing pip install aerospike==3.10.0, I am getting this error Assembler messages: Error: unknown architecture `nocona' Error: unrecognized…