Questions tagged [s3-bucket]

56 questions
2
votes
1 answer

aws s3 Bucket policy not working as expected

I have one s3 bucket in one AWS account say ACCID1. I want to allow root and one particular user USER1 to have full access on it. From another account, ACCID2, I have IAM role which I want to attach to EC2 instance and allow access from that IAM…
Nirav Radia
  • 167
  • 3
  • 12
1
vote
1 answer

how to download S3 bucket files using Python

My requirement is to download files from S3 bucket on daily basis based on the date filter (ex: day=2018-07-14). We are successfully able to download using AWSCLI using the below code aws s3 cp s3:///day=2018-07-14 local_dir…
Pradeep
  • 11
  • 2
1
vote
0 answers

Amazon S3 Bucket: Not able to to upload the data to a specific S3 bucket

The issue I am facing is that, I have a task to upload images,video, audio and pdf files to a S3 bucket. This code resides in my activity: S3Credentials s3Credentials = new S3Credentials(ACCESS_KEY, SECRET_KEY, ""); S3BucketData…
1
vote
1 answer

Angular PathLocationStrategy issue in s3 bucket

On PathLocationStrategy when i'm reload page then getting 404 page not found. and I don't want to use HashLocationStrategy.
1
vote
0 answers

Edit lambda function inline after creation from cloudformation using deployment package (.zip) in s3 bucket

I manually uploaded a deployment package to a s3 bucket of the same region, and used a cloudformation stack to create a lambda function with the bucket specifictation in the resource properties below: "Code": { "S3Bucket":…
houdinisparks
  • 1,180
  • 1
  • 10
  • 16
1
vote
1 answer

Amazon s3 bucket image access issue: Access Denied

I am getting the following error on putting the image src I am using following modules to upload an image in node aws = require('aws-sdk'), multer = require('multer'), multerS3 = require('multer-s3'), Image is uploading successfully in the bucket…
Simerjit Parmar
  • 808
  • 1
  • 7
  • 22
1
vote
1 answer

How to parse S3 response Guzzle\Service\Resource\Model object?

Request to S3, v2 API. $result = $client->getBucketLifecycleConfiguration(array( // Bucket is required 'Bucket' => 'string', )); I get the following response Guzzle\Service\Resource\Model::__set_state(array( 'structure' => NULL, …
Thamaraiselvam
  • 6,961
  • 8
  • 45
  • 71
1
vote
2 answers

How to keep only Latest "N" number of files/objects in S3 bucket periodically using bash script or any other methods

I am using S3 bucket to store my web application log files. Now I need to know is there any option available, to keep the latest 20 files only, regardless when they are created. I can't use S3 auto expiry option as I always need the latest 20 files…
Praveen George
  • 9,237
  • 4
  • 26
  • 53
1
vote
1 answer

how to use awscli on an s3 bucket in mumbai region?

I am trying to do aws s3 ls s3://bucket-name --region ap-south-1 But it keeps giving me the following error A client error (PermanentRedirect) occurred when calling the ListObjects operation: The bucket you are attempting to access must be …
Shreya Batra
  • 730
  • 1
  • 6
  • 15
1
vote
1 answer

s3 Bucket Image upload issue in iOS (Objective C)

I am trying to upload images to s3 bucket from my Xcode Project for the very first time it works perfectly fine but after uploading one image it gives me error each time following is the error AWSiOSSDK v2.4.12 [Error] AWSCredentialsProvider.m…
1
vote
1 answer

PHP - Upload file to S3 Bucket using AWS4-HMAC-SHA256 Mumbai Server

Currently I have working on System build by using which has been migrate from Godaddy to Amazon AWS. We have also use S3 Bucket for storing images or other file. Our Server location is Mumbai. Our system is working nicely on amazon, but I have…
1
vote
1 answer

S3 bucket policy via a particular application

I am trying to utilize S3 to let my clients download my software package. What I envision is creating a simple web app with authorization For example (download.mysoftware.com) Once the user is authenticated, they will be presented with a S3 url used…
Anthony
  • 33,838
  • 42
  • 169
  • 278
1
vote
0 answers

How to load external config from s3 bucket in grails 2.5.1?

In Grails 3.1.4, there is a method to load external yml file as inputstream as S3Service s3Service = new RestS3Service(awsCredentials) S3Object downloadedObject= S3Service.getObject("bucketName","application.yml") Resource resourceConfig = new…
1
vote
1 answer

AWS SDK : NoMethodError: undefined method `put_object' in Rspec Testing

Working with AWS SDK on S3 Buckets and testing with Rspec, I came across this error constantly even though I made a lot of changes. Here's the code. Flow.rb require 'S3Ops.rb' require 'aws-sdk' def putzip(s3,bucket,instance) …
Vishnu Y S
  • 183
  • 6
  • 18
1
vote
2 answers

AWS S3 Bucket Upload/Transfer with boto3

I need to upload files to S3 and I was wondering which boto3 api call I should use? I have found two methods in the boto3…
aidanmelen
  • 6,194
  • 1
  • 23
  • 24