Questions tagged with Amazon Linux

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

According to [this](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) document, Amazon recommends an AMI called "Amazon ECS GPU-optimized AMI" for workloads targeting GPU on ECS. I have a docker image built that requires GPU, so I want to use this AMI as the base for ECS. But I can't find that AMI anywhere in the console. There's a Amazon official AMI called "Deep Learning AMI GPU PyTorch 1.13.1 (Amazon Linux 2) 20230201", but it can't possibly be that one, because in the docs, Amazon(without a link) is calling it "Amazon ECS GPU-optimized AMI", nothing about "Deep Learning" or "PyTorch" in noted in the docs, and nothing about "ECS" is mentioned in the AMI title. In the Marketplace AMIs, there's one called "ECS-Optimized Amazon Linux 2 GPU with Support by Supported Images" which is the closest name to what the AWS docs have referenced, but that's by a 3rd party company called "Supported Images", which is not mentioned in the AWS docs, and has just about the shadiest website i've seen since 1998 https://supportedimages.com/ (was surprised to find NO comic sans on their website). The name alone seems like exactly what you'd call a scammy company trying to get credibility. Can anyone help me find what Amazon is referrring to in [this](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) document, when they say "Amazon ECS GPU-optimized AMI"? Thank you.
1
answers
0
votes
33
views
Peter
asked 2 months ago
Hi there, I am attempting to finish setting up an EC2 to enable a research tool to be deployed online. I have had troubles with the "Certificate automation: Let's Encrypt with Certbot on Amazon Linux 2" instructions, linked below: [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt:~:text=Linux%202%20AMI.-,Certificate%20automation%3A%20Let%27s%20Encrypt%20with%20Certbot%20on%20Amazon%20Linux%202,-Warning]() I have installed Apache through the following commands: ``` sudo yum install -y httpd cd /tmp sudo wget -O epel.rpm –nv \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install -y ./epel.rpm sudo yum install python2-certbot-apache.noarch ``` I enter the following commands into a .pem bash terminal in vscode: ``` sudo wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/ sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm sudo yum-config-manager --enable epel* sudo yum update -y sudo yum repolist all ``` When confirming that the EPEL is enabled, my information in vscode differs from what the instructions state. Please view the images below: ##### **Instructions:** ![Enter image description here](/media/postImages/original/IMUeVDGLN7T26Q5apMK_z7EA) ##### **My information:** ![Enter image description here](/media/postImages/original/IMvm5lxnh1Tv-0ewY4QFU0Fw) Any guidance on where a mistake may have been made, or why i am not able to enable these services would be greatly appreciated! Many Thanks,
1
answers
0
votes
29
views
asked 2 months ago
I have a CodeBuild job that tries to build a docker container based off amazonlinux:2022 it works great locally but fails in CodeBuild with the following error FROM public.ecr.aws/amazonlinux/amazonlinux:2022 ...do a yum -y install then Amazon Linux 2022 repository 0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'amazonlinux': - Curl error (6): Couldn't resolve host name for https://cdn.amazonlinux.com/al2022/core/mirrors/2022.0.20221207/x86_64/mirror.list [getaddrinfo() thread failed to start] Error: Failed to download metadata for repo 'amazonlinux': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://cdn.amazonlinux.com/al2022/core/mirrors/2022.0.20221207/x86_64/mirror.list [getaddrinfo() thread failed to start] Ignoring repositories: amazonlinux How can I get dns to work in code build so that it can acess the amazonlinux:2022 repositories on cdn.amazonlinux.com ?
0
answers
0
votes
48
views
bwaters
asked 2 months ago
Hey Team, I am unable to deploy Deploy Microsoft Defender for Endpoint on Amazon linux 2 EC2 instance. I follow the steps mentioned in the document https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/linux-install-manually?view=o365-worldwide. Can someone please help me on this? **OS Release version:** NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" **Shell Installation output:** [root@ip-172-31-76-111 ec2-user]# sudo yum install yum-utils -y Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 Package yum-utils-1.1.31-46.amzn2.0.1.noarch already installed and latest version Nothing to do [root@ip-172-31-76-111 ec2-user]# sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/7.2/prod.repo Loaded plugins: extras_suggestions, langpacks, priorities, update-motd adding repo from: https://packages.microsoft.com/config/rhel/7.2/prod.repo grabbing file https://packages.microsoft.com/config/rhel/7.2/prod.repo to /etc/yum.repos.d/prod.repo repo saved to /etc/yum.repos.d/prod.repo [root@ip-172-31-76-111 ec2-user]# sudo rpm --import http://packages.microsoft.com/keys/microsoft.asc [root@ip-172-31-76-111 ec2-user]# sudo yum install mdatp -y Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No package mdatp available. Error: Nothing to do [root@ip-172-31-76-111 ec2-user]# sudo yum --enablerepo=packages-microsoft-com-prod install mdatp Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No package mdatp available. Error: Nothing to do
3
answers
0
votes
65
views
asked 2 months ago
I'm working to deploy a laravel application on an Amazon Linux 2 instance. I'm getting this error: Class "Redis" not found and the last error in the stack trace: vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:81 While looking around, it seems that the solution on CentOS and other "yum" distro's is to install php-redis. I haven't been able to find any such package for the Amazon Linux AMI. How can I install php-redis?
1
answers
0
votes
83
views
asked 2 months ago
I'm running a Amazon EC2 instance - Amazon Linux release 2 (Karoo). The apache server sets files it creates with the permissions 644. I want them to be 664. I've tried changing the umask setting to 002 (from 022) in every single line that has 'umask' in the /etc folder and sub-folders. This didn't seem to work. I also tried various solutions on the Internet about having the specific service set the umask to no avail. Thanks.
0
answers
0
votes
13
views
asked 2 months ago
1) I have created a Ec2 Amazon linux 2 instance and have attached 4 extra EBS volumes ( gp2=3gb, gp3=3gb,io1=4gb, io2=4gb formatted and mounted it and I have installed postgres db (v 8.4.18) on it. ( dev/xvdf /data/db1... etc) 2) I have created number of sample tables in the database and made my ebs root volume full to 100%. Now I am creating more table i get the error that your disk is full. 3) I want to know how can I set the root limit or even if the root volume is 100% the further data I am creating should automatically get stored in the other EBS volumes without increasing the size of root volume. The further data should be store in any of the attached root volumes or I want to see if the data divides in all the 4 EBS volumes. 4)In the Postgres database configuration, Do I need to map the default data directory (ie, /var/lib/postgresql/) to any of the attached EBS volumes? or how can I mount those ebs volumes to one another.
1
answers
0
votes
19
views
Suraj
asked 2 months ago
Hi, in my instances running AL2 i am using the EPEL repo to have access to especially on package (libmaxminddb). This package was now removed from EPEL because it was included in RHEL7.7. Are there any chances this package can find its way into the Amazon Linux 2 core repo as it did for CentOS7? Or do i have to install the package manually via rpm or self built? Thx.
1
answers
0
votes
102
views
asked 3 months ago
Hi, I am running `yum --security update-minimal` daily on an EC2 instance powered by Amazon Linux 2. That keeps returning `No package matched to upgrade: python2-rsa-0:3.4.2-3.el7` for a few days now. Based on [Amazon Linux 2 FAQ](https://aws.amazon.com/amazon-linux-2/faqs/) "There are no plans to change the default Python interpreter. It is our intention to retain Python 2.7 as the default for the lifetime of Amazon Linux 2. We will backport security fixes to our Python 2.7 packages as needed." I assume that the security fixes from `python2-rsa-0:3.4.2-3` have been backported to the newest available package (also included in the [latest AMI release](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20221216.html) = python2-rsa-3.4.1-1.amzn2.0.3.noarch). However yum does not seem to be happy about it. I could disable `yum priority plugin` (in `/etc/yum/pluginconf.d/priorities.conf`) and install `python2-rsa-0:3.4.2-3.el7` from `EPEL` but I would like to know whether there is another solution. Thanks!
1
answers
0
votes
53
views
asked 3 months ago
I am having issues getting my Node.js project to run on AWS Elastic Beanstalk. It was running fine for months, but after the Christmas break, it is now failing. Here is the output from the eb-engine.log file: ``` [INFO] Executing instruction: Use NPM to install dependencies [INFO] use npm to install dependencies [INFO] Running command /bin/sh -c npm config set jobs 1 [INFO] Running command /bin/sh -c npm --production install npm ERR! code 1 npm ERR! path /var/app/staging/node_modules/node npm ERR! command failed npm ERR! command sh -c node installArchSpecificPackage npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'node-linux-arm64/package.json' npm ERR! Require stack: npm ERR! - /var/app/staging/node_modules/node/installArchSpecificPackage.js npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.resolve (node:internal/modules/cjs/helpers:108:19) npm ERR! at ChildProcess.<anonymous> (/var/app/staging/node_modules/node-bin-setup/index.js:19:27) npm ERR! at ChildProcess.emit (node:events:527:28) npm ERR! at maybeClose (node:internal/child_process:1092:16) npm ERR! at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [ npm ERR! '/var/app/staging/node_modules/node/installArchSpecificPackage.js' npm ERR! ] npm ERR! } ``` This is using the "Node.js 16 running on 64bit Amazon Linux 2/5.6.3" platform. Any help would be greatly appreciated.
1
answers
0
votes
44
views
asked 3 months ago
Hi, If anyone can help me out with it'd be greatly appreciated! I'm currently creating a Splunk environment and I have all my instances configured to the same security group but when I try to discover my inputted TCP servers the receiving server isn't receiving anything from any server. I've ensured that my Linux instances have disabled firewalls, double-checked the security group rules, and also used telnet to verify but still no luck. Any tips or pointers would be greatly appreciated! Regards,
2
answers
0
votes
70
views
asked 3 months ago
upgraded to new servers with AWS Linux 2022 (php 8.1.7). No longer have php-zip module available. No matching package found when trying to install manually. Just tried installing Webmin and it failed looking for "perl-Encode-Detect". Tried installing this and it also seems to be missing from latest Linux 2022 distro.
2
answers
0
votes
72
views
asked 3 months ago