---
schema_version: "1"
id: 7a87b6610df6e71db8953bb5b2eb4e9ebe9b3dc70554cf7816375cacb30048c9
title: Create a Named Credential for Event Relay Setup
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ev_relay_create_named_credential.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ev_relay_create_named_credential.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 218dfe360af2d7645f23e371b41fb51852ce154901db5d80d58ef2fd49766156
description: A named credential stores your AWS account information. You use the named credential later to set up an event relay. You can create a named credential in the Salesforce user interface in Setup.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Create a Named Credential for Event Relay Setup

A named credential stores your AWS account information. You use the named credential later to set up an event relay. You can create a named credential in the Salesforce user interface in Setup.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d91750e38">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d91750e38 ">To create a named credential:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d91750e38 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

1. From Setup, in the Quick Find box, enter Named Credentials, and then select **Named Credentials**.
2. Expand the dropdown next to **New**, and then click **New Legacy**.
3. Complete the fields.
    
    1. For **Label**, enter AWS US-West-2.
    2. For **Name**, enter AWS\_US\_West\_2.
    3. For **URL**, enter a URL in the format `arn:aws:aws_region:aws_account_number`. Replace the `aws_region` placeholder with your AWS region. Replace the `aws_account_number` placeholder with your 12-digit AWS account ID.
        
        The URL is case-sensitive, and aws\_region must be in capital letters. For example, the URL for an account in the US-WEST-2 region has this format: `arn:aws:US-WEST-2:XXXXXXXXXXXX`. (`XXXXXXXXXXXX` is a placeholder for the 12-digit AWS account ID.)
    4. Keep the default values for **Identity Type** and **Authentication Protocol**.
    5. Keep **Generate Authorization Header** selected.
    
    ![A named credential](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/ev-relay-new-credential-aws-blurred.png)
4. Save your changes.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_important.png)

Important You can’t modify the AWS account information in a named credential if it has an associated event relay. The event relay doesn’t pick up the new settings and can fail to run properly. To change the AWS account information, delete the associated event relay first. Next, modify the named credential, and then recreate the event relay with the named credential.

#### See Also

- [_Tooling API Developer Guide_: NamedCredential](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_namedcredential.htm)
- [_Metadata API Developer Guide_: NamedCredential](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_namedcredential.htm)