amazon

Amazon S3 Upload error SSL certificate issues

孤街浪徒 提交于 2019-12-06 11:04:01
问题 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/' .

Ansible add_host does not work, it's skipping hosts

落爺英雄遲暮 提交于 2019-12-06 08:22:31
问题 I am using Ansible to create a new EC2 instance and try to install some packages on it. The problem is I am adding a new host to a host group but I can not see that host group in another play. When it reaches "Configure EC2 instance" it says: PLAY [Configure EC2 instance] *************************************************************** skipping: no hosts matched Here is the code: --- - name: Provision an EC2 Instance hosts: localhost connection: local gather_facts: False tags: provisioning #

Windows: Setting PHP file permissions before deploying to Amazon Beanstalk

懵懂的女人 提交于 2019-12-06 07:26:25
问题 I've recently converted over to Amazon's Elastic Beanstalk which has been great but I have one problem I haven't been able to fix or find a decent solution to. When deploying via GIT with $ git aws.push My files are deployed but all my folders and files do not have the correct permissions. Currently running Win 8 with xampp for local development. For example on a recent WordPress deployment, all my folders were 777 once deployed to beanstlak. It is an NTFS partition the files are in too. It

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 07:15:41
问题 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

PHPUnit: How to test database interactions on remote Postgres server?

本小妞迷上赌 提交于 2019-12-06 06:35:39
问题 I'm trying to unit test the classes I've created but the majority of the classes deal with the database. I've gotten non-database related classes to be test just fine locally, but I'm stumped when it comes to work with a database, especially remotely. The guide shows using PDO to access a local database that seems to be dumped to an XML file, so it's of little use to me since my database is in the Amazon cloud and using pg_* functions to connect to a Postgres database. Are there any good

How to use Zend Service Amazon?

陌路散爱 提交于 2019-12-06 05:46:22
问题 I've been doing a lot of digging around and have ended up with a huge headache and no success. I am trying to use the Zend Amazon Service (within my Codeigniter framework) to fetch information about a book using its ISBN. I initially tried it with Zend 1.12 but I kept getting an error about missing parameter AssociateTag. I am now trying with Zend 2.0 but still getting problems. This is the code I am using within my controller: set_include_path(get_include_path() . PATH_SEPARATOR . 'site

How to set the permission on files at the time of Upload through Amazon s3 API

青春壹個敷衍的年華 提交于 2019-12-06 05:41:52
Is there any way to set the file permission at the time of uploading files through Amazon S3 API. In my current solution i am able to upload the file on my bucket but i can not view the file through the URL which is mentioned in the file properties section. It is opening when i am passing access keys in query string. Is there any settings required in Amazon S3 or i need to set the permissions to all the file at the time of upload. Thanks in Advance. Kamal Kant Pansari Add a header to your PUT request: x-amz-acl: public-read Rahul Soni In C# when you create a response object of >mazon then in

Amazon Purchased Kindle books from API

扶醉桌前 提交于 2019-12-06 05:11:48
问题 Is there a way to programmatically retrieve a list of kindle ebooks that a user has purchased? I've searched for an answer extensively on SO, however the few related questions I could find are ancient. The Amazon documentation is also not very helpful as from what I can tell the Amazon Associates Program API only lets you do lookups against Amazon's product database, it doesn't let you retrieve information for a signed in user. 回答1: Yes there is . Due to the bloated and extremely slow

Coping folder inside AmazonS3 Bucket (c#)

邮差的信 提交于 2019-12-06 05:06:22
I want to copy one folder, with all existing files inside it, to another folder inside AmazonS3's same Bucket. I can copy one object but what i need is to copy folder, with all files, into another Folder. Here is the example to copy folder inside AmazonS3 Bucket Which works for me. For more details you can check this link public bool CopyFolderInsideS3Bucket(string source, string destination) { var strippedSource = source; var strippedDestination = destination; // process source if (strippedSource.StartsWith("/")) strippedSource = strippedSource.Substring(1); if (strippedSource.EndsWith("/"))

Amazon Credentials Method not found

♀尐吖头ヾ 提交于 2019-12-06 04:35:53
问题 So my next problem with this code. It seemse to not be finding a method and my eyes are untrained. Any help available on this? package packeging; import java.io.IOException; import java.io.PrintWriter; import java.util.Calendar; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.amazonaws