Step:5 -Check The Api
- Copy the API which is Generated From API Gateway Service and paste it into Postman and change The Http Request Methond into PUT
- On Request Body, Choose Binary and Upload any image or Files to test the api then click Send Button
- The Request will be sent and now if the API Is Working Properly the response will be 200 if not means will check whether the api is invoked or not from API Gateway
- Go to Browser and type the exact format like https://Cloudfront_Domain_name.cloudfront.net/filename (opens in a new tab) and if the response is that the file you've Uploaded means all thing have Done.
i
Note: If you have integrate S3 Bucket with Cloudfront means the S3 uploaded file url will not work here after , it will return like permission denied. This is also One of Cloudfront Service's Security Purpose