Newest 'amazon-web-services' Questions

Q&A for system and network administrators

Blender CPU rendering on AWS [on hold]

We are currently using solo server on Azure for CPU rendering our images for our app. It's expansive and also users are waiting in queues. I would like to switch to AWS because of scalability and also ...

Nginx Bad Gateway after altering project structure

I have a django app hosted on AWS and have been cleaning up some aspects of the project structure. One of these cleanups involved removing a parent folder in the root directory and putting my appspec....

AWS Elasticbean Beanstalk eb ssh using private DNS names

I'm trying to use the eb cli utility ( version 3.8.7 ) to try to SSH to my ElasticBeanstalk managed instances. The instances have only private ip addresses and I'm connected using a VPN to the VPC. ...

SPF ip4 record for servers in auto scaling group?

I have a set of servers in an ASG behind a load balancer on AWS that are all capable of sending emails. The problem is I need to authorize an IP in our DNS SPF record in order to keep emails from ...

Amazon load balancing with my own domain

I am trying to use virtual servers (instances) on Amazon EC2. I can assign (elastic) IP addresses to those instances and then assign my domain name to that IP. However, I plan to use a load ...

Prevent SSH Access to EC2-instance

I am setting up EC-2 RHEL instance for my users to allow file transfer using filezilla or WinScp.I have made accounts for them.Not any of them is added in sudoers. How can I prevent ssh access to any ...

Configuring WAF + ALB to Prevent SQL Injection

I'm trying to configure an Amazon ALB (Application Load Balancer, not "classic" ELB) to use Web Application Firewall (WAF) to reject https requests that contain potential XSS or SQL Injection payloads....

AWS VPC routing table with both Internet Gateway and NAT Gateway

I have a single VPC in Amazon Web Services with the subnet 172.31.0.0/16. I have created an EC2 instance in this subnet and given it a public Elastic IP. There is an Internet Gateway on this VPC. So, ...

AWS Scheduled task with data

I've currently got a function in lambda that when invoked sends a message to a user who invoked it. 2 days later I would like to send a follow up message. All the code to send the actual messaging ...

Connecting to AWS EC2 Windows Nano Server from OS X

I'm trying to connect to a newly spun up AWS EC2 Windows Nano Server from my OS X machine. I'm running powershell from OSX and am following these instructions PS /Users/alex/Projects> $ip = "ec2-...

Will EC2 server instance autoscale

Say I have a video streaming app on a ec2 medium server instance, and if concurrent users are too many, will the ec2 automatically provide additional resources for handle any number of users? if not, ...

access to custom cloudwatch metrics using lambda+boto3?

I have a custom metrics, and I can get data from bash: aws cloudwatch get-metric-statistics --namespace System/Detail/Linux \ --metric-name LoadAverage1Min --start-time 2017-01-04T00:00:00 \ --end-...

How does Nginx pick a site to serve on an instance with 2 sites?

I replicated an EC2 instance on AWS because the owner lost the pem file and couldn't SSH in. It has two sites configured, but when I access this server via its public DNS, it serves me one of the ...

Is it possible to determine the type of instance for an AWS RDS MySQL instance from within MySQL?

I would like to know if it is possible for me to determine the instance type and storage available from the MySQL command line while connected to the RDS server. I have a project where the database ...

AWS EC2 setup and DNS

I just created a new site within EC2, the site works fine if I go to it's public IP. However I am setting up this site as a subdomain for another site, e.g. subdomain.mymarketingcompany.com. The main ...

Auto Scaling AWS Lightsail

The docs for lightsail suggest that it can be connected to most AWS services. Is it possible to have a load balancer distribute to different lightsail instances and to automatically launch new ...

Can I get the backup of my aws instance?

Does aws store autoback up of my server? Can I get get backup of my system before or restore my instance to last week or 2-3 days back state? I my aws server got hacked and no data available in ...

How to make nginx serve a public ip [duplicate]

Background I'm sick of slack being too expensive, so I decided to replace it with mattermost. I got an AWS ubuntu box with a public IP, and followed the mattermost installation instructions (the main ...

CloudFront: using default origin path

I have a heroku app myapp.heroku.com Looking to make a distribution to point to myapp.heroku.com/project I set the Origin Domain Name to myapp.heroku.com Origin Path to /project my static assets ...

cant connect to aws linux instance via vnc after creating image

I created an image of an instance of my client which is a linux system with oracle and vnc installed. which is an r3.2xlarge instance I created it using this window and I am now not able to connect ...

EC2 instance sends mail for every succesful or failed cron job - how to stop that?

We receive hundreds of mails every day from the cron deamon to root@company.com. How can I stop that? Those mails refer to custom cron jobs set up by us - as well as others set up by AWS. The mail ...

Can we use same security group in launch configuration and classic load balancer?

I am creating a (non default ) vpc and and associate a (non default) security group ( let say sg-x) with this vpc and set below inbound rules. outbound rules allowed all traffic. in above picture sg-...

How do I pass parameters into a nested stack in Amazon CloudFormation?

I'm using CloudFormation to manage an Amazon API Gateway stack, and trying to (re)use a nested stack to add an OPTIONS method to each of my HTTP endpoint methods so I can respond with CORS headers. ...

AWS GetConsoleScreenshot() returns a logon screen image

I'm trying to capture the screenshot of my Windows instances on AWS. I've setup the windows machine to auto-login. The screenshot returns the actual desktop image until i make a rdp connection to it. ...

aws billing alerts can not be disabled?

I have a free tier aws account, in Billing preferences. I see in the second option that once enabled cannot be disabled, Why? also there is a new budget. what's the difference to alerts?

Packer - AWS Windows 2016 SysPrep returns exit code 1

When attempting to SysPrep an AWS Windows Server 2016 instance using Packer the following error is thrown: Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1. Allowed exit codes ...

Do i need to run the Django server every time I want to access the website?

Specs: AWS EC2 Micro instance Latest Django, Python3, nginx I've just created a Django project in a virtualenv. Everything's mapped out - nginx is catching the URLs and directing them to the correct ...

Attach EC2 to ELB Based on Load

I have an ELB with two instances attached to it all the time and running. I have a third EC2 instance which is in the stopped state. I DO NOT WANT TO USE Autoscaling. Whenever load increases more than ...

AWS route53 second level SSL cert wildcard

I use aws route53 with a wildcard SSL certificate: the certificate allows: *.domain.com In order to allow users to access both: "domain.com" and "www.domain.com" I have to setup individual records ...

recreate system reserve partition after converting GPT to MBR

I have a really odd situation and it's kind of hard to explain so I will start off with the intended end goal. Purpose: Migrate a Hyper-V virtual machine to AWS EC2 Problem: After meeting all of ...

AWS VPN: Can't redirect traffic from AWS to specific IP through VPN

I've a a windows machine running on AWS. I managed to create a VPN between Amazon VPC and my office, I can ping devices from one side to the other. What I need to do is redirect the traffic from VPC ...

Accessing private instances using VPN

Is it possible to access private resources in a VPC via a VPN? I looked at the solution using bastion hosts but I prefer a solution where I use a VPN client, enter my credentials and have full access ...

How to configure Puma for Amazon EC2?

Using Amazon Web Services (AWS), I created an Elastic Beanstalk app with the latest platform version of Amazon Linux running Ruby (Puma). Should I add a Puma configuration file (such as config/puma....

Server not accessible on eth1 (additional network interface) CentOS 7 on AWS EC2

I have created a CentOS 7 instance on EC2, installed my required application-ware, assigned 1 Elastic IP to default network interface (eth0) and it is all accessible. Now I created another Network ...

How to initiate AWS import export disk service

I'm looking to use AWS import export disk to ship 2TB of data to AWS on an encrypted USB drive. For this volume of data it doesn't justify having a snowball device delivered to the office. I'm in a ...

Setup IPSec tunnel on AWS [closed]

So I need to setup IPSec tunnel. I got half a tunnel set up by another party and they gave me Phase 1 & 2 details. How can I easily setup the other part of the tunnel using a VPS server, ideally ...

Amazon SES instead of Gmail for company email

My company has decided to move away from G Suite to reduce costs, so I'm in charge of providing alternatives. They are accustomed to using Gmail, and don't handle many emails per days (probably ...

How to add AWS ELB access logs to logstash with amazon S3 [on hold]

I'm using an ELK stack for server monitoring. My application's access logs which are from AWS ELB are stored in AWS S3.How to add credentials of my aws s3 in logstash and where. Please provide me the ...

Automatically create CloudWatch Alarms for Autoscaling instances

We use some basic CloudWatch alarms on our EC2 instances to perform notification via SNS of high CPU, etc. Is there a good way to automatically apply our standard alarm configuration to new EC2 ...

How to best setup a simple route between two datacenters using dns, nat, and vpn?

The goal: Setup two routes with DNS records, between two data centers with 1 behind a NAT. Where data center Alpha can reach any IP in Beta, but data center Beta can only reach Alpha by going though ...

Amazon Elastic Beanstalk's latest platform version is outdated

When creating my Elastic Beanstalk application, I selected the latest platform version of Amazon Linux running Ruby (Puma). But, it has an outdated version (compared to the current stable version) of ...

VPN from AWS into Office

I'm trying to build a VPN gateway from my VPC -> into the office network. I've successfully set up a VPN client on one of my EC2 instances (let's name it "gateway") and now it has VPN virtual ...

Upload to S3 bucket slows over time

I'm part way through uploading about 200,000 files (each is ~1MB max) to an S3 bucket from an EC2 instance (both in Europe West). From monitoring the EC2 with CloudWatch (looking at the NetworkOut ...

Copy s3 contents of bucket, including all versions

I have a few S3 buckets that I want to hand access over to another organisation, as am handing over an existing hosting client to them. After looking through the docs, if I no longer want to be ...

How to use AWS Batch?

I am trying to use the new AWS Batch feature: https://aws.amazon.com/batch/ I cannot get even the simplest Batch job to run (using the demo which is "echo hello world"). The job just keeps getting ...

Possible DOS Attack or computer “freak out”

I am a dev-ops web developer with a site running two ec2.smalls behind a load balancer on AWS. Recently we saw 3-4 requests per second take down our clients site. The site was down and would not ...

DynamoDB Streams with Lambda, how to process related messages in order?

I want to use DynamoDB Streams + AWS Lambda to process chat messages. Messages regarding the same conversation user_idX:user_idY (a room) must be processed in order. Global ordering is not important. ...

What secure and good options are there for hosting own private mail server? [closed]

So I want to set up a private mail server for me to use (Aprox 6 emails in total with maybe sending an average of 5 emails a day from each account and receiving 20+ emails a day on each account). I am ...

Strongswan issue with source IP

I have established a VPN connection between a region in AWS and a datacenter implemented with OpenStack: |---AWS------------------| |-----OpenStack----------| Private IP EIP ...

'101: Network is unreachable' error when I ran sudo apt-get update on Ubuntu 16.04

I launched an EC2 Ubuntu 16.04 server. It is contained in a VPC which is connected to a private VPN. To SSH into the server, you have to connect to that VPN which is also on AWS before having access ...
Translating... 0%