Questions tagged [aws]
Amazon Web Services (AWS) is a collection of commercial services centered around virtualized, commodity and clustered computing, networking, database and storage, as well as supporting tools that are offered through infrastructure as a service
443 questions
1
vote
0
answers
77
views
How to gracefully shutdown a docker container?
I need to run c++ application inside a docker container and it is deployed using AWS ECS. The application should run as user abcd and it should be able to generate core files. Initially I had a run ...
0
votes
0
answers
43
views
extending aws docker image fails
I need to extend the aws cli docker image with some custom scripts
I have created a docker file and am copying the script files into a directory
when using the docker file in my gitlab job I get the ...
0
votes
0
answers
40
views
cannot install newrelic-infra on new AWS Linux instance
I am following the instructions here:
https://docs.newrelic.com/docs/infrastructure/infrastructure-agent/linux-installation/package-manager-install/
Step 6 is a yum install. I get this error:
package ...
0
votes
0
answers
125
views
qcow2 with only grub2 BIOS installed not loading in public cloud, works in qemu though
I am trying to create a simple 200 M new qcow2 with just the grub2 BIOS mode installed in it. My objective is to get to the grub prompt or grub rescue prompt when i load the said qcow2 image in public ...
2
votes
0
answers
353
views
Strange systemd log entries - Reached target shutdown.target - Shutdown
I had an AWS Linux 2023 VM reboot unexpectedly. When trying to identify the cause I found messages like those below being logged at 2 per hour (some jitter in the exact times).
Nov 7 22:36:45 ...
1
vote
0
answers
863
views
Device or resource busy on AWS Lambda
Fresh deployed Python FastAPI application to AWS Lambda.
Python application uses ldap3 module to authorize user signing in against Windows Active directory (hosted on AWS Directory Services). However ...
0
votes
1
answer
408
views
Cron time zone won't work on an AWS based EC2 instance
I have an EC2 instance that runs linux. The timezone is set to UTC time and I need my cron tasks to work on UK timezone. However, I am unable to change the system clock to the UK timezone. It must ...
0
votes
2
answers
512
views
Ssh Permission denied on EC2 Linux server (publickey)
Please I created 2 Ubuntu Linux EC2 instances(master and slave) when I tried to ssh from the master server to the slave I get the error Permission denied (publickey).
Server Details
ubuntu@ip-172-31-...
0
votes
1
answer
679
views
redirecting aws cli output
I'm trying to save the output of aws cli to the logfile. and it is working to some extent. The issue is that from below shared first commands execute it save output to the file but when second ...
0
votes
1
answer
40
views
assigning command result printed "on new session" to variable
I have a bash script that among other things executes this command:
aws s3api list-objects --bucket my-bucket-name --output text
that recovers a list of items and prints them in "a new session&...
0
votes
1
answer
816
views
Mount a filesystem in a K8S pod without privileged
I have a K8S deployment loading a volume as raw block (through volumeDevices):
apiVersion: apps/v1
kind: Deployment
...
spec:
replicas: 1
...
containers:
- name: somepod
image: ubuntu:latest
...
0
votes
0
answers
535
views
xargs cat a file with aws cli (amazon s3 move)
I have a file called file.csv, which is a list of the files (or more precisely, file paths path in an S3 Bucket) that need to be moved to another folder in s3.
This file lists 53,00,000 files. I have ...
0
votes
0
answers
494
views
ec2 instance curl request to the ec2 subdomain of its own region fails
I just launched a new clean ec2 instance in the same eu-west-2 and specified the subnet. All traffic internally and externally is enabled. Curl requests to http://169.254.169.254 return results and ...
0
votes
2
answers
319
views
Unable to pass AWS CLI commands in double quotes in json syntax
I'm working with the below script,getting syntax error as unable to fetch credentials from secrets manager. "username":"AWS CLI command of access Key i have entered", "...
1
vote
2
answers
318
views
DCV Viewer on Fedora 38 instalation error
I'm trying to install the Nice DCV 2023 Client such that I can remote into my remote workstation. Several installers are available, for distros like Ret Hat, SUSE, Ubuntu, but not for Fedora.
...
2
votes
1
answer
3k
views
E: Package 'python-minimal' has no installation candidate
I am trying to deploy k8s cluster on aws using kubespray.
Step1: I have downloaded the following dependencies:
apt-get update
apt-get install software-properties-common
apt-add-repository ppa:...
1
vote
1
answer
64
views
Linux system logs
In one of our AWS Linux virtual machines, the ca-certificate.crt file has been modified, and our private CA has been deleted.
How can I determine who made these changes and deletions?
0
votes
0
answers
755
views
Where is Rsyslog programname set?
I am using AWS Elasticbeanstalk to run my java web application. In EC2 node under /etc/rsyslog.d/web.conf
if $programname == 'web' then {
*.=warning;*.=err;*.=crit;*.=alert;*.=emerg /var/log/web....
3
votes
0
answers
7k
views
AWS EC2 Amazon Linux 2023: Installing PHP 7.4
I cannot seem to be able to find php7.4 as a package on Amazon Linux 2023.
The latest version is PHP 8.1 but the application I'm using has compatibility issues with the latest version of PHP; hence ...
4
votes
1
answer
2k
views
AWS VPN Client on Ubuntu (18.04 — 23.04) and Debian (8 — 12, sid): Unknown error ocurred
I've tried to launch AWS Client VPN on all Ubuntu releases, starting with 18.04 and up to 23.04 an everywhere I got Unknown error ocurred. Try again..
I've tried to launch it on all releases of Debian ...
0
votes
0
answers
767
views
Why is systemd service failing on Amazon Linux 2?
I have a Node.js application cloned on an AWS EC2 instance running Amazon Linux 2.
I can execute the project's server.js file just fine:
[ec2-user@ip-*********** portfolio_v3]$ nvm use 16
Now using ...
-2
votes
1
answer
868
views
Which files are safe to delete?
so I used ncdu to help free up some storage and for the following log:
--- / ----------------------------------------------------------------------------------------------------------------------------...
0
votes
1
answer
4k
views
What's the risk of running net.ipv4.route.flush
I'm setting up a Linux box through AWS and I'm exploring sysctl.
When I run ip route I can see that there are already routes on the machine refering to 169.X.X.X addresses.
Questions:
What does ...
-7
votes
3
answers
256
views
I need to convert a large space-separated list of Debian packages into a newline-separated list [duplicate]
In a Amazon s3 bucket we have Debian packages stored in different folders. Each folder contains different amounts of files.
While calling Debian packages from the s3 bucket (AWS) the packages are ...
-1
votes
2
answers
595
views
Could not add AWS codepipeline as a source for codebuild
want to create codebuild project, but i neeed build source to be codepipeline, not a specific codecommit branch, so that i want to force codebuild to get the source from the codepipeline source stage ...