amazon-web-services

AWS S3 console: An unexpected error occurred

二次信任 提交于 2021-02-18 08:57:09
问题 I've made an account at aws, created a bucket and upload some files. I've set the bucket as an static web page and i can access to the files using the url, but now, when i get into the AWS console and into the S3 service i can't see my bucket, all I see is a message saying "An unexpected error occurred". Any suggestions? I've got no bills pendings. Thanks in advance! 回答1: I had the same problem, but after deactivating CORS plugin (on Chrome) it started to work again. 回答2: I confirm that

Does the ListBucket command guarantee the results are sorted by key?

半腔热情 提交于 2021-02-18 08:52:49
问题 When calling the S3 ListBucket command (via either REST or SOAP API), is the result set returned in any particular order? I would expect, given the nature of object keys and markers, that the result set is always sorted by object key. But I haven't seen any documentation confirming this. 回答1: Update : Amazon has changed their documentation as shown below. They are returned alphabetically . List results are always returned in UTF-8 binary order. See http://docs.aws.amazon.com/AmazonS3/latest

Trigger Lambda Function in AWS when the message is present in SQS Queue

落爺英雄遲暮 提交于 2021-02-18 06:59:13
问题 I am using AWS Lambda function to process the messages in Queue it's working fine. But i need to execute this Lambda function when messages available or added in SQS queue. Is it possible to trigger the Lambda function based on SQS queue.Please suggest one method to achieve this goal. 回答1: Invoking Lambda functions from SQS queues is not directly supported. You can see the list of available triggers here: http://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html Possible

Cloudformation template for creating ECS service stuck in CREATE_IN_PROGRESS

烂漫一生 提交于 2021-02-17 21:06:37
问题 I am creating an AWS ECS service using Cloudformation. Everything seems to complete successfully, I can see the instance being attached to the load-balancer, the load-balancer is declaring the instance as being healthy, and if I hit the load-balancer I am successfully taken to my running container. Looking at the ECS control panel, I can see that the service has stabilised, and that everything is looking OK. I can also see that the container is stable, and is not being terminated/re-created.

How to append a value to list attribute on AWS DynamoDB?

我只是一个虾纸丫 提交于 2021-02-17 14:32:32
问题 I'm using DynamoDB as an K-V db (cause there's not much data, I think that's fine) , and part of 'V' is list type (about 10 elements). There's some session to append a new value to it, and I cannot find a way to do this in 1 request. What I did is like this: item = self.list_table.get_item(**{'k': 'some_key'}) item['v'].append('some_value') item.partial_save() I request the server first and save it after modified the value. That's not atomic and looks ugly. Is there any way to do this in one

How to append a value to list attribute on AWS DynamoDB?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-17 14:31:41
问题 I'm using DynamoDB as an K-V db (cause there's not much data, I think that's fine) , and part of 'V' is list type (about 10 elements). There's some session to append a new value to it, and I cannot find a way to do this in 1 request. What I did is like this: item = self.list_table.get_item(**{'k': 'some_key'}) item['v'].append('some_value') item.partial_save() I request the server first and save it after modified the value. That's not atomic and looks ugly. Is there any way to do this in one

AWS Lambda Cron Schedule Error

穿精又带淫゛_ 提交于 2021-02-17 06:33:05
问题 I have several Lambda Functions that are on a schedule and those are working without any issues. However, I have a onetime job that I am trying to set up for an existing function and am getting an error when I am creating the new rule: Details: Parameter ScheduleExpression is not valid.. I need this to run on Monday September 26th 2016 at 14:30 hours UTC. Here are all of the variations I have tried: cron(30 14 26 SEP ? 2016) cron(30 14 26 9 ? 2016) cron(30 14 26 SEP ?*) cron(30 14 26 9 ? *)

My AS3 Bucket Policy only applies to some Objects

流过昼夜 提交于 2021-02-17 06:22:07
问题 I'm having a really hard time setting up my bucket policy, it looks like my bucket policy only applies to some objects in my bucket. What I want is pretty simple: I store video files in the bucket and I want them to be exclusively downloadable from my webiste. My approach is to block everything by default, and then add allow rules: Give full rights to root and Alice user. Give public access to files in my bucket from only specific referers (my websites). Note: I manually made all the objects

Athena puts data in incorrect columns when input data format changes

这一生的挚爱 提交于 2021-02-17 05:38:30
问题 We have some pipe delimited .txt reports coming into a folder in S3, on which we run Glue crawler to determine the schema and query in Athena. The format of the report changed recently so there are two new columns in the middle. Old files: Columns A B C D E F Data a1 b1 c1 d1 e1 f1 New files with extra "G" and "H" columns: Columns A B G H C D E F Data a2 b2 g2 h2 c2 d2 e2 f2 What we get in the table created by the crawler as seen in Athena: Columns A B C D E F G H <- Puts new columns at the

Is it possible to order Source actions in CodePipeline?

对着背影说爱祢 提交于 2021-02-17 05:19:31
问题 I have two different sources in my CodePipeline, ECR and S3. My deployment pipeline uploads a zip to S3, and then an image to ECR. I need CodePipeline to detect just the ECR commit, which happens last, and then trigger the S3 source action. However whichever one is detected first starts the CodePipeline, which leads to a race condition in which the image for the new version hasn't been uploaded yet. How can I resolve this? I cannot move S3 out of the Source stage, as per CodePipeline