AWS IAM Identity SAML 2.0 Setup Guide
If you'd like to set up the ability to sign in to your Spacelift account using a SAML 2.0 integration with AWS IAM Identity Center (formerly known as AWS SSO), you've come to the right place. This example will walk you through the steps to get this set up, and you'll have single sign-on running in no time!
Pre-requisites
Spacelift account, with access to admin permissions.
AWS account which is a member of an AWS Organization, with permission to create AWS IAM Identity applications.
Configure the AWS IAM Identity application
Log into the AWS account, go to the IAM Identity Center home page and finally, click on the "Applications" link.

On that screen, click on the "Add a new application" button.

Finally, click on the "Add a custom SAML 2.0 application" button.

Set the "Display name" field to "Spacelift". Then, copy the URL for the "IAM Identity Center SAML metadata file" and head to the settings in your Spacelift account.
Configure Spacelift SAML integration
From the navigation side bar menu, select "Settings."

Next, you'll want to click the Set Up button underneath the "SAML Settings" section.

In the SAML settings:
Set the value for "NameID Format" to "Persistent".
Enable the "Dynamic configuration".
Paste the URL you just copied in AWS in the "IdP metadata URL" field.

Do not click on the "Save" button yet, otherwise Spacelift will try to activate SAML integration right away and we are not completely done with the setup yet. If you clicked on the button anyway, you will be presented with an AWS login page and you will likely be unable to log in at this time. Don't worry. Just open another tab in your browser and go to your spacelift account. As an administrator, you will be able to log in via the Identity Provider your used to create the account. From there, you will be able to activate the SAML integration once you have completed all the remaining steps documented below.
Configure the AWS IAM Identity application (Continued)
Go back to the AWS console. In the "Application metadata" section, click on the "If you don't have a metadata file, you can manually type your metadata values." link.

Copy/paste the values for "Single sign-on URL" and "Entity ID (audience)" from Spacelift to "Application ACS URL" and "Application SAML audience", respectively.


Finally, click on the "Save changes" button.
Set the attribute mappings
Go to the "Attribute mappings" tab, set the values as described below and click on the "Save changes" button.
Subject
${user:subject}
persistent
FirstName
${user:givenName}
basic
LastName
${user:familyName}
basic
Assign users and groups to the application
Make sure to assign users and/or groups to the SAML application in the "Assigned users" tab.

Activate the Spacelift SAML integration
Back to Spacelift for the final step. You can finally click on the "Save" button on the SAML integration page.
The page will reload and am AWS login page will be displayed. Use the credentials for a user that has access to the SAML application and you should be able to log into Spacelift.
Last updated
Was this helpful?