Questions tagged [amazon-s3]

Amazon S3 is an online file storage web service offered by Amazon Web Services. S3 stands for Simple Storage Service. This service is used in main different way since the data is managed with an object storage architecture.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

In Amazon AppFlow, Salesforce Platform Events are not accessible

What would prevent our Salesforce (SF) integrations with Amazon EventBridge and Amazon AppFlow, from accessing Platform Events in Salesforce? From a SF Admin perspective, the integration user has read/...
user avatar
0 votes
1 answer
237 views

Attempting to upload file to AWS S3 but file is corrupt

I am attempting to download a file from SharePoint through their Rest API, and then upload that file to my S3 Bucket. I can "successfully" download the file and upload to S3. The issue is ...
user avatar
  • 103
0 votes
1 answer
58 views

Getting a script-thrown exception on a PUT to Amazon S3

Code generates an XML document and PUTs in into an S3 Bucket. If I comment out the Header code for Content Length, it does not throw, but S3 requires Content Lengths in the header. So it fails at the ...
user avatar
1 vote
1 answer
193 views

Script thrown exception in Apex callouts (Spring 22 Issue)

We have a method that puts files in an AWS S3 Bucket, but since Spring 22 was applied to an env it has been failing with 'System.CalloutException: Script-thrown exception' We believe it to be related ...
user avatar
1 vote
2 answers
655 views

How to create a public/private key for AWS S3 to be used as SFMC File Location

Since I had this same question as presented here and I found it being already asked, so I have copied this question over from the StackOverflow platform and added some details for more clarity. ...
user avatar
  • 620
0 votes
1 answer
117 views

StatusCode 405 when uploading JSON objects to S3 using APEX [closed]

I have a class that should invoke a web request to S3 to upload a JSON object, but I received the following error Response from s3 System.HttpResponse[Status=Method Not Allowed, StatusCode=405] 20:57:...
user avatar
2 votes
1 answer
259 views

Apex - Base64Decoding to Send Images to AWS3

We are having a bit of trouble when it comes to sending an image to AmazonS3 through Apex. In our JavaScript, within our VisualForce page, we're able to convert an image to Base64 and send it to our ...
user avatar
0 votes
1 answer
483 views

AWS SDK for SalesForce

We are attempting to use an installed package to access Amazon S3 - AWS SDK This package created an Apex Class: S3 Our Named Credential was created using the information specified in the link above, ...
user avatar
2 votes
0 answers
162 views

AWS S3 callout fails with x-amz headers

I have to use canned ACL header 'x-amz-acl' as described in AWS S3 documentation Callout with Named Credentials without header works fine HttpRequest request = new HttpRequest(); request.setEndpoint('...
user avatar
0 votes
1 answer
717 views

How to prevent 403 errors when using S3 presigned URL in image tag? [closed]

I'm having a signature mismatch issue when attempting to use signed URLs within image tags in an aura component. I call the controller to calculate the signed URLs for a number of different image ...
user avatar
2 votes
0 answers
243 views

AWS PUT Request from VisualForce

I have created a Named Credential within SF that stores the Authentication information for our AmazonS3 instance. Here is the Named Credential Setup We have code that is working when the AmazonS3 ...
user avatar
1 vote
0 answers
85 views

AWS Callout from VisualForce Page [duplicate]

UPDATE Here is my updated Apex Code: public class AmazonS3{ public string AmazonS3Request { get; set; } public static void AmazonS3Request() { HttpRequest request = new HttpRequest(); ...
user avatar
0 votes
1 answer
258 views

Named Credential auto-generate aws sig4 not working for s3 'versions'

Main issue: I get a signature mismatch error (403 forbidden) when trying to hit the REST api for s3 using the versions action (ListObjectVersions). It seems to me that this may be an error with how ...
user avatar
  • 99
0 votes
1 answer
601 views

Build pre-signed AWS S3 URLs with Named Credentials [duplicate]

I'm building an integration with S3 and I want to create a pre-signed URL so I can access S3 from SF with a single user. I use the method below to generate a URL: public static string getSignedURL(...
user avatar
  • 1,475
3 votes
1 answer
748 views

AWS S3 JavaScript SDK with Lightning Web Component issue Resource violated directive 'connect-src 'self'

Well I am not able to figure out whats went wrong in this code. I want to list all available documents from my bucket on a button click. I am calling this listS3Objects method but throwing CSP14312: ...
user avatar
  • 730
3 votes
3 answers
3k views

Marketing Cloud to s3

I have an s3 bucket I would like to transfer data to daily via automation. It currently doesn't look like there is a native way to transfer data into s3 via a file transfer activity. Has anyone had ...
user avatar
2 votes
1 answer
2k views

How to use AWS S3 JavaScript SDK with Lightning Web Components as 3rd party library

I am trying to initialize the AWS constant in my LWC component but always it is undefined. import { LightningElement, track } from 'lwc'; import { loadScript } from 'lightning/platformResourceLoader';...
user avatar
0 votes
0 answers
823 views

AWS Signature Version 4 Named Credential doesn't seems like working

I have requirement to fetch a file from s3 server to Salesforce. As a part of Summer'19 release, Salesforce has provided AWS Signature Version 4 protocol in Named credential.From below link I see that ...
user avatar
  • 1
1 vote
1 answer
964 views

REST Request - AWS Access Key ID and AWS Secret Access Key [closed]

I am reading this document Authenticating Rest Requests The first paragraph says .. Every non-anonymous request to S3 must contain authentication information to establish the identity of the ...
user avatar
1 vote
1 answer
1k views

Use visualforce page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader

Is it possible to use a Visualforce Page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader? I have an object NEILON__File__c. The object in its Buttons, ...
user avatar
  • 1,107
1 vote
2 answers
2k views

Retrieving VersionData with standard REST API

I am trying to retrieve VersionData with a standard REST API call from a VisualForce Page a then upload it to a S3 bucket but end up with corrupted files. I believe this is an encoding problem on the ...
user avatar
1 vote
0 answers
2k views

Salesforce - Amazon S3 REST GET Call

My objective is to successfully do a simple GET request from Amazon S3 with our Salesforce Instance. This is my apex class. public class AWSWebService { Public static AWS_Keys1__c awsKeySet= ...
user avatar
  • 1,062
3 votes
0 answers
237 views

Lightning LockerService API callback

I want to integrate Amazon S3 API with Salesforce Lightning component in order to upload/download files directly from the client's browser (not from the APEX server controller). I use newest ...
user avatar
3 votes
0 answers
106 views

VF : Persist data between two VF pages

This is my VF Page <apex:page showHeader="false" sidebar="false" cache="false" contentType="text/html" controller="AWS_Upload" > <script src="https://ajax.googleapis.com/ajax/libs/...
user avatar
  • 1,062
1 vote
0 answers
99 views

Cannot install AWS Toolkit in sandbox

I want to install Force.com for AWS through the AppExchange in sandbox. I went through the below link for https://developer.salesforce.com/page/Installing_Force_for_Amazon_Web_Services for step by ...
user avatar
0 votes
1 answer
538 views

Amazon S3 Integration

I am trying to upload a JSON file to amazon s3 bucket. But I am getting an exception as : Callout Exception: Unexpected end of file from server My Code : public class ProductAmazon_RestClass { ...
user avatar
  • 39
1 vote
1 answer
680 views

Load files from Amazon S3 from Lightning component

I have lightning component for working with amazon s3. I generating unsigned url in apex controller and then try load file using XmlHttpRequest to Amazon. I added "https://my-bucket.s3.amazonaws.com" ...
user avatar
  • 175
0 votes
1 answer
221 views

Need some help in fixing this error related to S3 document upload

I am trying to upload documents into S3 and receiving status as Forbidden. Here is the error I am receiving The request signature we calculated does not match the signature you provided. Check your ...
user avatar
  • 604
1 vote
2 answers
575 views

How to integrate Amazon SDK js and Lightning

We need to integrate a image uploader based lightning component with the amazon sdk js library. And due to Locker service I've serious limitations. I've spend all day trying some solutions found in ...
user avatar
2 votes
0 answers
778 views

Connecting Salesforce Marketing Cloud to Amazon Web Service (AWS/S3) [closed]

I want to import files that are located in a Bucket on AWS S3 scheduled into the Marketing Cloud, but can not get this running. What would be the correct file location to choose and how would the set ...
user avatar
0 votes
1 answer
879 views

Extract data from salesforce/exacttarget views using talend

I would like to know if it is possible to migrate data from a ExactTarget/Salesforce view directly to an Amazon s3 bucket, without having to create a DataExtension, using an ETL tool like Talend. If ...
user avatar
2 votes
2 answers
4k views

Get file from AWS S3 using apex

we are uploading files to AWS (S3 protocol) on CASE object. it's a simple call out and file gets uploaded successfully. We are storing the uploaded URL into a different custom object to display them ...
user avatar
2 votes
2 answers
3k views

Uploading from SF to AWS S3: upload works but all files are empty

I've made a file uploader from SF to AWS S3. Everything works as expected except for the fact that the file itself in S3, despite its size reading correctly, is empty: public pageReference ...
user avatar
  • 813
2 votes
1 answer
2k views

Amazon S3 - Specifying SSE-S3 with pre-signed URL's usingAPEX

Has anybody worked with creating pre-signed urls for Amazon S3 within APEX along with specifying server side encryption? Currently I am generating pre-signed urls for uploading and downloading files ...
user avatar
  • 3,782
0 votes
1 answer
245 views

Is it possible to POST content from SMS to Amazon S3 bucket in AMPScript?

Has anyone tried to use the AMPScript HTTPPostfunction to upload message content to amazon S3? Set @AWSpost = HttpPost(@url, "text/html", @messageInfo)]%% I'm wondering if I can pass in parameters ...
user avatar
  • 43
3 votes
1 answer
4k views

Uploading files to Amazon S3 from a trigger

I get files from an external webservice and have to upload them to Amazon S3 via apex. I found the unmanaged package Force.com for Amazon Web Services a.k.a Amazon toolkit, but it looks rather ...
user avatar
  • 1,154
3 votes
1 answer
2k views

How to upload an image to AWS S3 using Apex?

How to upload an image to Amazon Simple Storage Service, also known as AWS S3, using Apex? Is it possible to emulate working Java code, using libraries, into Apex? Our AWS service doesn't accept HTTP ...
user avatar
  • 4,532