SK SKYVVA Documentation

2. Named Credentials to access the AWS S3

Introduction

In Salesforce, users can access AWS S3 using Named Credentials in both the old way and the new way. The old way typically involves using Named Credentials with a custom endpoint and a remote site setting, while the new way leverages the "Amazon S3" provider for Named Credentials introduced in a Salesforce update.

New way

It would help if you defined an External Credential and a Named Credential. First, create an external credential to specify an authentication protocol and permission set or profile when authenticating to an external system. Second, for External Services to authenticate, create a named credential and specify it as the callout endpoint.

Create the External Credentials

Scroll down to the Principals section

Create the Named Credentials

Go to Permission Sets

Finally, you have created the Named Credentials in a new way.

Old way

You named Credentials to simplify the process of connecting to external services, including AWS, securely. However, suppose you need to access AWS S3 using the "old way," without Named Credentials. In that case, you can do so by directly making HTTP requests to the AWS S3 REST API with the appropriate AWS Signature Version 4 authentication.

Create the Named Credentials

Finally, you have created the Named Credentials in a old way.

Summary

Open this article in the interactive viewer →