Created
September 30, 2019 21:47
-
-
Save gdestuynder/8eee8626aca85dc71c4ed314f76c7386 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: User that can trigger serverles.com lambda functions, meant for auth0 rules-hooks | |
| Parameters: | |
| PublisherFunctionArn: | |
| Type: String | |
| Description: The publisher function ARM | |
| Default: arn:aws:lambda:us-west-2:320464205386:function:auth0-publisher-dev-handler | |
| Resources: | |
| AZRunnerRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Version: 2012-10-17 | |
| Statement: | |
| - Effect: Allow | |
| Principal: | |
| Service: | |
| - lambda.amazonaws.com | |
| Action: | |
| - sts:AssumeRole | |
| AZRunnerUser: | |
| Type: AWS::IAM::User | |
| Properties: | |
| - PolicyName: AllowInvokeLambda | |
| PolicyDocument: | |
| Version: 2012-10-17 | |
| Statement: | |
| - Effect: Allow | |
| Action: | |
| - lambda:InvokeFunction | |
| lambda:InvokeAsync | |
| - Resource: | |
| !Ref PublisherFunctionArn | |
| AZRunnerAccessKey: | |
| Type: AWS::IAM::AccessKey | |
| Properties: | |
| Serial: 20190930 | |
| Status: Active | |
| UserName: !Ref AZRunnerUser | |
| Outputs: | |
| AZRunnerUserName: | |
| Description: The username of this user | |
| Value: !Ref: AZRunnerUser | |
| AZRunnerAccessKeyId: | |
| Description: The AWS API Access Key ID | |
| Value: !Ref AZRunnerAccessKey | |
| AZRunnerSecretAccessKey: | |
| Description: The AWS API Access Key secret key | |
| Value: !GetAtt AZRunnerAccessKey.SecretAccessKey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment