Skip to content

Instantly share code, notes, and snippets.

@jabaraster
Created November 7, 2019 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabaraster/0a9bee86b7a4bc02660610065baa4058 to your computer and use it in GitHub Desktop.
Save jabaraster/0a9bee86b7a4bc02660610065baa4058 to your computer and use it in GitHub Desktop.
AWS LamdaからAWS SESを使ってメールを送るRoleのSAMテンプレート記述
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