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
1 answer
10 views

Cannot install Microsoft SQL Server to Ubuntu AWS /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.30' not found

I am trying to install SQL server onto a Ubuntu machine on AWS and it has been nothing but trouble. I get stuck on the last step, configuring the server after selecting edition and setting an ...
0 votes
0 answers
7 views

AWS Cloudformation provisioning EC2s with FIPS-140 working but Secretsmanager is not

I have been working on updating our CF Stack across multiple applications to be FIPS-140 enabled; which is working fine for enabling FIPS on the AMI bake jobs. However, once the application is ...
0 votes
0 answers
13 views

Keyboard layout change on Amazon Linux 2 with MATE connected with windows RDP client

I'm connecting an AWS EC2 Linux 2 instance via windows RDP using the MATE interface. However, I cannot change the keyboard layout. I have tried these: Using preferences I added my layout and removed ...
0 votes
0 answers
27 views

"ERR_CONNECTION_TIMED_OUT" error to launch a webserver with private IP

I need to create an EC2 instance (Linux web server) with a private IP address (10.x.x.x) that can be accessible via Corporate VPN only. I created a private VPC CIDR 10.10.10.0/24, and created an EC2 ...
  • 11
0 votes
0 answers
21 views

How to achieve FIPS 140-2 with AWS CloudFormation & Packer

I am following this guide for AWS FIPS: https://aws.amazon.com/compliance/fips/ I have added successfully been able to FIPS on AWS AMI EC2 for ASG using the following guide in CloudFormation: https://...
1 vote
0 answers
13 views

How can I send custom commands to a process when my EC2 instance gets "shutdown"?

I'm hosting a Minecraft server on an EC2 instance & I'm also using Google Cloud Functions to stop the instance every night via the AWS SDK. Every time the instance gets stopped via my cloud ...
0 votes
2 answers
33 views

Within an AWS CLI command, add the ISO 8601 datetime

As a fun side project, I'm building a serverless Todo application on AWS. I do a lot in the terminal, but my knowledge is basic. The command to add something into my DynamoDB table via the AWS CLI (v2....
  • 289
1 vote
1 answer
27 views

How to hibernate AWS EC2 instance from inside it?

I have an EC2 instance (Amazon Linux AMI 2018.03) which I can hibernate from outside it — using the console, or AWS CLI. Is there any way to hibernate it by running a command inside it? Some Linux ...
0 votes
1 answer
75 views

aws workspace client: Archlinux: Not able to copy paste in and out of it. Where as in ubuntu I am able to copy paste in and out

I have installed same version of aws workspace on an archlinux with gnome and also on a pc with ubuntu In the unbuntu pc I am able to copy paste text in and out of the aws workspace where as in the ...
  • 277
0 votes
1 answer
23 views

How to declare array from STDOUT in Buildspec, Codebuild, AWS

I'm having a problem with declaring array from STDOUT in Buildspec, which is part of Codebuild in AWS. Buildspec using Pure Bourne Shell, so I can't use this line in code declare -a available_envs=($(...
0 votes
1 answer
81 views

AWS ec2 instance public IP vs private IP usage difference

After quick standing up of AWS ec2 instance of linux platform, I tried to connect to it via ssh client (e.g. PuTTY) from outside of AWS. By looking at ec2 configuration, it has public IPv address and ...
  • 845
1 vote
2 answers
69 views

I accidentally locked my linux root user and now I can't login in

I accidentally added my root user to my sftp group using command: sudo usermod -a -G sftp ubuntu And now everytime I tried to login my linux server it shows this error: I do not have any other users ...
0 votes
0 answers
23 views

Why does my EC2 AWS instance receive timeouts sending mails via postfix?

I am trying to set up a postfix mailserver for outgoing mails on my EC2 instance. Basically i do not understand why the server times out pinging external hosts: Postfix is set up correctly and with a ...
0 votes
0 answers
11 views

AWS DNS Problems

So I use AWS free tier for some testing and I have A LOT of problems with DNS servers and setting it up. Problem: Since I wanna use AWS free tier for Minecraft test server where I test plugins, I get ...
0 votes
1 answer
34 views

Cannot connect to other instances within an AWS LAN

My client installed several AWS instances, all in the same region/datacenter. My task is to install a Redis and a Postgresql instance on one of the machines and make the data store/database accessible ...
2 votes
3 answers
520 views

Bash variable substitution with json string as variable within larger json object

I am having trouble getting the AWS cli working nicely with a bash variable. The AWS cli command takes in a JSON string as a parameter. However, within this json string I am using a variable $...
0 votes
1 answer
449 views

environment variable isn't read in bash script

I'm deploying a nodejs app to a EC2 instance on AWS through codecommit/codebuild/codedeploy. In my appspec.yml file for codedeploy, I have a script called application_start.sh, which is called when ...
  • 121
0 votes
0 answers
38 views

How to not use cacert in curl again and again

our certificate expires then we get new certificate we uploaded that certificate though iam server certificates. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html ...
0 votes
0 answers
80 views

How to compare two servers for performance tuning?

I have two web servers (AWS instances) with exact same configuration of apache and php-fpm. Both of them are behind a load-balancer. One server is able to serve more request as compared to the other ...
  • 205
0 votes
0 answers
58 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 ...
0 votes
1 answer
1k 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 ...
1 vote
0 answers
511 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 ...
  • 11
0 votes
1 answer
77 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 ...
0 votes
0 answers
30 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 ...
0 votes
1 answer
63 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? $ ...
  • 5,179
0 votes
0 answers
33 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 ...
0 votes
1 answer
65 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, ...
0 votes
0 answers
51 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 ...
0 votes
0 answers
24 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, ...
  • 101
0 votes
0 answers
30 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 ...
0 votes
0 answers
81 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 ...
0 votes
2 answers
669 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 ...
  • 111
0 votes
2 answers
218 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 ...
0 votes
1 answer
3k 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'...
  • 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 "${...
  • 589
0 votes
1 answer
2k 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?
0 votes
1 answer
279 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 ...
  • 3
0 votes
1 answer
257 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 ...
0 votes
0 answers
51 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 ...
  • 101
1 vote
1 answer
24 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 ...
1 vote
0 answers
211 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 ...
  • 11
0 votes
0 answers
63 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 ...
0 votes
0 answers
170 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 ...
0 votes
1 answer
237 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:/...
  • 1
-1 votes
2 answers
561 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?
  • 109
2 votes
0 answers
238 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? ...
  • 141
1 vote
1 answer
80 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 ...
0 votes
0 answers
247 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 ...
  • 101
2 votes
2 answers
754 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 ...
  • 933
0 votes
0 answers
475 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 ....

1
2 3 4 5
8