Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

The Amazon Elastic Compute Cloud (EC2) service is part of the Amazon Web Services cloud platform.

EC2 offers computing power in the cloud, on demand. The 'Elastic' part of the name refers to the ability to scale both up and down, as needed.

6563 questions
2
votes
2 answers

Cron job once in three days

In linux ec2 instance i want to run a cron job 3 Days once to automate a process once in three days as a sudo user in my linux ec2 instance. Can anyone help me out with the cron.
Manikandan Ram
  • 399
  • 2
  • 15
2
votes
1 answer

AWS: Volume Mapping - How to identify which volume need to be resized?

I am running Ubuntu (12.04.4 LTS) in one of AWS ec2 instance. One of it's mountpoint got nearly full: $df -h output is similar to this: /dev/xvdj 50G 45G 2.3G 96% /app I want to increase its size. But when I go in AWS console, it shows…
Atul
  • 396
  • 3
  • 11
2
votes
1 answer

AWS EC2: prevent accidental instance shutdown (similarly to termination protection)

AWS EC2 allows to set up termination protection, so that a user cannot accidentally terminate an instance. I'd like to achieve a similar protection, but for the Stop operation, to avoid shutting down a machine accidentally. Why? We are transitioning…
Alphaaa
  • 117
  • 1
  • 1
  • 8
2
votes
3 answers

Unable to access AWS EC2 Instance after move to new office

My company is moving to a new office. I regularly access AWS EC2 instances via SSH/SFTP from the office. I am unable to ssh to an EC2 instance from the new office from a Linux machine. I CAN ssh to the SAME instance from a windows machine (via…
Morgan Brown
  • 173
  • 2
  • 10
2
votes
0 answers

AWS EC2 : IAM policy to allow inbound SecurityGroup with PORT Range

I want to allow the access to specific ec2 security group to one of the developer. For that I know that we can use something like this : { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1413232782000", …
RKT
  • 21
  • 1
2
votes
2 answers

Struggling to enable SSL on an old EC2 Instance running Apache & Amazon Linux 1

Title Hi. I've been struggling to find out why my EC2 Amazon Linux (1) Instance isn't serving my site at the https:// address, even though I've confirmed that the SSL is configured, per https://www.ssllabs.com/ssltest/. I've scoured the web for…
anonymoose
  • 79
  • 6
2
votes
1 answer

Failed to connect instance with ALB

I'm trying to build a system like this one: I can't connect to the Instance in private public through ALB. I checked my cloudformation code several times and still couldn't find problem. Please help me. AWSTemplateFormatVersion:…
2
votes
1 answer

Can a EC2 in the private subnet sends traffic to the internet through ELB without using NAT gateway/instance?

I would like to build a test platform just like the picture. In order to make it simple, I want to let the private EC2 outbound the responses to the ELB, and through ELB the responses get to the users. Can I do such stuff without NAT gateway or NAT…
Kitakado
  • 53
  • 1
  • 4
2
votes
1 answer

How to measure GB-seconds for AWS EC2

We are researching on the possibilities of moving our app from EC2 based implementation to AWS lambda. We are trying to project how much money we will be saving if we do so. The lambda pricing says it gives 400000 GB-seconds free per month and a…
2
votes
1 answer

Setting up RRAS VPN on separate subnet with AWS

Basic Layout: VPC has IP range 10.0.0.0/16 2 EC2s on subnet 10.0.0.0/24 First with RRAS providing IP addresses to VPN clients (range 10.0.4.0/24) Second just a test machine to receive pings Other subnets unrelated to this question 10.0.1.0/24,…
2
votes
1 answer

AWS system manager : Verify that the IAM instance profile attached to the instance includes the required permissions

I am trying to access an ec2 instance using AWS systems manager for that I've created a role attached to the following policies. AmazonEC2RoleforSSM AmazonSSMAutomationApproverAccess AmazonSSMFullAccess AmazonSSMAutomationRole And the role is…
2
votes
1 answer

This site can’t provide a secure connection when deploying node app on aws ec2

i have simple nodejs app running on ec2 instance, when tried to access the app from browser using "ec2-18-223-0-201.us-east-2.compute.amazonaws.com:4545 refused to connect." it give me This site can’t provide a secure connection when trying to…
M1M6
  • 121
  • 1
  • 2
2
votes
0 answers

When using hotspot Wi-Fi, I can't SSH into my EC2 Instance

I've never had trouble with this until I started using hotspot Wi-Fi instead of my normal Wi-Fi. I always get connection closed by xx.xxx.xxx.xx when trying to SSH into my Amazon instance: jeff@jeff-Inspiron-5749:~$ ssh -v -i /path/to/key.pem…
2
votes
3 answers

AWS Account: Can't log in due to email clash

I have been given an AWS account and the task to update the Billing and Account information, such as email and password. Surely, I have done as required and updated the email address of the amazon account from abc@example.com to xyz@example.com, as…
RunOrVeith
  • 121
  • 3
2
votes
2 answers

`sudo` commands in cloud-init are SLOW! How to fix?

I am trying to bootstrap a Centos7 EC2 instance (ami-02eac2c0129f6376b) with bash user-data. Because it runs as root and I need to create a lot of things as the centos user, I use sudo -Hu centos many times. Each call introduces a 25 second…
Bruno Bronosky
  • 4,529
  • 3
  • 26
  • 34