Skip to content
Permalink
8f0623f624
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
37 lines (37 sloc) 1.04 KB
---
AWSTemplateFormatVersion: 2017-12-07
Description: "Automated Account Provisioning Stack - SAML"
Resources:
IdentityProvider:
Type: Custom::IdentityProvider
Properties:
ServiceToken: "arn:aws:sns:<REGION>:<AWSACCOUNT>:<SNS TOPIC NAME>"
AWSAccount: !Ref AWS::AccountId
LambdaRole: !GetAtt LambdaAssumedRole.Arn
LambdaAssumedRole:
Type: AWS::IAM::Role
Properties:
Path: /
AssumeRolePolicyDocument:
Version: 2017-12-07
Statement:
- Effect: Allow
Principal:
AWS:
- "arn:aws:iam::<AWSACCOUNT>:role/<IAM ROLE NAME>"
Action:
- sts:AssumeRole
Policies:
- PolicyName: root
PolicyDocument:
Version: 2017-12-07
Statement:
- Effect: Allow
Action:
- iam:*SamlProvider
Resource: "*"
- Effect: Allow
Action:
- s3:Get*
- s3:List*
Resource: "*"