ec2

How do I get my EC2 account balance programatically?

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 daily spending on AWS? for an interesting alternative

AWS EC2 IAM role access denied on S3

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have launched an EC2 instance with IAM role "webapp". role is attached and i can confirm it using curl http://169.254.169.254/latest/meta-data/iam/security-credentials/webapp { "Code" : "Success", "LastUpdated" : "2016-01-04T06:44:50Z", "Type" : "AWS-HMAC", "AccessKeyId" : "xxx", "SecretAccessKey" : "xxx", "Token" : "xxx", "Expiration" : "2016-01-04T12:46:27Z" } webapp Role has an attached policy for S3 { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:*", "Resource": "*" } ] } But I am unable to access objects

Amazon EC2 VM Image Import Stuck on Booting

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Need help! I'm trying to import a Linux Image (RHEL 6.4) to EC2 but it is stucked on "booting" status. The interface is already set to DHCP. { "Status": "active", "LicenseType": "BYOL", "Description": "ACS 5.7 OVA", "Platform": "Linux", "Architecture": "x86_64", "Progress": "59", "SnapshotDetails": [ { "UserBucket": { "S3Bucket": "regus-s3-bucket", "S3Key": "regus-acs57.ova" }, "DiskImageSize": 5237209088.0, "DeviceName": "/dev/sda1", "Format": "VMDK" } ], "StatusMessage": "booting", "ImportTaskId": "import-ami-fh6miv1p" }, Thanks in advance

1130 Host 'amazon-ec2-ip' is not allowed to connect to this MySQL server

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am facing a problem in accessing the mysql DB on one of my Amazon EC2 servers from another EC2 server. I read through various articles regarding providing appropriate permissions for mysql to be accessed from external IP addresses, and here are the steps that I followed: Opened port 3306 on my host EC2 instance to allow for external Mysql connection. In the file /etc/mysql/my.cnf, changed the "bind-address" from "127.0.0.1" to "0.0.0.0". Opened mysql using root, and executed the following command: GRANT ALL PRIVILEGES on . to worker@'ec2

EMR vs EC2/Hadoop on AWS

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know that EC2 is more flexible but more work over EMR. However in terms of costs, if using EC2 it probably requires EBS volumes attached to the EC2 instances, whereas AWS just streams in data from S3. So crunching the numbers on the AWS calculator, even though for EMR one must pay for EC2 also, EMR becomes cheaper than EC2 ?? Am i wrong here ? Of course EC2 with EBS is probably faster, but is it worth the cost ? thanks, Matt 回答1: EMR does a lot of things for you that you won't find on standard Hadoop on EC2. Some particularly important

Amazon AWS EC2 ports: connection refused

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have just created an EC2 instance on a brand new AWS account, behind a security group, and loaded some software on it. I am running Sinatra on the machine on port 4567 (currently), and have opened that port in my security group to whole world. Further, I am able to ssh into the EC2 instance, but I cannot connect on port 4567. I am using the public IP to connect: shakuras:~ tyler$ curl **.***.**.***:22 SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1 curl: (56) Recv failure: Connection reset by peer shakuras:~ tyler$ curl **.***.**.***:4567 curl: (7

EC2 instance launched from AMI not reachable(ssh) after start/stop or reboot

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: When we launch an instance from an AMI. At first the instance is accessible(ssh). Once we stop/start the instance or reboot it the machine becomes inaccessible via ssh,we can ping it though. We see below error in System log. AMI ID used - ami - 72dc9220 Instance - i - 0896a15f - Linux rhel6 . 4 M1 . large instance . ../ ******************* BLKFRONT for device / vbd / 2049 ********** backend at / local / domain / 0 / backend / vbd / 236 / 2049 Failed to read / local / domain / 0 / backend / vbd / 236 / 2049 / feature - barrier .

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

匿名 (未验证) 提交于 2019-12-03 03:07:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: AWS has come up with a new service AWS Certificate Manager . One thing I got from the description is that if we are using this service we don't have to pay for the certificate anymore. They are providing certificates for Elastic Load Balancer (ELB) and CloudFront, but I didn't find EC2 anywhere. Is there any way to use the certificate with EC2? 回答1: Q: Can I use certificates on Amazon EC2 instances or on my own servers? No. At this time, certificates provided by ACM can only be used with specific AWS services. Q: With which AWS services can

AWS - Disconnected : No supported authentication methods available (server sent :publickey)

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: SSH to my AWS server just broke for both Putty and Filezilla. I'm making some effort for this post to be a comprehensive troubleshooting list, so if you share links to other stack overflow pages, I'll edit them into the question. Disconnected : No supported authentication methods available (server sent :publickey) The error is familiar from when I set up the connection almost a year ago. If you're setting up AWS SSH for the first time, these address the most common problems: Wrong username: Disconnected : No supported authentication methods

Spark Streaming on EC2: Exception in thread “main” java.lang.ExceptionInInitializerError

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to run spark-submit on a jar file that I created. When I run it locally on my machine it works correctly but when deployed onto Amazon EC2 it returns the following error. root@ip-172-31-47-217 bin]$ ./spark-submit --master local[2] --class main.java.Streamer ~/streaming-project-1.0-jar-with-dependencies.jar Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.spark.streaming.StreamingContext$.<init>(StreamingContext.scala:728) at org.apache.spark.streaming.StreamingContext$.<clinit>(StreamingContext