Well, I have created a lambda using sam deploy
and this template:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Net Core 3.1 Lambda
Resources:
S3BucketToLambda:
Type: AWS::S3::Bucket
Properties:
BucketName: netcore31bucketread
NetCore31LambdaBucketRead:
Type: AWS::Serverless::Function
Properties:
FunctionName: NetCore31LambdaBucketRead
CodeUri: '../app/BucketRead/src/BucketReadLambda/bin/Release/netcoreapp3.1/publish/'
Handler: BucketReadLambda::BucketReadLambda.Functions::FunctionHandler
Runtime: dotnetcore3.1
Policies:
- Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "lambda:InvokeFunction"
Resource: '*'
Events:
S3Event:
Type: S3
Properties:
Bucket:
Ref: S3BucketToLambda
Events: s3:ObjectCreated:*
My cloudformation stack
is executed with success and AWS Lambda is showed in Application Menu, in section Resourcers. But when I try to click in lambda to open details, I got the following error:
Function not found: arn:aws:lambda:sa-east-1:ACCOUNTNUMBER:function:NetCore31LambdaBucketRead (Service: AWSLambdaInternal; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: ID-RETURNED-BY-AWS; Proxy: null)
question from:
https://stackoverflow.com/questions/65939315/aws-lambda-not-found-but-appear-in-applications-menu 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…