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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Connect failed with browser-based SSH connection

Trying to connect to Ubuntu machine in AWS from web browser. Got error: There was a problem setting up the instance connection Log in failed. If this instance has just started up, try again in a ...
0
votes
0answers
4 views

Amazon's SAM CLI in GNU/Linux

After quite some time I needed to change my local python version to 3.6.8. Since I write SAM lambdas for AWS I wanted to use the SAM CLI. To my surprise there was no package in pip for it and it is ...
0
votes
1answer
34 views

How do I determine amount of resources that Docker host needs to provision to a container, by inspecting a running system?

My goal is to define container definitions("ContainerDefinitions") with appropriate memory size needed in RAM to launch the docker container. For example, below code snippet for jenkins container(...
-1
votes
1answer
35 views

Ps aux u shows little CPU usage, but sys_getloadavg() has 3.34

Some time ago our site had been hacked, and we were able to recover successfully, however there still seems to be something weird that we havent got rid off yet. Once per hour, there is a job starting ...
0
votes
2answers
35 views

jq filter for only 'null' values

I have a json file with a load of AWS CloudWatch logs (generated from a CLI command). I'm trying to use jq to only return values for entries that don't have a 'retentionInDays' field. I have the ...
-2
votes
1answer
62 views

how can I update hostname [closed]

I created AMI from AWS server instance (ip: 10.15.1.202), and created a new instance (ip: 10.15.1.117) with the AMI. When connecting new server, at terminal it shows wrong (previous server ip) ip ...
0
votes
1answer
39 views

Enforcing TLS V1.2 on client communication?

I am after a sanity check to ensure that what I have been asked to investigate is actually achievable. I am currently building out a Centos7 server, which will be used to deliver files to AWS S3, ...
0
votes
0answers
27 views

Apache server at new AWS EC2 instance is not reachable even with “All source” and 0.0.0.0/0

I have installed Apache2 server and I am able to access my EC2 public DNS address from EC2 instance terminal with: curl http://ec2-xx-xxx-xx-xxx.us-east-2.compute.amazonaws.com/ which returns a ...
0
votes
0answers
22 views

EnvironmentFile not read in systemd - AWS EC2 Linux2 [duplicate]

I'm trying to configure environment variables to a service that's setup with systemd. The service is starting fine with systemctl start onboarding.service but somehow the environment file present in ...
1
vote
1answer
41 views

How to create a conditional from a command output, that may throw an exception?

I've got a command from aws cloudformation that returns a stack status in a text format 'DELETE_IN_PROGRESS', or 'ROLLBACK_IN_PROGRESS' and so on: aws cloudformation --region "$AWS_DEFAULT_REGION" ...
0
votes
1answer
42 views

Maven-compiler-version for Amazon Corretto

we are migrating our project from JDK1.8 to Amazon Corretto 8 version. wondering which version should i need to mention in the maven-compiler-plugin in pom.xml. This is the existing pom setup for ...
1
vote
0answers
13 views

mkbundle error 32512: no package mono-2

I'm trying to generate a static bundle using mkbundle --static file.exe -o file --i18n none, but I get the following output: Package mono-2 was not found in the pkg-config search path. Perhaps you ...
0
votes
0answers
29 views

Show the path length in bytes linux

Still a bit green with linux/unix but AWS File storage gateway has a max path length https://docs.aws.amazon.com/storagegateway/latest/userguide/resource-gateway-limits.html Is there a cmd that ...
0
votes
0answers
24 views

Does archiving root directory archive additional mounted disk directories?

I am trying to archive a bunch of systems using tar. In order to do so, I am planning to run tar on each of the devices listed by df command's output (except tmpfs). Since the non-root devices are ...
0
votes
0answers
16 views

Can someone explain these mounts on these filesystem on a pod in a k8s cluster?

I have a k8s cluster with some pods and some AWS EC2 volumes mounted on these pods. On a pod I have some dir structure, i.e. I have this Filesystem mounted on these dirs: Filesystem Size Used ...
1
vote
3answers
100 views

How to list all files under /etc and write it to a file in /home?

ls -a > /home/etc.txt -bash: /home/etc.txt: Permission denied I'm in /etc trying to list all the things under it and write it all into a text file in /home... but I'm getting permission denied. I ...
0
votes
1answer
20 views

Getting below error while building an image in docker

Getting below error while building an image in docker: docker build -t demo . Output : Sending build context to Docker daemon 2.048kB Step 1/3 : From tomcat:8 ---> 8973f493aa0a Step 2/3 : ...
0
votes
0answers
18 views

How Can I create multiple EC2 instances having different AZs ( for Public us-west-2a, us-west-2b) same for Private ( us-west-2a, us-west-2b)?

I tried creating Terraform (AWS) script, which will help me to create EC2 instances Here is my scenario creating two public subnet ( us-west-2a , us-west-2b Availablity zones) creating two private ...
1
vote
1answer
171 views

AWS s3 CLi grep command with special characters

I want to copy the whole log that are stored in the AWS S3 bucket if the following line is present: \"Key\" : 951332,\n I've tried escaping by trying this: aws s3 ls s3://bucket_name | grep "/\"Key/...
0
votes
0answers
25 views

FFMPEG On AWS Linux Servers

I'm trying to run ffmpeg from aws lambda but my gif to mp4 conversion dont work. The mp4 output loses frames from the gif animation. os.system("/tmp/ffmpeg -i /tmp/2.gif -c:v libx264 -preset ...
0
votes
0answers
40 views

Amazon EFS, Working around hard link limit

I have been hard linking to my nfs mount and did not realize that I'm only limited to 177 links, as seen in the aws docs. See Command Fails with "Too many links" Error https://docs.aws.amazon.com/...
1
vote
0answers
32 views

Connecting Win 10 roadwarrior to AWS strongSwan VPN - not able to find a certificate usable with Extensible Authentication Protocol

I managed to connect two AWS subnets in different zones over strongSwan VPN using ike2 with the aes256 encryption. So, Master CA key is created, self-signed CA certificate, as well as private and ...
3
votes
0answers
32 views

Restrict special user and host of the ftp in the Linux Instance

I am using WinScp for connecting FTP to a Linux Instance and I want to restrict special user and host. I installed plesk on my Linux EC2 instance and I thought it uses proftpd for ftp service and ...
3
votes
1answer
38 views

Restrict special user and host of ftp in the Linux Instance

I am using WinSCP for connecting ftp to Linux Instance and I want to restrict special user and host. I install plesk on my Linux Ec2 instance and I thought it is using proftpd for ftp service and ...
0
votes
0answers
24 views

Where to install the CSR in the server cluster?

Background is that currently i have a basic AWS server cluster that consists of 1 RDB , two EC2 instances , 1 Load Balancer with SSL installed and this server cluster is sitting within an OPENVPN. ...
2
votes
0answers
79 views

AWS - Stack creation - How to assign an inline policy to adhoc user?

Background: With cross account role someaccountrole, I have access to aws account xyz. Case 1 To create a stack in account xyz, we upload the Cloudformation file through console. Amidst stack ...
0
votes
1answer
43 views

How to copy CentOS server using SSH from one hosting to AWS EC2?

I have like 15 VPS CentOS machines with SSH access on one hosting and I need to move them all to Amazon Web Services to EC2 That hosting is not supporting anything expect of SSH Which the easiest ...
0
votes
2answers
98 views

SSH keys that can be used only in one machine

My requirement is simple. I have generated a SSH key-pair (Public and Private) on a server say "A". Now I have uploaded my Public SSH key in AWS IAM and have generated a SSH key ID to connect to a ...
-1
votes
1answer
18 views

How can I upload and import an SSL certifcate to AWS IAM?

I have three files: 8e59b867828d4bdb.crt 8e59b867828d4bdb.pem gd_bundle-g2-g1.crt. Actually right now my sss certificate expired (https://www.sociorich.com/). How can I upload ssl certifcate to AWS ...
0
votes
0answers
126 views

AWS Batch: cgroup-parent for systemd cgroup should be a valid slice named as “xxx.slice”

For some reasons, I need to use Linux kernel 3.10.X for my AWS batch host. I follow this post and created my AMI based on Centos7. What I did was simply created an EC2 instance with Centos 7 and the ...
1
vote
0answers
31 views

adding Group and permissions for FTP

This is a follow up to my previous rather dumb question about adding a FTP user for one of my clients... original question here. I'm running a Linux2 instance on AWS. I have a number of site running ...
0
votes
0answers
37 views

wazuh-issue in visualizing

I am using wazuh manager configuration and want to send cloudtrail logs stored in S3 visualize on wazuh interface, also trying to configrure cloudwatch metrics on wazuh interface. Elasticsearch ...
-1
votes
1answer
794 views

How do you install Nginx 1.16 or 1.17 on AWS Linux via yum?

When referencing the page https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#stable_vs_mainline I have added the following repo entry /etc/yum.repos.d/nginx.repo ...
3
votes
1answer
97 views

Why do two users get different versions of the same binary?

I have just updated a package using python-pip. Two different users get different versions of the binary: andrew$ which aws /usr/bin/aws andrew$ /usr/bin/aws --version aws-cli/1.16.194 Python/3.5....
1
vote
0answers
47 views

Squid & email traffic (25)

I'm using AWS, all traffic routed out (https) via a squid Farm in an ASG to Elastic NAT gateways. I need to route smtp port 25/110 out via this route. However new to this stuff. I believe squid is ...
1
vote
2answers
119 views

How to reset /etc/sudoers file in Gnu/Linux, when locked out

I am using AWS Linux AMI2, I added ec2-user ALL=(ALL) ALL and saved the file. Now when I run any command with sudo it displays [sudo] password for ec2-user: How to reset this file?
0
votes
1answer
28 views

adding FTP user without changing owner of directory?

Sorry, but this is probably a terribly stupid question. I'm running a Linux2 instance on AWS. I have a number of sites running there, including a couple of wordpress sites. One of the sites wants an ...
1
vote
0answers
123 views

AWS EFS: unable to mount on amazon linux using amazon-efs-utils

I have created a simple EFS and trying to mount it to my AWS EC2 which is using amazon-linux distribution. I have been following the very simple instructions given there, I login to the my EC2, then ...
1
vote
0answers
360 views

rsyslog configuration without restart

I have a problem with logging. With my configuration below, I have to perform rsyslog restart if I want to have my application log file in /var/log. Also, I have to restart rsyslog it in case of log ...
0
votes
1answer
794 views

SSH to AWS Ec2: port 22: Connection timed out

I am trying to ssh(from my Ubuntu 18.04 desktop) to a running EC2 instance ssh -i /home/miki/pizda/jk/keys/kur/kjam/python-kjam.pem ubuntu@ec2-18-194-207-247.eu-central-1.compute.amazonaws.com ssh: ...
0
votes
1answer
33 views

Purge all data on remote server with rm command

Let's say theoretically, I've been using a cloud server instance (such as an AWS EC2 Linux instance) and I want to delete the instance, but before I delete the instance I want to purge ALL the data ...
1
vote
1answer
153 views

Rsync stuck in D state

I'm moving about 1 TB data from an EBS mounted on my EC2 to another EFS mounted on the same instance. I've been able to copy about 840 GB of data using rsync within the past 2 weeks or so. Now when I'...
2
votes
1answer
305 views

How to set email alert for disk space usage for ubuntu instance on AWS?

I have an ubuntu instance on AWS and I want an email when 80% of disk space is consumed. I have checked the cloud watch but there is no such option to monitor disk space. There is only one option ...
1
vote
2answers
990 views

How to set environment variables permanently in Amazon Linux 2

I have experimented with many approaches to setting permanent environment variables EC2 instances running Amazon Linux 2, but none of the approaches are persistent across users and across login ...
2
votes
1answer
51 views

Can No Longer Login With Ec2-user After Creating A New User

I've tried looking in the forums before posting this but can't find anything that really addresses my issue. Very simply, my problem is in the topic: I created a new user, afterwards, I can login ...
0
votes
1answer
36 views

etcd cluster healthcheck | aws ELB

I am setting up a 3 node etcd cluster behind a AWS ELB. I would like to know how can I setup a healthcheck on the ELB for the 3 nodes, preferably using the v3 api endpoint. Thanks.
1
vote
1answer
354 views

Return the private IP of an EC2 instance from within the EC2 instance

What specific syntax can be used to return the private IP address of an Amazon Linux EC2 instance from the command line within that instance? So far, I have come up with the following: # Get ...
0
votes
1answer
71 views

Ansible User module removes sudo configuration. Why?

An Amazon Linux 2 machine is configured with a user that can sudo without password as follows: # Add user sudo groupadd -g 2002 one-username sudo useradd -u 2002 -g 2002 -c "One Username Account" -...
0
votes
0answers
19 views

Find wich mailbox encrypt or not encrypt there passwords for IMAP or POP3

I try to list all mailboxes with the method of encryption passwords. How can I do this? I know that I can grep the method=LOGIN,PLAIN,CRAM-MD5 with: cat /var/log/mail.log | grep method=LOGIN or ...
0
votes
0answers
70 views

Linux system process activity suspended

Introduction: I am running a cpp application on an embedded systems device with onboard Linux, which gathers sensor data, prepares it into a JSON formatted string payload and publishes the payload on ...