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
0 answers
29 views

xhost not working in combination with aws vpn client

I have a laptop running Windows with a Cygwin X server. On this machine I have a virtual Linux box running under VMWare. I set export DISPLAY=xserver:0 on the VM and do xhost +xclient on the cygwin ...
user avatar
0 votes
1 answer
30 views

How I get values from a JSON document in bash?

I want to write a script that finds my unused volumes in AWS. (the 'status' of used volumes is 'in-use'). When I use the aws ec2 describe-volumes --filters Name=status,Values=available I got the next ...
user avatar
1 vote
0 answers
79 views

Issue with Yum update Redhat Linux Amazon EC2

In my scenario , for some reason yum has stopped working in my Amazon EC2 instance, located in the us east -1 region. There seems to be something wrong with the path of the repo metadata, is this ...
user avatar
0 votes
1 answer
31 views

Run an API service on Linux

I'm ssh'ing into an AWS EC2 instance and starting my API. I want the API to keep running and accepting requests. So, is tmux a good way to do this? Or is there a better way? I was under the impression ...
user avatar
0 votes
0 answers
14 views

I am trying to install MySQL on AWS terminal but unfortunately getting issue

I am trying to installing MYSQL on aws but unfortunately not getting activate please help me how can i resolve that? thank u. sudo apt install mysql-server sudo systemctl status mysql error Apr 01 ...
user avatar
0 votes
1 answer
17 views

get instance id for rhel ec2 image in aws

What syntax needs to be used in the following command in the terminal of a RHEL 8 AWS EC2 instance to return only the valid instance id instead of the corrupted value it is currently returning? $ ...
user avatar
  • 5,064
0 votes
0 answers
16 views

Setting up Payload for Kali on AWS Cloud for the First time

I am new to this. I want to setup a payload on kali Linux machine hosted on AWS EC2 Marketplace Cloud. Of course this runs using a static IP. For instance the Static IP is 16.23.89.223 (IPV4 which is ...
user avatar
0 votes
1 answer
37 views

EC2 Redhat - Multiple IP

I have one VPC with two Subnets (SubnetA and SubnetB). My team wants to have multiple IPs assigned to the Instance, each from one subnet. The Instance already have one Private IP (from SubnetA, ...
user avatar
0 votes
0 answers
18 views

Why I can not navigate my Jenkins EC2 instance? This site can’t be reached

I looked at various SO answers My EC2 security groups I also tried to ping,got this PING 54.197.186.213 (54.197.186.243) 56(84) bytes of data. --- 54.197.186.213 ping statistics --- 1 packets ...
user avatar
0 votes
0 answers
12 views

AWS Ubuntu 20.04 memory 4G: not enough memory for running any app?

AWS E2 Ubuntu 20.04 memory 4G: not enough memory for running any app? $ top Tasks: 119 total, 1 running, 118 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, ...
user avatar
  • 101
0 votes
0 answers
25 views

Problem with permissions using git on linux

I'm new to linux I have this installed on linux mint 20: XAMPP installed in opt folder Visual Studio Code Git AWS CLI The issue is that every time I want to do pull origin I have to use sudo, then ...
user avatar
0 votes
0 answers
29 views

Ubuntu 20.04 tcp ack missing seen in tcpdump capture result into half data read by application

We have application server (receiver_machine.601) receiving packets at port 601 from sender (sender_machine.123). Issue : application server is reading packets without any reassembly hence result into ...
user avatar
0 votes
2 answers
124 views

How do I forward all requests from local port to port on my remote Amazon EC2 instance which is using a custom ssh port

I am trying to forward all requests from local port 8888 to port 8888 to my remote Amazon EC2 instance. The only difference is that my EC2 instance is running ssh on custom port 56129. I can ...
user avatar
  • 111
0 votes
2 answers
95 views

How to replicate bios_grub partition?

I have a 60GB AWS volume which I want to shrink to 30GB. The plan is to manually recreate the same partition table (with the only difference being the main partition size), and then use partclone to ...
user avatar
0 votes
1 answer
962 views

dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

I'm trying to set up dnsmasq on AWS Ubuntu 20.4 by following this link. However, I can't seem to get around the error dnsmasq: failed to create listening socket for port 53: Address already in use I'...
user avatar
  • 101
7 votes
3 answers
1k views

What are the benefits of this command line (/usr/bin/awk '{$1=$1};1') instead of pure cat

I am reading the AWS eic_harvest_hostkeys script and I don't understand this line: key=$(/usr/bin/awk '{$1=$1};1' < "${file}") What is the of benefit awk? Isn't key=$(/bin/cat "${...
user avatar
  • 544
0 votes
1 answer
624 views

What is an equivalent of "apt-key add" command in yum

I'm trying to run a command from nginx documentation sudo apt-key add nginx_signing.key, but I think AWS Linux uses Yum so this command fails. What would be an equivalent command to it in Yum?
user avatar
0 votes
1 answer
70 views

can /etc/skel directory's files and directories automatically copied over to a existing user’s like with the newly created ones?

The /etc/skel directory contains files and directories that are automatically copied over to a new user’s when it is created from useradd command. But , when checked with the old existing users , it ...
user avatar
  • 3
0 votes
1 answer
26 views

EC2 Linux 2 / phpmyadmin not found in server

I fallow to this guide for install LAMP: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html To install phpMyAdmin Install the required dependencies. [ec2-user ~]$ sudo ...
user avatar
0 votes
0 answers
14 views

Unable to change permissions inside AWS Docker ubuntu instance

I'm trying to run a discord bot in an AWS ubuntu docker container. My Dockerfile looks like this: FROM ubuntu ADD hydrabot.exe / ADD bot_config.json / ADD client_secrets.json / ADD Cyberbit.ttf / ADD ...
user avatar
  • 101
1 vote
1 answer
23 views

Explain timestamp for file being overwritten

Can it be explained why the file that is being overwritten gets a different timestamp (10 Jan 18:43) during the write, and then when it's done it's all the same timestamp? It was with aws s3 cp ...
user avatar
1 vote
0 answers
80 views

Connect Linux Server to VPN

I've got an server on AWS using Lightsail that uses Linux 4.19/Django OS/app combination. I need to use the Django framework to create a function that will take requests coming into the server, and ...
user avatar
  • 11
0 votes
0 answers
26 views

Run cron job on linux with http user - Elastic Beanstalk

I have a webserver running Symfony and I want to run a periodically, I also use AWS and AWS Elastic Beanstalk There is documentation where explains how to add a cronjob, although as soon as I add the ...
user avatar
0 votes
0 answers
92 views

p-bash: cannot create temp file for here-document: No space left on device

I am facing that ap-bash: cannot create temp file for here-document: No space left on device warning when trying to run basic commands like cd <directory_name> in one of my instances. The weird ...
user avatar
0 votes
1 answer
107 views

Include Variable in S3 CP command for include block

I have a scenario where I want to include some files names in S3 cp command but it keeps failing. Below is my command:- DATE=$(date '+%Y%m%d') /usr/local/bin/aws s3 cp "/test/copy" "s3:/...
user avatar
  • 1
-1 votes
2 answers
158 views

Loop through all files in a directory and upload to s3

How do you apply a command to all files in a directory, such as aws s3 cp [name] s3://[bucketname] where [name] is the name of each file in the directory?
user avatar
  • 99
2 votes
0 answers
160 views

AWS EC2 forwarding google-chrome to Mac Big Sure xquartz: No matching fbConfigs or visuals found; libGL error: failed to load driver: swrast

Attempting to run Chrome google-chrome v96.0.4664.45 from an AWS EC2 Ubuntu 20.04 instance, and redirect display to my Macbook running Big Sur and xquartz v2.8.1. Why am I getting the errors below? ...
user avatar
  • 141
1 vote
1 answer
53 views

AWS Session Manager SSH Web Client: How to use the Alt key for navigation?

When connecting to an EC2 instance (Amazon Linux) via the AWS Systems Manager (SSM) session connect feature, I'm able to successfully connect to my instance using its SSH web client. Unfortunately, I ...
user avatar
0 votes
0 answers
132 views

How to activate a PHP extension (php-memcached from AWS)?

I want to install in Ubuntu 20.04 with PHP 7.4 the AWS ElastiCache Memcached Cluster Client to cache a WordPress website using the W3 Total Cache plugin. For this, I followed the AWS docs, but for ...
user avatar
  • 101
2 votes
0 answers
354 views

How to mount this disk? (EBS)

I restored an EBS volume and attached it to a new EC2 instance. When I lsblk I can see it under the name /dev/nvme1n1. More specifically the output of lsblk is: NAME MAJ:MIN RM SIZE RO TYPE ...
user avatar
0 votes
0 answers
181 views

AWS s3 list only the folder names from the bucket

I have an s3 bucket that contains folders inside it with the date prefixes. For example- bucket_name --> 2021-11-01 --> 2021-11-02 --> 2021-11-03 --> 2021-11-04 ....
user avatar
0 votes
1 answer
107 views

cannot resize disk on aws instance

I tried following the instructions in: Can't resize a partition using resize2fs But nothing seemed to work. The output of lsblk is: [AWS root@archive ~]$ lsblk NAME MAJ:...
user avatar
0 votes
1 answer
87 views

DHCP lease renewal fails on AWS lightsail server

Tuesday the 12th of September 2021 out of the blue a root server of mine running debian hosted in AWS Lightsail crashed. After a reboot it would run fine for approximately 20-60 minutes, after that it ...
user avatar
0 votes
0 answers
12 views

I want to fake a custom curl request to my AWS CDN

I have a CDN working on prod, I have an nginx reverse proxy set up behind my CDN, all I want to do it to fake a request to my CDN, pretending it is from www.mydomain.com so I can see if my CDN talks ...
user avatar
  • 1
-1 votes
1 answer
285 views

Error installing provider "aws": openpgp: signature made by unknown entity

My provider code in init.tf is as below : provider "aws" { shared_credentials_file = "~/.aws/credentials" region = "us-east-1" } Terraform version I ...
user avatar
0 votes
0 answers
20 views

OpenSSH Multiple connections to aws resources being closed with 'Connection to uniqueid.someregion1.elb.amazonaws.com closed by remote host.'

I have a script that generates multiple SSH tunnels to AWS resources via SSH alias that worked some time ago. The connections are still created and authentication on to each is shown successful, but ...
user avatar
0 votes
0 answers
45 views

Remote server instance randomly hits 100% CPU when not logged in

I'm running an AWS (micro) instance with very light usage. Most of the time it sticks at around 2-4% CPU, but sometimes usage spikes up to 100% and hangs there until I reboot the instance. Not sure ...
user avatar
0 votes
0 answers
124 views

The "npm start" doesn't run in Bash

In the EC2 service of AWS, I make a Launch Template with the AMI Amazon Linux 2 64bits (x86), t2.micro for the instance type, and for the User Data I wrote the next scripts: #!/bin/bash sudo yum ...
user avatar
0 votes
2 answers
111 views

How do I set a fqdn which exceeds 65 characters?

I have the requirement for an FQDN which exceeds 65 characters. What's the easiest way to go about this on centos 7? I've been provided with a root domain name which is roughly 30 characters and my ...
user avatar
  • 101
1 vote
0 answers
334 views

bash: python3.7: command not found RHEL

So I have installed python 3.7.11 using this guide: https://tecadmin.net/install-python-3-7-on-centos/ Following the guide worked smoothly but when i do python --version or python3 --version i keep ...
user avatar
  • 111
0 votes
0 answers
32 views

AWS EC2 packet flow order

Similarly to the "Netfilter Packet Flow Diagram", someone knows about a diagram explaining the packet flow in AWS networking order predence? Example: Packet flow evaluation from a EC2 ...
user avatar
1 vote
0 answers
23 views

Trouble using VSFTPD service for ftp server on AWS S3

First post on here so I apologize if its in the wrong place or format. So currently I have a working ftp server on aws linux EC2 and S3 with users that can connect via ftp/ftps/sftp . However the way ...
user avatar
0 votes
0 answers
46 views

FreeBSD on AWS: resizing nvme disk

I keep falling into this needs every now and then to resize a disk on my FreeBSD AWS cloud instances. And I don't know if I can do it without restart. I resized on AWS console from 125 G to 150 G, and ...
user avatar
1 vote
1 answer
127 views

apt errors not installing

I am currently trying to install mysql-server using sudo apt install mysql-server on my Ubuntu 20.04 WSL. However, after entering Y to install, I am hitting the following error: Setting up ec2-...
user avatar
0 votes
0 answers
536 views

AWS lambda function through terraform - Could not unzip uploaded file. Please check your file, then try to upload again

I am using terraform to create lambda function and already have zip package in S3: { RespMetadata: { StatusCode: 400, RequestID: "fa9b0e8b-02a6-4eaf-81ae-bf30fc6a1153" }, ...
user avatar
-2 votes
1 answer
37 views

scp -i /Downloads/class4.pem/ ec2-user@hostip: /home/ec2-user/test [closed]

scp -i /Downloads/class4.pem/ ec2-user@hostip: /home/ec2-user/test i am trying to upload file from local mac to ec 2 ,what i am doing wrong?
user avatar
3 votes
0 answers
349 views

CUDA not available on Deep Learning AMI (DLAMI) running on an Amazon EC2 P2 instance

I am running the Ubuntu 18.04 Deep Learning AMI (DLAMI) on AWS, and am attempting to run it on a p2.xlarge EC2 instance, but CUDA is not available in my Python interpreter. I was assuming that CUDA ...
user avatar
  • 2,552
1 vote
1 answer
87 views

Linux 2 GB RAM AWS EC2 Debian ARM64 instance showing incorrect total memory

I have provisioned a 2 GB RAM AWS EC2 instance and using a ARM64 Debian 10 AMI. When I do top and grep MemTotal /proc/meminfo. I get total memory of 1898 instead of 2048 MB. Even if the reserved ...
user avatar
  • 111
0 votes
0 answers
5 views

CloudGuard Exclusion for AWS Config failure in Regions where Control Tower is not supported

Any suggestions on how I can create CloudGuard Exclusion for AWS Config failure in Regions where Control Tower is not supported.
user avatar
  • 1
0 votes
0 answers
180 views

Facing errors while uploading a file to aws s3 bucket using ansible.aws.aws_s3 module

I am trying to send a file to be stored in aws s3 bucket using ansible aws_s3 module, but getting the following error: The full traceback is: Traceback (most recent call last): File "/root/....
user avatar
  • 1

1
2 3 4 5
8