Created
November 7, 2019 00:13
-
-
Save jabaraster/0a9bee86b7a4bc02660610065baa4058 to your computer and use it in GitHub Desktop.
AWS LamdaからAWS SESを使ってメールを送るRoleのSAMテンプレート記述
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
SendMailRole: | |
Type: AWS::IAM::Role | |
Properties: | |
AssumeRolePolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Principal: | |
Service: lambda.amazonaws.com | |
Action: "sts:AssumeRole" | |
Policies: | |
- PolicyName: SendMailPolicy | |
PolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: "Allow" | |
Action: "ses:SendEmail" | |
Resource: "*" | |
- Effect: "Allow" | |
Action: "ses:SendRawEmail" | |
Resource: "*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment