Create a named credential that specifies the endpoint URL for Amazon DynamoDB and an external credential to provide the required authentication parameters.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions |
| User Permissions Needed | |
|---|---|
| To view named credentials: | View Setup and Configuration |
| To create, edit, or delete named credentials: | Customize Applications |
- From Setup, enter Named Credentials in the Quick Find box, then select Named Credentials.
- Click External Credentials.
- To create a new external credential, click New . To edit an existing external credential, click its link in the list of external credentials and then click Edit.
-
Complete the fields.
Field Description Label A user-friendly name for the named credential that’s displayed in the Salesforce user interface. Name A unique identifier that’s used to refer to this external credential from callout definitions while creating an external data source for Amazon DynamoDB. Authentication Protocol Select AWS Signature Version 4. Service The name of an AWS service, such as dynamodb. Region The AWS region for the named credential’s endpoint. For example, us-west-2. AWS Account ID Optional. The 12-digit number that uniquely identifies your AWS account. Use STS for Temporary Access Select the checkbox to provide limited access and specify STS access key, access secret, external ID, and duration. For details, see Create and Edit an External Credential. - Click Save. You’re taken to the Named Credentials screen.
- To further edit the new external credential, click External Credential.
- Select the external credential you created.
- Scroll to Permission Set Mappings.
- Click New to create a permission set mapping for this external credential.
-
Complete the following fields. When you use STS for temporary access, the Access Key
and Secret fields are disabled and display the temporary credentials, if any.
Field Description Permission Set Select an available permission set. This enables different groups of Salesforce users to mirror access permissions of IAM roles.
Make sure you define the required access to the User External Credentials object (use permission sets or profiles to configure object access). Only users with access to the User External Credentials object can make callouts to the external source. For details, see Named Credentials and External Credentials.
Sequence Number Assign a sequence number. A sequence number specifies the order of principals to apply when a user participates in more than one principal. For example, a user could be part of multiple permission sets that are applicable for a credential provider. Priority is from lower to higher numbers. IAM Role ARN The Amazon Resource Name (ARN) of the role that the credential assumes.
To get the ARN for an IAM role:
- In the navigation pane of the IAM console, choose Roles.
- In the list of roles, choose the role you want to map to the permission set.
- In the Summary section, copy the ARN value.
For details, see AWS Identity and Access Management User Guide: Tutorials.
- Create a named credential that uses the authentication configuration you defined in the external credential. From Setup, enter Named Credentials in the Quick Find box, select Named Credentials, and then click Named Credentials.
-
To create a new named credential, click New and complete the
fields.
- Fill out the Label, Name, and
URL fields.
Sample format for the URL would be
For details, see Create and Edit a Named Credential.https://dynamodb.REGION.amazonaws.comFor example, if the AWS region is us-west-2, the URL would behttps://dynamodb.us-west-2.amazonaws.com - For the External Credential field, select the external credential you created that uses the AWS Signature Version 4 authentication protocol.
- Select Generate Authorization Header.
- Fill out the Label, Name, and
URL fields.
Use the named credential that captures the authentication configuration in external credentials to authenticate Salesforce users against Amazon DynamoDB, provide limited access to AWS resources, and periodically refresh access tokens.