amazon

Access headers in AWS API Gateway using HTTP Proxy?

馋奶兔 提交于 2019-12-04 23:45:10
问题 I'm using AWS API Gateway and it's HTTP Proxy, I need to pass Authorization header to my endpoint through AWS API Gateway Things I've tried: Setting Method Request like so, Integration Request setup This doesn't work, my app doesn't receive the Authorization header, Also I've tried using mapping template { "method": "$context.httpMethod", "body" : $input.json('$'), "headers": { #foreach($param in $input.params().header.keySet()) "$param": "$util.escapeJavaScript($input.params().header.get(

Is there an up-to-date c# sample for the Amazon product API?

自闭症网瘾萝莉.ら 提交于 2019-12-04 23:12:42
问题 I'm trying to create a small application that interacts with the Product API of Amazon (get prices of articles, and so on) Unfortunately all the C# samples for the interaction with the Amazon WCF service I've found so far are outdated. I know that Amazon decided that each service call must be signed with a personal accessKeyId and secretKey, so all minimal code samples that are older than 2009 (I think they made the change in 2009) are useless. The official Amazon documentation is useless to

Amazon S3 copy the directory to another directory

假如想象 提交于 2019-12-04 22:57:31
How do i copy/duplicate a folder that contain sub-folders and files into another directory within the S3 bucket using PHP API? $s3->copy_object only copies the folder, but not the files and sub-folders inside. Do i have to use $s3->list_objects to get all files and directory and run $s3->copy_object on every single file/directory? S3 is not a filesystem, it's an object store. Folders don't actually exist in any tangible sense; a folder is just something you can call a shared prefix. Put another way, if you create path/to/one and path/to/two , it doesn't also cause path and path/to to exist. If

This site can’t be reached Amazon Ec2

给你一囗甜甜゛ 提交于 2019-12-04 20:53:09
问题 I have created an instance on Amazon EC2 then installed whm and cpnel. I am able to access cpanel just by using my domain name ex. domainname.com/2083 but when i go to my domain mane ex. domainname.com it gives This site can’t be reached... I am a bit confused if site wasn't pointed properly then it should not go to Cpanel either but since its able to access cpanel then why its not displaying the website. I have already rechecked name servers and host name. 回答1: You should login to your AWS

how to answer HLD and LLD

烈酒焚心 提交于 2019-12-04 18:53:00
I have recently attended Amazon Interview and got rejected after design round, its happened three times with Amazon in 2 year, i always getting rejected because of design round. please help me to know how should i answer an design question. questions like 1) design elevator control system 2) design whisper-sync feature (used in Amazon instant video platform) they ask me to design End to end HLD LLD i did not get what exactly differ in both, i explain as a algorithm wise, but could not properly by HLD and LLD. i mean i searched alot, but could not found a way to answer such question. Any help

Amazon S3 Upload error SSL certificate issues

北城余情 提交于 2019-12-04 18:02:17
I'm trying to test Laravel Amazon S3 on my localhost but keep getting the same error: S3Exception in WrappedHttpHandler.php line 192: Error executing "ListObjects" on " https://s3-us-west-2.amazonaws.com/app?prefix=appimages%2FIMG-1469840859-j.jpg%2F&max-keys=1&encoding-type=url "; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html ) My code : $s3 = \Storage::disk('s3'); $filePath = '/images/' . $filename; $s3->put($filePath, file_get_contents($image), 'public'); You have do a tweak to the php

Using Zend Service Amazon

蹲街弑〆低调 提交于 2019-12-04 16:28:35
Originally, I was searching how to use php to retrieve book information from amazon. and I found this question: How can I use Amazon's API in PHP to search for books? I think this works, but I am having stupid question. I am not able to install and use Zend Service Amazon . I downloaded the software of around 60 MB but, was corrupted. May be, I actually want some php files to implement it. but, its giving some kind of exe file. so, here my question is; Where do I download Zend framework? How do I install it? How do I use it? Thanks in advance drew010 The official download for Zend Framework

Does Amazon S3 send invalidation signals to CloudFront?

自古美人都是妖i 提交于 2019-12-04 16:28:20
问题 I can't seem to see an obvious answer in the documentation. When I update a file on S3 and I have CloudFront enabled, does S3 send an invalidation signal to CloudFront? Or do I need to send it myself after updating the file? 回答1: S3 doesn't send any invalidation information to CloudFront. By default CloudFront will hold information up to the maximum time specified by the Cache Control headers that were set when it retrieved the data from the origin (it may remove items from its cache earlier

How to get the list of price offers on an item from Amazon with python-amazon-product-api item_lookup function?

一世执手 提交于 2019-12-04 14:26:56
I am trying to write a function to get a list of offers (their prices) for an item based on the ASIN: def price_offers(asin): from amazonproduct import API, ResultPaginator, AWSError from config import AWS_KEY, SECRET_KEY api = API(AWS_KEY, SECRET_KEY, 'de') str_asin = str(asin) node = api.item_lookup(id=str_asin, ResponseGroup='Offers', Condition='All', MerchantId='All') for a in node: print a.Offer.OfferListing.Price.FormattedPrice I am reading http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?ItemLookup.html and trying to make this work, but all the time it just

Request to Amazon API with delphi : Got HTTP/1.1 403 Forbidden

一世执手 提交于 2019-12-04 12:54:02
I do not know my code is right or wrong. when i try to run a program error occurs 403.. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,ssbase64, StdCtrls,secutils,OmniXMLUtils,OmniXML, xmldom, XMLIntf, msxmldom, XMLDoc, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP,IdURI; type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; XMLDocument1: TXMLDocument; IdHTTP1: TIdHTTP; Memo2: TMemo; Memo3: TMemo; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;