Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

amazon web services - AWS Lambda Not Found but appear in Applications Menu

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...