Skip to main content

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
1 vote
0 answers
36 views

Salesforce Marketing Cloud API SOAP Function Perform Automation - Login Failed error / SFMC - S3 Trigger Automation

I need to import the file from Amazon S3 bucket into Data Extension using Trigger Automation https://help.salesforce.com/s/articleView?id=sf.mc_as_define_a_file_trigger_automation.htm&type=5 For ...
Luiza Zdebska's user avatar
2 votes
2 answers
107 views

External Credential for Amazon - SignatureDoesNotMatch

I'm trying to updload files from SF to S3 using an External Credential. My user has permissions to access the External Credential, User Credentials, and the Named Prinicipal. I have confirmed that the ...
hgolov's user avatar
  • 773
0 votes
0 answers
129 views

AWS S3: generating a pre-signed URL

I am trying to generate an AWS S3 pre-signed from Salesforce apex to use later to download file in lwc, see following sample code: HttpRequest request = new HttpRequest(); request.setMethod('GET'); //...
Harish's user avatar
  • 1
1 vote
0 answers
271 views

AWS S3 File Location in Marketing Cloud

I'm trying to create an automation in Marketing Cloud with a File Transfer and Import Activity that would run daily and read CSV files from an S3 location and save data in a Data Extension in SFMC. I ...
Alex's user avatar
  • 158
0 votes
0 answers
281 views

AWS S3 delete multiple files: signature does not match the signature you provided

I'm trying to use an apex class to remove multiple files from any specified S3 bucket, but at the moment of sending the request, I recieve the following response: SignatureDoesNotMatch The request ...
César Villanueva's user avatar
0 votes
1 answer
112 views

LWC Datatable to list s3 objects not rendering

I am trying to put a list of s3 objects into a datatable and I'm having trouble getting anything to render. Data looks fine in the console, and is populating upon click. I have to wonder if it's ...
bblackinton's user avatar
0 votes
0 answers
79 views

InstallHandler Scheduled Apex not Running

I have an installHandler running post install to create a scheduled Apex job that runs a batch Apex operation to an AWS S3 bucket. I am able to run the batch operation and run the scheduler using the ...
bswartz's user avatar
  • 27
2 votes
1 answer
1k views

AWS S3 - implementing CRUD operations with Named Credentials

How can I perform the following operations in Apex on AWS S3 bucket: List the contents of the bucket Add a file to the bucket Update the file Delete the file
identigral's user avatar
  • 7,679
0 votes
1 answer
510 views

AWS S3 DeleteObjects via Named Credentials

I am trying to call AWS S3 DeleteObjects REST API from Apex. I am able to successfully perform this operation in Postman using their Sig4 Auth tool but I am struggling to get this working in Apex. I ...
Rory's user avatar
  • 429
-3 votes
1 answer
660 views

Exceeded max size limit of 6000000 Error. on requested data via api [closed]

request.setEndPoint('callout:AWS_S3/Test/Demo.csv'); request.setHeader('Content-Type', 'application/xml'); request.setMethod('GET'); Http http= new Http (); HTTPResponse response= ...
cicihef17's user avatar
0 votes
1 answer
2k views

Transfer data from Amazon S3 to Marketing Cloud [closed]

I have an s3 bucket populated daily from Cognos. Would it be possible to import this data into marketing cloud daily (using an automation or to kick off a jounrey)? Any help would be appreciated
user120467's user avatar
1 vote
0 answers
533 views

In Amazon AppFlow, Salesforce Platform Events are not accessible [closed]

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/...
SpartanDawg's user avatar
0 votes
1 answer
3k 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 ...
cmptrer's user avatar
  • 103
0 votes
1 answer
244 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 ...
Eastmarch's user avatar
1 vote
1 answer
823 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 ...
Tony White's user avatar
2 votes
2 answers
3k 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. ...
Bahman.A's user avatar
  • 868
0 votes
1 answer
650 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:...
Adnan Zahry's user avatar
2 votes
1 answer
563 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 ...
Alexis Frisch's user avatar
1 vote
1 answer
2k 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, ...
Alexis Frisch's user avatar
2 votes
0 answers
411 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('...
Andrew Kolpakov's user avatar
0 votes
1 answer
2k 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 ...
Casey Sheehan's user avatar
2 votes
0 answers
443 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 ...
Alexis Frisch's user avatar
1 vote
0 answers
86 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(); ...
Alexis Frisch's user avatar
0 votes
1 answer
559 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 ...
ps2goat's user avatar
  • 109
0 votes
1 answer
1k 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(...
Json's user avatar
  • 1,657
3 votes
1 answer
1k 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: ...
Avijit's user avatar
  • 760
3 votes
4 answers
5k 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 ...
Nate Harris's user avatar
2 votes
1 answer
3k 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';...
Prateek Kumar's user avatar
0 votes
0 answers
1k 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 ...
Raji's user avatar
  • 1
1 vote
1 answer
2k 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 ...
GroundToCloud's 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, ...
iloveseven's user avatar
  • 1,115
0 votes
2 answers
3k 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 ...
Petr Vav's 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= ...
VPY's user avatar
  • 1,018
3 votes
0 answers
249 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 ...
Ante Čabraja's user avatar
3 votes
0 answers
110 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/...
VPY's user avatar
  • 1,018
1 vote
0 answers
125 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 ...
Nilang Pandey's user avatar
0 votes
1 answer
630 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 { ...
Mayukh's user avatar
  • 39
1 vote
1 answer
903 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" ...
JKasyan's user avatar
  • 195
0 votes
1 answer
266 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 ...
Venky's user avatar
  • 634
1 vote
2 answers
661 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 ...
Matias Kruk's user avatar
2 votes
0 answers
993 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 ...
Christian's user avatar
0 votes
1 answer
952 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 ...
ponygirl's user avatar
2 votes
2 answers
5k 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 ...
srikanth pasupuleti's user avatar
2 votes
2 answers
4k 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 ...
t56k's user avatar
  • 853
2 votes
1 answer
3k 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 ...
Richard N's user avatar
  • 3,812
0 votes
1 answer
281 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 ...
MikeAC's 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 ...
georg w.'s user avatar
  • 1,234
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 ...
Shumon Saha's user avatar
  • 4,642