aws

504 (Gateway Timeout) on AWS

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have my web app running on AWS EC2 instance in PHP and I make an ajax call that takes about 5-10 mintes, I see the web console in Google Chrome and I get this 504 (Gateway Timeout) ,How I can increase the value of this, is that related to apache? Thanks 回答1: ELB by default times out at 60 seconds; there is no way I know of to extend this limit, although this page suggests that it's something Amazon Support can do for you (and also suggests a method of working around the problem): Point 6) Amazon ELB timeouts at 60 seconds (kept idle)

SES AWS Error Code: SignatureDoesNotMatch, Status Code: 403

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting a AWS Error Code: SignatureDoesNotMatch, Status Code: 403 when trying to send a mail through Amazon SES. I have confirmed that I am using the correct credentials which I created via https://console.aws.amazon.com/iam/home?#users and the error still persists. I assume the credentials I've created on the iam/home are in fact global but I do not know what I am doing wrong further. The entire error is: AWS Error Code: SignatureDoesNotMatch, Status Code: 403, AWS Request ID: xxx, AWS Error Type: client, AWS Error Message: Signature

AWS aws.push ImportError: No module named boto in Ubuntu

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to follow this tutorial: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html in order to deploy a Ruby on Rails app in AWS with Ubuntu. Everything went ok (I can run my app in local), until the final step. When I run aws.push I get next error. roberto@ubuntu:~/dev/myapp$ git aws.push Traceback (most recent call last): File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 21, in <module> from aws.dev_tools import * File "/home/roberto/dev/myapp/.git/AWSDevTools/aws/dev_tools.py", line 5, in <module

AWS S3 access denied when getting image by url

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on AWS EC2 Ubuntu Machine and trying to fetch image from AWS S3 but following error has been shown to me every time. <Error> <Code>InvalidArgument</Code> <Message> Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4. </Message> <ArgumentName>Authorization</ArgumentName> <ArgumentValue>null</ArgumentValue> <RequestId>7C8B4BF1CE2FDC9E</RequestId> <HostId> /L5kjuOET4XFgGter2eFHX+aRSvVm/7VVmIBqQE/oMLeQZ1ditSMZuHPOlsMaKi8hYRnGilTqZY= </HostId> </Error> Here is my bucket policy {

AWS Lambda HTTP POST Request (Node.js)

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm relatively new to AWS lambda function and nodejs. I'm working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: " http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry " I've been searching about how to do a HTTP POST request in lambda function but I can't seem to find a good explanation for it. Any help I'd appreciate it. Sorry for my English. Thank you. Searches that I found for http post: https://www.npmjs.com/package/http-post How to make an HTTP POST request in node.js?

AWS lambda api gateway error “Malformed Lambda proxy response”

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to set up a hello world example with AWS lambda and serving it through api gateway. I clicked the "Create a Lambda Function", which set up the api gatway and selected the Blank Function option. I added the lambda function found on AWS gateway getting started guide : exports.handler = function(event, context, callback) { callback(null, {"Hello":"World"}); // SUCCESS with message }; The issue is that when I make a GET request to it, it's returning back a 502 response { "message": "Internal server error" } . And the logs say

Laravel 5.1 AWS SDK proper credentials setup: exception &#039;Aws\\Exception\\CredentialsException&#039;

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on a Laravel 5.1 App Using this package: "aws/aws-sdk-php-laravel": "~3.0" I am trying to properly setup a local environment and a production environment. I keep getting this error when trying to send mail on production server: (My .env file is gitignored and only exists locally) production.ERROR: exception 'Aws\Exception\CredentialsException' with message 'Error retrieving credentials from the instance profile metadata server. Ran php artisan vendor:publish My .env file look slike so, only with the keys: APP_ENV=local APP_DEBUG

AWS Lambda S3 GET/POST - SignatureDoesNotMatch error

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have had a Lambda node.js function up and running for about 6 months without any issue. The function simply takes a object and copies it from one bucket to another. Today, I have started getting: "SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method." The code I am using is pretty simple, any suggestions on how I could fix this? var aws = require('aws-sdk'); var s3 = new aws.S3({apiVersion: '2006-03-01'}); exports.handler = function(event, context) { var to

How to mock aws-sdk gem?

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have some code that uploads a file to Amazon S3, using the aws-sdk gem. Apparently it does an HTTP put to upload the file. Is there a good way to mock this functionality of the aws-sdk gem? I tried using Webmock, but the aws-sdk gem seems to do a get latest/meta-data/iam/security-credentials/ first. It seems that using Webmock may not be the best way to mock this functionality. Working in RSpec. 回答1: There are a lot of ways to mock requests in the AWS SDK for Ruby . Trevor Rowe recently posted an article on using the SDK's native support

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