You must be signed in as a super administrator for this task.
Using Security Assertion Markup Language (SAML), your users can use their Google Cloud credentials to sign in to enterprise-cloud applications.
Set up SSO via SAML for Amazon Web Services
Here's how to set up single sign-on (SSO) via SAML for the Amazon Web Services application.
Before you beginBefore setting up user provisioning, you need to create a custom user attribute for Amazon Web Services. Follow these steps:
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
- In the Admin console, go to Menu DirectoryUsers.
- At the top of Users list, click More options Manage custom attributes.
- At the top right, click Add Custom Attribute.
- Configure the custom attribute as follows:
- Category: Amazon
- Description: Amazon Custom Attributes
For Custom fields, enter the following:
- Name: Role
- Info type: Text
- Visibility: Visible to user and admin
- No. of values: Multi-value
- Click Add.
The new category appears in the Manage user attributes page.
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu SecurityAuthenticationSSO with SAML applications.
You must be signed in as a super administrator for this task.
- Download the IDP Metadata.
Leave the Admin console open, you'll continue with SSO configuration after performing the next step in the Amazon Management Console.
- In a new browser tab, log in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- In the navigation pane, select Identity Providers > Add Provider.
- For Provider Type, select SAML.
- Enter a Provider Name, such as GoogleWorkspace.
Note: The provider name cannot contain spaces.
- Click Choose File and select the IDP metadata file you downloaded in Step 1 above.
- Click Add Provider.
On the Identity Providers page, GoogleWorkspace should appear in the table of IdPs.
- In the left sidebar, click Roles.
- Click Create role.
- For Trusted entity type, choose SAML 2.0 federation.
- Under SAML 2.0 federation, choose the SAML provider name you added for Google Workspace (in our example, GoogleWorkspace) and choose an access option.
- Click Next.
- In Permissions policies, search for and choose policies to grant permissions to users logging in to AWS via Google SSO. Example: AdministratorAccess.
- Click Next.
- Under Role details, enter a Role name, for example, GoogleSSO.
- Click Create role.
You're returned to the Roles page, where the new GoogleSSO role appears in the list.
- Copy and save the Identity Provider ARN for the GoogleSSO role, which contains your AWS Account ID and the name of the identity provider (in our example, GoogleWorkspace). This value is needed to configure the custom Amazon user attribute for each user in Step 4 below.
Example: arn:aws:iam::ACCOUNT_NUMBER:saml-provider/GoogleWorkspace
- Click the GoogleSSO role to open the Summary page for the role.
- Copy and save the role ARN. This contains your AWS Account ID and the name of the role (in our example, GoogleSSO). This value is needed to configure the custom Amazon user attribute for each user in Step 4 below.
Example: arn:aws:iam::ACCOUNT_NUMBER:role/GoogleSSO.
Continue setup in the Google Admin console with Step 3.
- Return to the browser tab where the Admin Console is open.
-
In the Admin console, go to Menu AppsWeb and mobile apps.
-
Click Add appSearch for apps.
- Enter Amazon Web Services in the search field.
- In the search results, hover over the Amazon Web Services SAML app and click Select.
- On the Google Identity Provider details page, click Continue.
On the Service provider details page, the ACS URL and Entity ID values for Amazon Web Services are configured by default.
- Click Continue.
- On the Attribute Mapping page, click the Select field menu and map the following Google directory attributes to their corresponding Amazon Web Services attributes:
Google directory attribute Amazon Web Services attribute Basic Information > Primary Email https://aws.amazon.com/SAML/Attributes/RoleSessionName Amazon > Role* https://aws.amazon.com/SAML/Attributes/Role (*) Custom attribute created in Before you begin above.
-
(Optional) To enter group names that are relevant for this app:
- For Group membership (optional), click Search for a group, enter one or more letters of the group name, and select the group name.
- Add additional groups as needed (maximum of 75 groups).
- For App attribute, enter the groups attribute name of the corresponding service provider.
Regardless of how many group names you enter, the SAML response includes only groups that a user is a member of (directly or indirectly). For more information, go to About group membership mapping.
- Click Finish.
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu AppsWeb and mobile apps.
- Select Amazon Web Services.
-
Click User access.
-
To turn a service on or off for everyone in your organization, click On for everyone or Off for everyone, and then click Save.
-
(Optional) To turn a service on or off for an organizational unit:
- At the left, select the organizational unit.
- To change the Service status, select On or Off.
- Choose one:
- If the Service status is set to Inherited and you want to keep the updated setting, even if the parent setting changes, click Override.
- If the Service status is set to Overridden, either click Inherit to revert to the same setting as its parent, or click Save to keep the new setting, even if the parent setting changes.
Note: Learn more about organizational structure.
-
To turn on a service for a set of users across or within organizational units, select an access group. For details, go to Use groups to customize service access.
- Ensure that your Amazon Web Services user account email IDs match with those in your Google domain.
- For each user signing in to AWS via SSO, configure the custom user attribute you created in Before you begin:
- On the user's account page, click User information.
- Click the Amazon custom attribute.
- In the Role field, add the AWS Role ARN and the Provider ARN (copied in Step 2 above) separated by a comma, as follows:
arn:aws:iam::ACCOUNT_NUMBER:role/GoogleSSO,arn:aws:iam::ACCOUNT_NUMBER:provider/GoogleWorkspace
- Click Save.
Note: Make sure you're still signed in to the account where you configured Amazon Web Services.
-
Sign in to your Google Admin console.
Sign in using an account with super administrator privileges (does not end in @gmail.com).
-
In the Admin console, go to Menu AppsWeb and mobile apps.
- Select Amazon Web Services.
- At the top left, click Test SAML login.
Amazon Web Services should open in a separate tab. If it doesn’t, use the information in the resulting SAML error messages to update your IdP and SP settings as needed, then retest SAML login.
As a super administrator, you can automatically provision users in the Amazon Web Services application.
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.