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
12
votes
1 answer

Why do EC2 T2 instances sometimes start with zero CPU Credits

Can anyone explain why when I launch a new T2.micro instance, it occasionally (perhaps 1 in 50) starts with a CPU credit balance of zero, instead of the 30 it is meant to have? I've attached screenshots of the CPU credit balances from two machines I…
12
votes
1 answer

Elastic Beanstalk S3 access via .ebextensions

I have a simple file in my .ebextensions folder: 00-myconfig.config Resources: AWSEBAutoScalingGroup: Metadata: AWS::CloudFormation::Authentication: S3Access: type: S3 …
12
votes
4 answers

Is it dangerous to reveal my EC2 instance ID?

In Stack Overflow answers (like this), I often take screenshots which include Instance ID's belonging to me. Is it a bad idea to reveal these?
Undo
  • 311
  • 6
  • 19
12
votes
5 answers

Correctly setting the hostname - Fedora 20 on Amazon EC2

Context I have a Fedora 20 cloud image running on Amazon EC2 (henceforth called the "instance"). And I have some uncertainty about persistently setting its hostname. Goal In this case, let's say I want to set the instance's hostname to…
David Tonhofer
  • 960
  • 1
  • 10
  • 31
12
votes
2 answers

Can't find my AWS shared AMI when trying to share with specific account

I followed the instructions to share my AMI with a specific account here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html I made sure the account number is correct, and when I log into the target account, I'm unable to…
Fragsworth
  • 1,181
  • 2
  • 12
  • 14
12
votes
2 answers

How to persist iptables configuration on Amazon EC2 VPC NAT Ami?

I have a small script like this to configure the iptables: #!/bin/bash PRE_STR="iptables -t nat -A PREROUTING -p tcp -j DNAT" FOR_STR="iptables -A FORWARD -p tcp -j ACCEPT" ##################################### #…
d0x
  • 223
  • 1
  • 2
  • 8
12
votes
6 answers

PHP FPM gives permission denied?

I read several entries on why PHP-FPM might give me permission denied but I can not solve it. The error logs read like: 2013/04/20 23:33:28 [crit] 15479#0: *6 open() "/var/lib/nginx/tmp/fastcgi /2/00/0000000002" failed (13: Permission denied)…
edelwater
  • 487
  • 1
  • 4
  • 12
12
votes
5 answers

If I shut down Amazon EC2 instance then start it again, will everything be ok?

I have a web site that runs on an Amazon EC2 Linux-based instance, and is mapped to a regular domain name (x.com). This site talks to a database on a second EC2 instance. I need to shut down this instance and increase the computing power behind…
Eric
  • 1,127
  • 3
  • 13
  • 24
12
votes
2 answers

Apache / httpd not starting automatically on boot

I have apache2 installed on Amazon Linux AMI release 2012.03. I'm able to start it manually just fine, without any errors using /etc/init.d/httpd start. However, it doesn't start automatically when the machine is booted up. It appears that…
Mike Cialowicz
  • 283
  • 1
  • 3
  • 10
12
votes
5 answers

EC2 Auto-Scaling with Spot and On-Demand Instances?

I'm looking to optimize the cost of our auto-scaling EC2 groups by having them launch spot instances instead of on-demand instances. What I really want is to be able to keep some servers in the group as on-demand instances, regardless of what…
platforms
  • 1,118
  • 10
  • 23
12
votes
8 answers

How to schedule automatic (daily) snapshots of AWS EC2 Windows Instance?

I have some Windows servers hosted on Amazon EC2. Some run Windows Server 2003 and other run Windows Server 2008. These are EBS-backed instances. Most of the instances also have some additional EBS-volumes attached. We want to schedule a daily…
Stanley
  • 365
  • 2
  • 4
  • 14
12
votes
2 answers

Godaddy vs. Route53 for DNS

I have my website set up as an EC2 instance and my DNS is currently Godaddy. I'm considering switching to Amazon AWS Route53 for DNS. The one thing I noticed however is that Route53 charges monthly fees but I never get any bills from Godaddy.…
12
votes
2 answers

EC2 Windows password recover

I can't get the password from the AWS console tools. I can reach the box via rdesktop.Can I reset the password remotely? If so, how to go about doing this? the machine is Windows server 2008 R2 Datacenter.
marabutt
  • 240
  • 1
  • 4
  • 11
12
votes
3 answers

increasing size of /tmp on EC2 instances

I am running an Ubuntu server on EC2 ebs, and my application needs a lot of temporary disk space, allocated in /tmp. However, on ec2 the root drive which also contains /tmp is pretty small, around 10GB. All of the remaining disk space is mounted…
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
12
votes
1 answer

Is anyone using an SNMP and/or WMI poller to push custom metrics to Amazon CloudWatch, and if so how?

Amazon CloudWatch has a decent console, and an alarm system which uses Amazon SNS for notifications. Originally it only gave you AWS metrics, e.g. EC2 instance CPU utilization. Recently they added custom metrics. You can use the CloudWatch REST API…
Greg Hendershott
  • 816
  • 1
  • 8
  • 12