我正在尝试使用Gordon框架来设置我的lambda,但是无法设置sns-topic订阅。有谁能够帮助我?我的setting.yml是:
我的setting.yml
是:
lambdas:
lambda-name:
code: .
handler: package.Class::method
description: Very informative description
memory: 256
timeout: 60
runtime: java8
role: arn:aws:iam::000000000000:role/lambda_basic_execution
vpc: aws-vpc
policies:
AWSLambdaRole:
Version: "2018-10-12"
Statement:
- Action:
- "sns:Subscribe"
Resource: "arn:aws:sns:us-west-2:000000000000:topic-name"
Effect: "Allow"