amazon-ec2

Unable to connect to Selenium Grid running on AWS EC2

那年仲夏 提交于 2020-01-24 06:20:13
问题 I have a Selenium Grid up and running on an AWS EC2 instance. I would like to connect to this from my local machine using Java to fire off my tests via a RemoteWebDriver, however, I'm unable to connect to the server be it through SSH or the Public IP. For example I need to access the instance on port 4444 for a url of http://123.456.78.910:4444/wd/hub this would then need to establish a connection and receive my tests. Whenever I try to use the Public IP I simply get a time-out. Any help

large file from ec2 to s3

此生再无相见时 提交于 2020-01-24 03:30:12
问题 I have a 27GB file that I am trying to move from an AWS Linux EC2 to S3. I've tried both the 'S3put' command and the 'S3cmd put' command. Both work with a test file. Neither work with the large file. No errors are given, the command returns immediately but nothing happens. s3cmd put bigfile.tsv s3://bucket/bigfile.tsv 回答1: Though you can upload objects to S3 with sizes up to 5TB, S3 has a size limit of 5GB for an individual PUT operation. In order to load files larger than 5GB (or even files

How to add a subdomain pointing to IP of EC2 instance in AWS where the domain is pointing to the IP of the machine of some other hosting provider?

这一生的挚爱 提交于 2020-01-24 00:44:08
问题 Here is the situation - I have my domain name xyz.com purchased from godaddy which is pointing to the website IP hosted by wix.com. 2 nameservers provided are of wix.com i.e. - ns2.wixdns.net & ns3.wixdns.net. I have another website which is hosted in AWS EC2 instance with some IP say XX:XX:XX:XX I want to create a subdomain sub.xyz.com which should point to the IP(XX:XX:XX:XX) of my AWS EC2 instance without affecting the main domain pointing to the website created through wix.com. Things I

Running a .NET app on Azure

落花浮王杯 提交于 2020-01-23 13:07:16
问题 I have lots of experience running my app on Amazon EC2. It requires a low-end server, and I currently pay approx $90/month for the server (yes, I know I don't really need the scalability, but I still use EC2). I was wondering about the benefits of moving this app, which is purely .NET, to Microsoft Azure. Are there any experiences with: Cost per month, for a low traffic site. Challenges in moving a .NET app that works on EC2 IIS to the MS cloud. Challenges due to lack of flexibility. For

How do I get my EC2 account balance programatically?

懵懂的女人 提交于 2020-01-23 10:08:59
问题 I'm looking to get my account balance programatically from AWS. I found DevPay & FPS in the documentation, but they don't seem to apply to my account, but rather my customers'. I'd hate to scrape the account screen, but I'll do it, if needed. 回答1: You can't, unfortunately neither AWS nor any other IaaS/PaaS/SaaS vendor I'm aware of does offer API access to their accounting data currently (maybe due to the potential financial/legal implications) - see my longer answer on How can I monitor

Riak node no longer working after changing IP address

爷,独闯天下 提交于 2020-01-22 23:03:47
问题 I'm using an instanced Amazon EC2 virtual Ubuntu 12.04 server as my single Riak node. I've gone through all the proper stages of setting up Riak on the instance using the guide on the basho website here . Where x.x.x.x is the private IP address of the instance, this included: Installation Using sudo su - to gain root privileges (EC2 logs me in as 'Ubuntu'). Installing the SSL Lib with: sudo apt-get install libssl0.9.8 Downloading the 64-bit package for 12.04: wget http://downloads.basho.com

IAM Database Authentication - How to use CLI generated Token

白昼怎懂夜的黑 提交于 2020-01-22 18:54:45
问题 I'm following http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html in order to authenticate from an EC2 to RDS. I am able to run the generate-db-auth-token command to retrieve a token, but I'm not sure what to do with it after that (the instructions inexplicably end). I've tried simply passing the regurgitated string (as well as logical substrings of the returned fields) as the password of a mysql client connection, but this doesn't seem to work.. The returned

Re-assign private IP address in AWS?

一世执手 提交于 2020-01-22 13:26:09
问题 I have an AWS instance running behind an elastic IP. The instance also has a private IP address in my VPC. I will be re-assigning the elastic IP to another instance and am trying to re-assign the private IP as well. Note that the instance only has one private IP (no secondary). Is this possible? 回答1: Unless this is a 'secondary private ip address' (and you said it was not), then no, you can't: You can assign additional private IP addresses, known as secondary private IP addresses, to

Implementing idempotency for AWS Spot Instance Requests

拈花ヽ惹草 提交于 2020-01-22 12:34:55
问题 I'm using the Java AWS SDK to make EC2 spot instance requests. As opposed to on demand instances, the API for spot requests does not have anything similar to ClientToken and thus does not support idempotency out of the box. The most straightforward way I could think of to do this was to set the LaunchGroup property to a unique UUID; when I check for that I call DescribeSpotInstanceRequests and see if I already have a request with the same launch group. To my surprise, it seems that there's a

Heroku-like deployment and environment configuration via EC2

蹲街弑〆低调 提交于 2020-01-22 12:16:08
问题 I really like the approach of a 12factor app, which you are kinda forced into, when you deploy an application to Heroku. For this question I'm particularly interested in setting environment variables for configuration, like one would do on Heroku. As far as I can tell, there's no way to change the ENV for one or multiple instances within the EC2 console (though it's seems to be possible to set 5 ENV vars when using elastic beanstalk). Therefore my next bet on an Ubuntu based system would be