Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-web-services]

Amazon Web Services (AWS) delivers a set of services that together form a reliable, scalable, and inexpensive computing platform "in the cloud". If you have a question about a specific web service, consider asking on its tag, e.g., amazon-ec2.

1
vote
1answer
17 views

ssh-copy-id doesn't work with .pem files

I am trying to copy an SSH public key on several EC2 instances. Reading the ssh-copy-id man page, when you pass the key file, the program adds .pub extension if it missing. AWS keys are generated ...
0
votes
1answer
12 views

Is it possible to set an AWS autoscaling policy for Kubernetes nodes using kops?

I've setup a private K8s cluster using kops on AWS, and I'd like to be able to autoscale the nodes based on CPU use. I've read that this is possible with GCE, but is it possible with AWS?
0
votes
0answers
7 views

Use haproxy as egress filter proxies for all outbound connections on AWS VPC

I'm looking into using haproxy as egress filter proxies for all outbound connections on AWS VPC, but not using the http_proxy mode, as we will need to support other protocols as well. haproxy.cfg ...
-2
votes
0answers
17 views

How can i perform Server to Server data migration preserving file structure and permissions. Step by step process please?

Hi All im looking forward to move all the files from an 3rd party web-server and setup an ftp while preserving File structure and permissions. Can some one help me with this process? I did try tar ...
-1
votes
1answer
26 views

How can I provide software for userdata?

I've got a userdata file that uses the aws and jq commands, but since these aren't ubuntu 18.04 AMI. How can I make software available for userdata? I tried making a new AMI with those installed. It ...
0
votes
0answers
11 views

How to change Python version in AWS Elastic-beanstalk Node Js environment?

I have a Node js application in elastic-beanstalk and i am running python2. How can I change my python version to 3? I have installed python 3 through awsebcli and installed python3, How can I point ...
-1
votes
0answers
9 views

Autoscaling in dynamodb though cloud formation doesn't fallback after manual intervention

I have autoscaling configured in one of my dynamoDB table which is deployed through cloudformation. Once I have disabled the autoscaling though the console. Now when i deploy (update) the autoscaling ...
0
votes
1answer
21 views

Use Amazon repo in Centos 7

I set up a Centos 7 instance on EC2 and i need to mount a couple of EFS filesystems. Because Centos 7 and Amazon Linux 2 are pretty similar, I am wondering if could be possible to add Amazon Linux ...
0
votes
0answers
15 views

How to translate old 'ip' commands to netplan config for Ubuntu 18.04 on AWS EC2

Previously I had a script to apply my second static IP and route on the default NIC on boot like so: ip addr del 192.168.123.123/32 dev ens5 ip route add 172.25.65.0/24 dev ens5 src 192.168.123.123/...
2
votes
1answer
15 views

How can I configure an Azure VM to act as a proxy for connecting to SQL Database over a Service Endpoint?

Currently, Azure does not allow for SQL Databases to be accessed through a Service Endpoint over a VPN Gateway. My idea to circumvent this limitation is to set up an Azure VM to function as a proxy so ...
0
votes
1answer
27 views

Use web-based database administration software hosted on an AWS EC2 instance?

My question is the following: is there any way to host PostgreSQL pgAdmin4 on an AWS EC2 instance, and access the GUI remotely? I found this page here: https://docs.aws.amazon.com/AmazonRDS/latest/...
1
vote
0answers
21 views

CISCO-IOS-XE-TUNNEL YANG MODEL ACCESS THROUGH RESTCONF ON POSTMAN

Recently, I began working with RESTCONF on Postman. Today I was trying to send a HTTP request via postman to the IOS-XE-Tunnel using the path below: https://XXX:XXX/restconf/data/Cisco-IOS-XE-tunnel:...
0
votes
1answer
21 views

How to open ports in amazon (AWS) Lightsail?

I try to open a port in my instance of AWS Lightsail to be able to raise an application in NodeJs. Enable the Firewall rules as seen in the image. enter image description here but when I run nmap -...
5
votes
2answers
1k views

Unable to login to ec2 instance after running “sudo chmod 2770 /”

I am new to linux and AWS. I ran sudo chmod 2770 / command on my ec2 instance and after that I was getting Permission denied on everything I was doing(even using ls or cd) So I exited my ...
1
vote
1answer
26 views

ALB for multiple auto scaling group

I have 3 instances as staging for the frontend, backend, and blockchain. I'd like to create an autoscaling group for both three instances separately. There will be 3 autoscaling groups. Is there ...
2
votes
1answer
19 views

AWS Instances breeding and dying for no apparent reason

This has happened a couple of times since we moved our cluster project from Google to AWS. We have an EFS volume that's mounted on a load-balanced cluster in a Beanstalk project. I will be in the ...
2
votes
1answer
29 views

AWS file system ID for disk on 'trial' server

I created a free trial AWS server a year ago, but am only getting around to using it and going through some of the tutorials. I'm trying to set up an initial httpd web server for practice and their ...
4
votes
2answers
73 views

Amazon EC2 instance is getting spammed with different PHP filenames

Our server has been attacked recently and looks something like the following in the logs: [Mon Feb 18 09:18:43 2019] [IP_ADDRESS] script '/var/www/ynm.php' not found or unable to stat [Mon Feb 18 09:...
1
vote
1answer
25 views

How to setup python3, numpy, nltk in my elastic-beanstalk?

I have deployed my project in elastic-beanstack, I need to setup python3, numpy and nltk environment to it. We have a python code with python3, numpy and nltk, We are interacting to python code with ...
0
votes
3answers
26 views

Can't access EC2 instance, but not NLB in other VPC

I've recently started the process of switching from AWS ELB to NLB, and I'm facing some connectivity issues. We have 2 VPCs. In VPC1, both EC2 database servers, old ELB and NLB is located. In VPC2, ...
3
votes
0answers
18 views

IAM policy: Allow user to List only some instances/projects/resources

I created a new CodeStar project for a local user group activity and created some project members. Using the AWS CodeStar dashboard I created a member with the policy that allows them to be a ...
3
votes
1answer
53 views

AWS Permissions: Lambda access Denied to S3

I have created a Lambda Python function through AWS Cloud 9 but have hit an issue when trying to write to an S3 bucket from the Lambda Function. When I test in Cloud 9 the Python codes runs fine and ...
0
votes
1answer
30 views

Handling traffic spikes for a medium scale ecommerce application

Let me first briefly describe our stack. Single EC2 instance with 4 vCPU and 16 GB RAM running Ubuntu [m4.xlarge] Single RDS instance with 2 vCPU and 8 GB RAM running MySQL 8 [db.m5.large] We are ...
0
votes
0answers
26 views

How can I redirect root domain requests to www for aws elasticbeanstalk?

I have an rails application running on AWS with their elasticbeanstalk service (which uses puma as its webserver). Currently, visiting my domain https://example.com never resolves, however https://...
1
vote
0answers
32 views

Serverless DDNS in an “AWS Like” cloud?

I am on a closed network, usin a derivative of AWS. I have one VPC in 2 Availability Zones, with a small range of IPs. Many of my VMs have dynamically assigned IPs. Right now, my Puppet Master is in ...
2
votes
1answer
25 views

Server Behind Load Balancer Says Status 200 But Client Says Connection Failed

I have an AWS setup that is not being reliable and I'm trying to figure out why. For background - the site is new and just being tested among our team, but it has persistent problems for some of our ...
1
vote
0answers
19 views

Status of “No data received from the instance” in Beanstalk. Cannot SSH or FTP

I have a WordPress install on Beanstalk with EC2 and RDS. I'm very new to AWS. Yesterday the site became unresponsive and had a status of 'No data received from the instance'. When I try to request ...
1
vote
1answer
26 views

VPN with DHCP forwarding on AWS

I'm interested in setting up a VPN server on Amazon EC2 to act as a VPN server. It's important that clients connecting to the VPN get an IP from the AWS VPC so that we can establish connectivity to ...
3
votes
1answer
35 views

Amazon AWS localhost error: channel 3: open failed: connect failed: Connection refused

I have just made an AWS ubuntu instance with a private key. I managed to connect to it through ssh, but I can't connect to it in web browser with localhost. I'm connecting through a windows computer ...
0
votes
1answer
27 views

AWS EC2 - Get access logs of AWS EC2 Instance logged in by RDP

I have created a windows instance and got .rdp file. How can i get the access logs i.e WHO and WHEN the instance is logged into with this .rdp file. Also, how much time was it used. Need help with the ...
0
votes
0answers
22 views

AWS RDS instance 100% CPU utilisation for PostgreSQL for normal usage

am using aws rds Postgres 9.4. I am facing an issue of very high CPU utilization. Instance type is t2.xlarge (16 gb ram). All the time I can see very low ram usage i.e. 14 gb free, 15 gb free. But ...
0
votes
0answers
8 views

Elastic beanstalk nodejs.log shows wrong node.js version

My Elastic Beanstalk web server app reports as having Node v. 10.15.0: But in all the logs (and if I ssh onto the machine) the node version appears to be 6.16.0: -------------------------------------...
0
votes
2answers
23 views

Rails SSL running puma and EC2 AWS

Specs: Rails 4.2.4, Ruby 2.1.9, running puma, EC2 instance in production mode I have an SSL certificate that I want to install on my server but using techniques like this one yields no results ...
0
votes
0answers
31 views

Add Subdomain with different IP on Google Domains

I am hosting a site on Github pages that uses a custom domain from Google Domains. My custom resource records look like this. Note that although the data for the CNAME is "mygithubusername.github.io"...
0
votes
1answer
19 views

Configuring Lightsail bitnami vsftpd passive

I've spent a really long time on this and I had it working last night. Came to work this morning and it has stopped working (I am the only IT support and no changes were made by me). I have ...
-1
votes
2answers
38 views

SSH connect to a server: “Permission denied (publickey).”

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg: Permission denied (publickey). On my local machine, under ~/.ssh/config I have this set: Host ...
0
votes
1answer
21 views

Cannot connect to my remote server via ssh

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg: Load key "/home/potatouser/.ssh/dashboard.pub": invalid format Permission denied (publickey). On my ...
1
vote
1answer
29 views

TCP port mapping / proxy with AWS

I have several services running on a single AWS instance on different ports: rabbit :5672 rabbitMQ :15672 elastic :9200 a few others I have a jumpbox on AWS which handles all incoming requests. I ...
-2
votes
0answers
13 views

Cloud-based setup for making playlist of existing videos into live stream [closed]

I am trying to figure out the architecture for a cloud-based web application where I need to be able to do the following: Upload videos and transcode them to a very small resolution (240x80) with ...
0
votes
1answer
7 views

Pure-FTP Server Connection Issues

I have a web server (CentOS Web Panel) running in an AWS EC2 Instance. I am connecting a bespoke application to the server which connects using MySQL and FTP. I am having issues connecting to the ...
3
votes
1answer
22 views

AWS S3: How to change an HTTP Header of a single object in a S3 bucket via CLI?

As the question implies I want to change/set some HTTP headers for a single object in a S3 bucket via CLI. This is what I have tried so far: aws s3 sync --delete --acl public-read --cache-control \ ...
0
votes
0answers
12 views

Can't call IAM functions with temporary credentials

When calling any IAM functions using the aws cli with temporary credentials (for example, calling list-attached-role-policies), I get the following error: An error occurred (InvalidClientTokenId) ...
-1
votes
0answers
20 views

Issue with the signed URL for CloudFront in AWS

I enabled signed URL in CloudFront. And tried to access S3 bucket files using signed URL which connects to this URL:'https://domain_of_cloudfront/file_name' and able to access individual objects from ...
0
votes
0answers
39 views

AliasMatch not working in AWS EC2 Apache2 server conf

I have a site running on a locally hosted server configured with Apache2 that uses this AliasMatch rule in the .conf file: AliasMatch ^/media/(?!video_uploads)(.*)$ /var/www/proj/media/$2 This ...
0
votes
1answer
12 views

Postfix + Dovecot + AWS + CloudFlare + SquirrelMail Unable to receive messages

Set this thing up awhile ago, and it sends messages Just fine, However I wanted to start being able to receive messages. Iv tried telneting into port 25, and nothing. dig dzwxgames.com mx: ...
0
votes
0answers
7 views

Is it possible to get the cloud9 ide private key to debug: “AWS Cloud9 couldn't connect to SSH server ubuntu@ip”

I have an ec2 instance that I can ssh into, and a docker instance inside it that cloud9 ide can't connect to when I try to create an SSH environment created with the docker sample instructions. I've ...
0
votes
2answers
77 views

Unable to ping the remote user via ansible

I'm trying to connect my host machine which is of Ubuntu (ctrlnode is user) to remote machine which is of RHEL (rhelnode1 is user) on AWS and when I try to connect my a user (rhelnode1) on remote ...
0
votes
0answers
8 views

Terraform: Unable to Assign Remote State Value to a Variable in a Module Declaration

I have a state file handling VPC declarations, here is the snippet for the subnets: resource "aws_subnet" "stage-1a" { availability_zone = "us-east-1a" vpc_id = "${aws_vpc....
0
votes
0answers
21 views

Kafka multiple listeners

Initial apologies for the long post (this is also on superuser as i wasn't sure the best place for this https://superuser.com/questions/1404421/kafka-multiple-listeners so let me know if one needs ...
1
vote
1answer
36 views

updating SSH version 7.4pl to 7.5 on Amazon linux 2

I got one error while scanning My Amazon linux 2 Ec2 instance OpenSSH < 7.5 22 / tcp / ssh Medium 5.0 The vulnerability is not included in the NVD OpenSSH < 7.6 22 / tcp / ssh CVE-2017-15906 ...