Tag Info

Hot answers tagged

3

Yes, instances are permanently deleted after termination. If you want to keep the server around, assuming you're using EBS root instances, you can stop it, which will not delete the server. Then you can start it again when needed.


2

Is it possible to connect to EC2 instance directly? No, this is not possible. This functionality would be trivial for AWS to implement (several other VPS vendors have done so), but they choose not to, presumably to encourage their customers to use EC2 as it's intended to be used - each instance should be able to be discarded and built from the ground ...


2

You don't place this on the instance. Rather you provide it as the user-data field when launching a new instance.


2

Turns out the underlying hardware clock was in a bad state, and kept overriding the NTP time sync (was pointed in the right direction by https://forums.aws.amazon.com/thread.jspa?messageID=519638). If anyone else is having this issue on EC2, you can contact Amazon to fix the underlying hardware.


2

Good question, the Amazon EC2 documentation for CPU Credits in T2 Instances could be more precise here indeed - the introductory blog post New Low Cost EC2 Instances with Burstable Performance provides a better explanation, see the table in the middle: The column labeled "Baseline Performance" indicates the percentage of single core performance of the ...


2

The 4 values you got from Route53 are name servers - they provide the location of where your records are stored (i.e. with Route53). In Route53, you need to have your actual A records. Previously, you (presumably) had one or more A records with GoDaddy which pointed to the elastic IP address of your EC2 instance, now, you need to recreate the same records in ...


2

The fact that the timeout is five seconds long could be significant. Some applications (but notably not dig) use getaddrinfo() instead of gethostbyname(); the former, if called with certain arguments, will wait for both IPv4 and IPv6 responses, while the latter will return immediately an IPv4 reply is received. The default timeout for getaddrinfo() in this ...


2

Vagrant is a Virtual Machine Manager - I would use that for creating and managing your VM's. Ansible is intended for Configuration Management of machines - virtual or otherwise. You could use Ansible to create VM's, then provision them, I suppose - Ansible has a shell module that you can use for anything - or use something like this. But Vagrant is a ...


2

As it seems that the traffic is not so rare, try to catch the transfer by some kind of alerting (can it be Amazon one or a custom script). Then use netstat, nethogs, ps, tcpdump, etc... to identify the traffic source.


2

Do not get port 47 confused with protocol 47. Opening port 47 on your firewall is not the same as allowing protocol 47 (GRE). A PPTP tunnel is instantiated by communication to the peer on TCP port 1723. This TCP connection is then used to initiate and manage a second GRE tunnel to the same peer, so you need both opened. Also, do not use PPTP.


2

The space exists on the disk, you just need to make it available. The simplest thing to do here is to Use fdisk to create a new partition Create a filesystem using mkfs Add the new partition into a convenient filesystem location using mount. Update the /etc/fstab as appropriate.


2

The other answers all seem to be correct but they may be missing the point. It seems to me that the real answer is don't do that. I can't imagine a use case that requires you to secure an arbitrary IP address; it seems like a bad idea for all the good reasons mentioned in the other answers. You lose the flexibility of decoupling the name from the IP address ...


2

Edge locations have nothing to do with EC2. They are used by CloudFront distributions. You can use CloudFront for static web site assets, but nothing like SSH access to EC2 instances.


1

Here's how I got it to work: http://aws.amazon.com/windows/server2012r2/faq/ says: Q: Can I create a Storage Space using an EBS volume? Yes. EBS volumes can be used to setup a Storage Pool. The volumes can be formatted as NTFS or ReFS depending upon your application*. *This is currently only supported on Windows Server 2012 and is not yet supported on ...


1

Upstart is an event based system. For your job to execute at a correct stage it may need to wait for particular event(s) emitted by other start up job(s). Possible solutions will differ from system to system and will depend on how upstart jobs are defined and what events they emit. It may also depend on the upstart version installed on the system. Please ...


1

Amazon Windows AMIs come with the "EC2Config" service installed. If we can make some assumptions about your environment (like... you're not also running some service called EC2Config locally), then you may be able to take advantage of this. If you can list the services available on your machine, you can search for the EC2Config service. Here's an example ...


1

Configure a VPN between AWS and your on-prem AD.


1

The notify_fault script is invoked when keepalived enters the fault state. You want to configure your script using notify_master /etc/keepalived/vrrp.sh


1

You cannot generally get SSL certificates issued with an IP address as a subject name. Firstly, you have no basis with which to get such a certificate issued unless the IP block is delegated to you (from an RIR, for example). This means that unless you are listed and named in the whois information for that IP block, you will not get a certificate. ...


1

My reading of your question is that once a user has imported a key in the AWS console, you'd like a way to import that new key into the actual instances automatically. Unfortunately, the describe-key-pairs API calls return the private key's fingerprint, not the full public key. If you've got a technically savvy team using this, having them upload to an S3 ...


1

Packages for Red Hat Enterprise Linux and its clones are not compatible with Amazon Linux. You will need to find either a different way to install Foreman, or preferably a different Linux distribution (Amazon Linux has many issues which make it generally unsuitable for just about anything).


1

Running a VPN server on the Windows Server instance is likely what you need to allow your clients to access the shared drive. Depending on the security needs of the content, a PPTP VPN is the easiest to setup and least secure, L2TP/IPSec is more secure but more complex and SSTP is the newest technology which works on SSL so its easier to deploy (or so i've ...


1

Take this with a grain of salt, but I feel like Dropbox or Onedrive could be a suitable solution.


1

Probably you have standard set of Security Groups as well as one instance of EC2, but remember that you can make multiple Security Groups and multiple EC2 instances, so: You have to assingn Security Group to EC2 instance. Go to AWS website -> EC2 -> Instances -> select your instance -> Actions button -> Networking/Change Security Groups -> here you can ...


1

I am using Chef on Azure but I believe I've discovered the correct setting for this. @hek2mgl was very close, but his method will be overwritten everytime you reconfigure, which I don't think is practical. In your /etc/chef-server/chef-server.rb file, add the following line: chef_server_webui['cookie_domain'] = 'FQDN' Where "FQDN" is your fully ...


1

Reinstall Failed RPMS I've seen this issue happen when something fails during the RPM transaction. The RPM database can become out of sync with the system. As a result what the system actually has and what RPM thinks is installed varies. TIP: Before doing any of this creat an AMI image so you can easily recover if things completely fail. You can use rpm ...


1

When you try to access via ELB, do you get any access log or any kind of logging on your application ? If not, thats more likely a IP transition issue between ELB and EC2 instances. Could be application specific, like; do you need a real IP address of the client (like X-Forwarded-For header) ? Maybe, its because of the authentication logic that you use in ...


1

Since you were hosting both your domain and website with Godaddy, you probably didn't have to deal with the DNS, they did it automatically for you. Now that you have Route 53, you need to create a zone for your domain, create all the records such as A record and the MX records for your email to point to the elastic ip of your EC2 instance. In conclusion, ...


1

Both domain name and hosting provider is same in your case,You need to go to the Godaddy account and then go to the DNS manager nad have to add A record for new hosting provider ip address that is AWS hosting and also change the DNS to point to AWS hosting provider. To change namerserver at Godaady: 1.Log in to your Account Manager. 2.Next to Domains, ...


1

I have a similar set up relaying via mailgun. Firstly, you can get the public IP of an instance using: http://169.254.169.254/latest/meta-data/public-ipv4 From within the instance, in my case I use orchestration (ie. Chef + OpsWorks) to automatically create a DNS record in Route53 for the instance on boot. You could probably also use: ...



Only top voted, non community-wiki answers of a minimum length are eligible