How to view pdf stored in S3 using Angular 5

0 votes

I am using the following project from github https://vadimdez.github.io/ng2-pdf-viewer/ to display a pdf file in my s3 bucket.

I have created an IAM account and got the key and secret. I have applied s3readonly permission to the account.

I get it the url as the src but I get a permission denied error.

How do I use the key and secret to view/get the pdf and then display it.

I see plenty of stuff about file upload but cant figure out how to use the key and secret to give permission to the url.

Oct 31, 2018 in AWS by findingbugs
• 3,170 points
1,312 views

1 answer to this question.

0 votes
You can refer to this blog to find what is the error and where you are missing it out

https://medium.com/@bevin.hernandez/angular-5-file-uploads-to-s3-with-relative-ease-ea19b7fd120e
answered Oct 31, 2018 by Nabarupa

Related Questions In AWS

–1 vote
1 answer

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,560 points
9,897 views
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,090 points
4,820 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,900 points
288 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,900 points
648 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,560 points
451 views
0 votes
2 answers