aws s3 bucket not created using postman - amazon-web-services

I am trying to create an s3-bucket in my aws account using postman. see below screenshot
I just pass Host:divyeshjjjjjj.s3.amazonaws.com in header and in Authorization see below image.
and body as none. but every time i requesting it is giving me below response.
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>divyeshjjjjjj</BucketName>
<RequestId>FD3A666A6D53532F</RequestId>
<HostId>TggknsaHzbwQi3y+k0hPCRAWq+z2XOGDrc7SX+ucvLQ2uuOIbHzYnfFClhwMyS09Q2WvDA2pBsE=</HostId>
</Error>
i am surfing from past 2 days don't know what problem is? please, help if you can!

The URL line should always have / while creating a bucket, nothing else. In your case, it's doc/2003-06-01. It seems you are trying to create a folder/object in your bucket. We can't have nested buckets in S3.

Related

Access denied error in Postman while uploading file to presigned URL

I am trying to upload a file using a presigned URL to aws S3 bucket in Postman. Presigned URL is generated without any errors. But when I use the URL to upload the file, I am getting 403 Forbidden | AccessDenied error. Steps I am following:
Use POST method for new API call to upload file to generated presigned URL.
Copy the fields that I get from the presigned URL to form data in new API call.
Content type is not set in new API call
Set new key "file" and select the file to be uploaded.
In the aws s3 bucket policy s3:PutObject; s3:PutObjectAcl; Principal: * is set. And also in corresponding Lambda function, the permissions for s3:PutObject; s3:PutObjectAcl is also set.
But Postman is complaining
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>xxx</RequestId>
<HostId>xxx</HostId>
</Error>
I have also followed some other posts https://stackoverflow.com/a/60742599/17762566
Can anyone please let me know what is the issue and how to resolve it?
Thanks in advance

no such bucket error when presigning s3 file

I want to create a system that will use AWS S3 for storage. We want the files to be NOT available for the internet but we want to be able to share them. In order to do that we need to do a presign. For example take the attached file test_file.gsm. The URL is https://bender-family.s3.amazonaws.com/test_file.gsm and the S3 path is s3://bender-family.s3.amazonaws.com/test_file.gsm. If I try to pre-sign it with aws s3 presign s3://bender-family.s3.amazonaws.com/test_file.gsm I get back:
root#server2:~# aws s3 presign s3://bender-family.s3.amazonaws.com/test_file.gsm
https://s3.amazonaws.com/bender-family.s3.amazonaws.com/test_file.gsm?AWSAccessKeyId=(aws access key here)&Signature=(signature here)&Expires=1624596709
root#server2:~#
However the returned URL doe NOT work. I get back a NoSuchBucket error.
root#server2:~# curl 'https://s3.amazonaws.com/bender-family.s3.amazonaws.com/test_file.gsm?AWSAccessKeyId=(aws access key here)&Signature=(signature here)&Expires=1624596709'
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist</Message><BucketName>bender-family.s3.amazonaws.com</BucketName><RequestId>J9PMQAXV49P011B2</RequestId><HostId>(HostID Here)</HostId></Error>root#server2:~#
root#server2:~#
Is there something that I am doing wrong?
The gsm file is here if needed:
https://filebin.net/io13mgvf92eayq36
Use:
aws s3 presign s3://bender-family/test_file.gsm
(without the s3 part).

Cant add message to AWS SQS using Postman - AcessDenied?

I am trying to add a message to my SQS using Postman.
When I try the following on Postman:
GET https://sqs.us-east-1.amazonaws.com/205115639995/myQueue.fifo?Action=SendMessage&MessageBody={"message":"test1}
I get:
<?xml version="1.0"?>
<ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
<Error>
<Type>Sender</Type>
<Code>AccessDenied</Code>
<Message>Access to the resource https://sqs.us-east-1.amazonaws.com/205115639995/myQueue.fifo is denied.</Message>
<Detail/>
</Error>
<RequestId>80ddb4e8-5eff-5143-adf6-e39d5cb46aa2</RequestId>
</ErrorResponse>
I have my AWS ACCESS and SECRET keys saved in my environment variables and they are correct.
What could be the issue here? Do I need to add my KEYS to the request?
The AWS credentials are picked up by AWS provided tools like AWS CLI, Boto3 (python) etc. They look at various places like environment variables, the credentials files that are generated by aws configure etc
Postman is not a AWS property, so this lookup logic is not built in. This is the reason why you are facing the issue.
There's a little bit of configuration that is needed to let Postman know that you want to use AWS credentials for a particular API calls.
Head over to the "Auth" tab when editing the Request.
From the "Type" dropdown, select "AWS Signature"
Here you will find a place to add your accesskey and secretkey as well as other optional parameters like region.
All set, if the service you are trying to connect to is publicly accessible, and the credentials you are using has a policy in place to access the service, you should now be authenticated to access it.
Image for your reference:

AccessDenied error while connecting AWS S3 using Pentaho

enter image description here
Please see the screenshot-
I am new to Pentaho and AWS S3. I am trying to download a file from Amazon S3 using Pentaho but getting the following error:-
org.jets3t.service.S3ServiceException: S3 GET failed for '/' XML Error Message:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>XXXXX</RequestId>
<HostId>XXXXXXX</HostId>
</Error>
I can used the same key to connect the Amazon using Cyberduck, so key is working correct.
pentaho might scanning for all the buckets because of /, try providing access to all bucket or mention correct bucket in url. As s3 has case sensitive check for url format and naming conventions.

Amazon web service console- access denied for manifest file

I am new to Amazon web CloudFront console and S3 buckets. I am trying to get on-demand streaming work. When tried to view my uploaded video- ism file in the s3 bucket, I get the following XML response when entered following URL in a web browser:
http://mybucket.s3.amazonaws.com/videos/video_1/BigBuckBunny.ism/Manifest
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>C1EC48985EE12047</RequestId>
<HostId>
L7JtCmEHm9W3HUeZEV08GyoFBxiC4krHvoiQyPZrYxeOaIP8yhMJKP60+eIo5qTZcsDasW48Ck8=
</HostId>
</Error>
I am able to download this same ism file, using an url; http://mybucket.s3.amazonaws.com/videos/video_1/BigBuckBunny.ism. Then why only an issue with the manifest file which I will be accessing from my application?
From the following documentation given on Amazon, I have followed all 4 steps and I am now stuck at Step- 5.
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/on-demand-streaming-smooth.html
What could I be missing? Any help is appreciated.
Amazon S3 does not know how to handle ism files, that's why /manifest doesn't work. What you need to do is configure your distribution with smooth streaming enabled, like the link you provided, and replace the s3 URL with cloudfront.
http://d124.cloudfront.net/videos/video_1/BigBuckBunny.ism/Manifest