amazon-s3

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

人盡茶涼 提交于 2021-02-20 17:03:44
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

假如想象 提交于 2021-02-20 17:02:54
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

ⅰ亾dé卋堺 提交于 2021-02-20 17:02:07
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

How to grep a term from S3 and output object name

谁说我不能喝 提交于 2021-02-20 04:49:07
问题 I need to grep a term over thousands of files in S3, and list those file names in some output file. I'm quite new using cli, so I've been testing both on my local, and in a small subset in s3. So far I've got this: aws s3 cp s3://mybucket/path/to/file.csv - | grep -iln searchterm > output.txt The problem with this is with the hyphen. Since I'm copying over to standard output, the -l switch in grep returns (standard input) instead of file.csv My desired output is file.csv Eventually, I'll need

How can I download a file from S3 via Powershell without installing AWS SDK?

删除回忆录丶 提交于 2021-02-19 08:14:13
问题 I want to download a file from my AWS S3 bucket using Windows Powershell. I cannot install any AWS software and need to create an API to be able to access a file in AWS S3. I used Postman for testing that the file is accessible and it was successful. Given this success I tried following AWS' guide which says that I need to create the following: Create a canonical request. Use the canonical request and additional metadata to create a string for signing. Derive a signing key from your AWS

Read Excel from S3 - AttributeError: 'StreamingBody' object has no attribute 'seek'

狂风中的少年 提交于 2021-02-19 04:19:42
问题 I have a python script which reads an excel file from S3 but getting an error when it's triggered in AWS Batch. The code works fine on another Ubuntu box. AttributeError: 'StreamingBody' object has no attribute 'seek' Section of my code to read the excel is below import boto3 import pandas as pd session = boto3.Session(aws_access_key_id = config.access_key_id, aws_secret_access_key = config.secret_access_key) client = session.client('s3') obj = client.get_object(Bucket = s3_bucket, Key = s3

XMLHttpRequest and S3, CORS error

会有一股神秘感。 提交于 2021-02-19 02:05:45
问题 I host my photos on S3 bucket. I added CORS configuration for S3 bucket: <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <ExposeHeader>Accept-Ranges</ExposeHeader> <ExposeHeader>Content-Range</ExposeHeader> <ExposeHeader>Content-Encoding</ExposeHeader> <ExposeHeader>Content-Length</ExposeHeader> <ExposeHeader>Access-Control-Allow-Origin</ExposeHeader>

XMLHttpRequest and S3, CORS error

社会主义新天地 提交于 2021-02-19 02:04:45
问题 I host my photos on S3 bucket. I added CORS configuration for S3 bucket: <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <ExposeHeader>Accept-Ranges</ExposeHeader> <ExposeHeader>Content-Range</ExposeHeader> <ExposeHeader>Content-Encoding</ExposeHeader> <ExposeHeader>Content-Length</ExposeHeader> <ExposeHeader>Access-Control-Allow-Origin</ExposeHeader>

PHP S3 upload progress

丶灬走出姿态 提交于 2021-02-18 23:52:16
问题 This has gone around a number of times but I'm still a bit bewildered. A lot of answers only copncern themselves with talking about upload progress bars and not getting the actual upload progress from an S3 upload. I have read a number of questions and found a number of software pieces but I am still no closer to understanding the fundamental question of S3 uploads. Is there a way of uploading to S3 while understanding the progress of that upload without having to use my own app servers

PHP S3 upload progress

折月煮酒 提交于 2021-02-18 23:46:57
问题 This has gone around a number of times but I'm still a bit bewildered. A lot of answers only copncern themselves with talking about upload progress bars and not getting the actual upload progress from an S3 upload. I have read a number of questions and found a number of software pieces but I am still no closer to understanding the fundamental question of S3 uploads. Is there a way of uploading to S3 while understanding the progress of that upload without having to use my own app servers