amazon

AWS Java S3 Uploading error: “profile file cannot be null”

你说的曾经没有我的故事 提交于 2020-01-01 08:06:09
问题 I get an exception when trying to upload a file to Amazon S3 from my Java Spring application. The method is pretty simple: private void productionFileSaver(String keyName, File f) throws InterruptedException { String bucketName = "{my-bucket-name}"; TransferManager tm = new TransferManager(new ProfileCredentialsProvider()); // TransferManager processes all transfers asynchronously, // so this call will return immediately. Upload upload = tm.upload( bucketName, keyName, new File("/mypath

Is it legal to crawl Amazon? [closed]

混江龙づ霸主 提交于 2019-12-30 18:25:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to have specific information from amazon like product name and description! Is it legal to crawl amazon. or Is amazon is providing any api for getting its data paid or nonpaid both 回答1: Amazon's "Product Advertising API" allows this. You should closely read the license agreement as its highly restrictive

Custom headers on Amazon S3

最后都变了- 提交于 2019-12-30 16:26:08
问题 Is it possible to have custom headers on Amazon S3 with arbitrary naming? For example, I am using a CDN pointing to Amazon S3 as the origin server, and in order to enable advanced functionality on the CDN I need to use a custom header "x-something-something"... I see it's possible to do this with "x-amz-meta-(something)" but what about something more general like "x-(something)-(something)" without the amz? 回答1: I don't think it is possible with their current API. They cover the major headers

Search amazon example with new amazon service

与世无争的帅哥 提交于 2019-12-30 10:45:03
问题 I can not find a working example of the new amazon service (or at least, within the last couple of years). The closest working example just comes back with a null item no matter what I put in the title. The code is: // Amazon ProductAdvertisingAPI client AWSECommerceServicePortTypeClient amazonClient = new AWSECommerceServicePortTypeClient(); // prepare an ItemSearch request ItemSearchRequest request = new ItemSearchRequest(); request.SearchIndex = "Books"; request.Title = "C#"; request

Amazon Marketplace API

浪子不回头ぞ 提交于 2019-12-30 04:05:09
问题 I was expecting amazon marketplace web service to be as simple as any other web service but it is not.... There seems to be a tiny bit of information about marketplace product feeds, and could any one help me on how to start from uploading a new product(step by step-as i am new to this),and also updating the quantity or price in future onto amazon in C#.net If anyone can give a short summary, I'd be very grateful. All I want to do is I have a web site which displays a list of products. I need

How to access Amazon s3 private bucket object through Zend_Service_Amazon_S3

穿精又带淫゛_ 提交于 2019-12-30 03:33:08
问题 I have created a bucket on the amazon s3 and I kept some images in this bucket inside a folder. All the images are private and I am using Zend_Service_Amazon_S3 class of Zend. Please let me know how can I access the private images. Thanks, Pravin 回答1: You can do this task by making private url Like this public function get_s3_signed_url($bucket, $resource, $AWS_S3_KEY, $AWS_s3_secret_key, $expire_seconds) { $expires = time()+$expire_seconds; // S3 Signed URL creation $string_to_sign = "GET\n

Amazon S3 Redirect rule - GET data is missing

北城余情 提交于 2019-12-29 05:35:08
问题 We recently moved our website to Amazon S3 (all static pages). We moved al static files to a different subdomain which still points to our old server. All is working lovely except one thing. We got a script that's still being called from old clients on the main domain. On the new clients, the URL is fixed, but the old clients are still using the old URL. I found we can manage redirects in Amazon S3 as described on http://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html . This

User level permissions on Amazon s3 on Public read URL

十年热恋 提交于 2019-12-25 08:08:38
问题 I have uploaded few files on Amazon s3 with CannedChannelList as PublicRead. Remember only this file has public read permissions, not the whole bucket or folder. And user will be able to access that file using given URL. But here is one security concern which is user can manipulate that given URL to access other files in the same or different folder. Is there any way that user will need to send some authentication key while hitting that URL, while reading the file and how can I let users know

How to copy EC2 snapshots to another amazon account

▼魔方 西西 提交于 2019-12-25 03:24:27
问题 Is there a way to copy an EC2 snapshop made in one amazon account to another one and i.e. lauch a new instance with it? If it's possible, which steps do I have to do exactly? How to allow another account access to your snapshots and how to copy them across? Would appreciate your help. 回答1: This procedure will help you to share your unencrypted snapshots. For security reasons, encrypted snapshots cannot be shared or made public. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2

How do I migrate an Amazon EC2 Instance to a different account

自闭症网瘾萝莉.ら 提交于 2019-12-25 02:43:20
问题 Currently we are hosting a customer's instance in our Amazon EC2 Account. We would like to move this to the customer's account so that the billing is transferred. Is there an easy way to simply migrate an instance to a different Amazon Cloud account? 回答1: No, you cannot move an running instance from one account to another. You can however create an AMI of that instance and share the AMI with the other account. Take note of "Sharing an AMI with Specific Users": http://aws.amazon.com/articles