-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for shell script to add SAML integration to AWS account
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
| echo \# run the following commands replacing name with the IDP name (if needed) | ||
| echo | ||
| echo aws iam create-saml-provider --saml-metadata-document file://login.at.internet2.edu-metadata.xml --name login.at.internet2.edu | ||
| echo | ||
| echo \# edit shibpolicy.json and replace the ARN with the ARN of the new account | ||
| echo | ||
| echo aws iam create-role --role-name administrator --assume-role-policy-document file://shibpolicy.json | ||
| echo aws iam attach-role-policy --role-name administrator --policy-arn arn:aws:iam::aws:policy/AdministratorAccess | ||
| echo aws iam create-role --role-name readonly --assume-role-policy-document file://shibpolicy.json | ||
| echo aws iam attach-role-policy --role-name readonly --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "Version": "2012-10-17", | ||
| "Statement": [ | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": "sts:AssumeRoleWithSAML", | ||
| "Principal": { | ||
| "Federated": "arn:aws:iam::123456789012:saml-provider/login.at.internet2.edu" | ||
| }, | ||
| "Condition": { | ||
| "StringEquals": { | ||
| "SAML:aud": "https://signin.aws.amazon.com/saml" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |