Is there any way to stop an elastic beanstalk environment as opposed to terminating it? There are times during testing that I would prefer to stop the environment so that I'm not being charged. However, I'm not seeing a way to do this via the GUI. It is very inconvenient to have to terminate and re-create my environment.
nu everest's questions
Does boto3
make it possible to access EC2 CPU and Memory usage? I looked here, but couldn't find anything in the docs.
How do I programmatically check memory and CPU usage on an EC2 server running Windows 2012? (preferably with python)
I want to run a command via AWS Run Command that downloads and installs windows updates on a remote Windows 2012 R2 Server instance running on EC2, and reboots the instance.
I tried suggestions on the following pages:
Running wuauclt.exe /detectnow
or wuauclt.exe /detectnow /updatenow
has no visible affect on Windows Server 2012.
Running wusu update /forcerestart
does not work, but does produce an error screen saying that <update>
needs to be a directory. However, I do not know where the updates to be installed reside.
This tool seems to be focused on offline
installation which is interesting, but doesn't seem applicable to me.
- This is for Windows Server 2008 and no one seems to be able to answer it.
I'm apparently not doing something right.
I am running an Invoke-WebRequest
in a Windows Powershell as an Administrator.
When I run the following command: Invoke-WebRequest http://speedtest.newark.linode.com/100MB-newark.bin -OutFile $env:TEMP
(as recommended here), I get an error stating Access to Path is Denied
(see image below).
Things I tried that didn't work:
- Ran the command on Windows Server 2008 and 2012, as well as, Windows 8.1.
- Unchecked the
Read-Only
setting permissions under theTemp
folders properties. - I changed
$env:TEMP
toC:\
.
The error is consistent across all operating systems tested.
I currently have two production servers. One running Windows Server 2003 and the other Windows Server 2008. When I open the Reliability and Performance Monitor
I see a Network
section that only goes up to 56Kbps
see the image below.
It concerns me that 56Kpbs is the maximum bandwidth that our database server has available. This server is located on the other side of the world, and I have no way of physically accessing the network hardware. I've been instructed not to browse the internet on this computer or download things like adobe flash. This prevents me from doing a simple internet upload and download speed test.
How do I test the servers internet speed from the Microsoft Windows command line or equivalent that does not involve opening a browser on the server? I might be permitted to securely transfer a program after it is scanned for viruses to the server, but this is the least desirable option.
I have a postgres db setup on RDS. It is running great. However, I want to link this to a set of autoscaled EC2 instances sitting behind an ELB that all reside in a single EC2 security group
.
I've been told that it is possible to add a rule to the security group for the RDS instance that uses my EC2 security group as the source. When I go to the console and edit the RDS security group I only see the following options under the source column: Anywhere, Custom IP, and My IP
.
In the information pop-up at the top of the column it says: To specify a security group in another AWS account (EC2-Classic only), prefix it with the account ID and a forward slash, for example: 111122223333/OtherSecurityGroup.
(looks like it may only be applicable to EC2-Classic)
It does not let me type in the source dropdown box.
Under the RDS section I notices they have option groups
. However the default option group associated with my postgres instance is not editable.
Therefore, I tried to create a new group. At this point I discovered that postgres is not listed as an available engine
. I selected mysql instead just to see whether I could add options. It looks like I can add a security group to a mysql instance, but NOT a postgres instance.
Do postgres instances not support this expected option?
I currently have a Postgresql v9.3.3 running on AWS RDS. I've learned that if I upgrade Postgres to 9.3.5 that I can create read replicas.
However, I am afraid of losing data. Can I just select "modify" from the console "instance actions" section and upgrade to 9.3.5 without losing any data; or do I need to do something special?
I setup an auto scaling group on EC2 along with an RDS Postgres instance. I am not using ELB. Maybe I should be...
The challenge is that every time a new EC2 instance is created it assigns a unique public IP address. This means that a new inbound rule needs to be applied to the security group for RDS that allows this new EC2 instance to connect to RDS via port 5432 (postgresql).
I also run into a Route 53 issue since the new ip address needs to be added to the DNS "A Record" in order to properly resolve the url.
Is there a way to setup AWS to do this for me, or do I need to write some python code using boto?
I was unable to SSH or SFTP into my ubuntu server on EC2 this morning. It should be noted that SSH and SFTP were working fine up until now. To troubleshoot this I did the following:
- Logged into AWS and went to my instance.
- My instance said that it was running and passed all of its' checks.
- I rebooted the instance from the AWS console, but SSH and SFTP were still not possible.
- I selected "Stop" thinking that I could stop and then start the instance again.
- At this point the instance went into the "Stopping" state, but never went to "Stopped".
My EC2 instance is now hung in the "Stopping" state. It's been hung in this state for over 90 minutes now.
How do I get my instance to exit the "Stopping" state, such that, it Stops?