how to delete aws lambda delete-event-source-mapping

0

Need help please on exactly what to type into this 'template' for each region. I am just getting errors.

For example:

[cloudshell-user@ip-10-0-83-24 ~]$ aws lambda list-event-source-mappings { "EventSourceMappings": [ { "UUID": "7cfec532-d93a-4182-adf6-005fd71e7601", "BatchSize": 1, "MaximumBatchingWindowInSeconds": 20, "EventSourceArn": "arn:aws:sqs:us-east-1:350284300366:logness", "FunctionArn": "arn:aws:lambda:us-east-1:350284300366:function:_logness", "LastModified": "2022-01-05T11:53:10.406000+00:00", "State": "Disabled", "StateTransitionReason": "USER_INITIATED", "FunctionResponseTypes": [] } ] } [cloudshell-user@ip-10-0-83-24 ~]$

QUESTION >> please help me by showing me exactly what text to enter for this template (I am not understanding template)

“aws lambda delete-event-source-mapping --uuid <VALUE>(NM2) --region <Region code[NM3] >”

thank you for any specific assistance.

To delete Lambda Pull Event Source:

While performing below commands, kindly make sure that IAM user has correct IAM permissions: https://docs.aws.amazon.com/lambda/latest/dg/access-control-identity-based.html

  1. Log in to the console using: https://aws.amazon.com/console/
  2. Search for CloudShell in search bar and click on the CloudShell service.
  3. Type the command: “aws lambda list-functions --region <Region code>

You will be presented with all the functions that are currently running on the account. If you have any unauthorized functions that are still running, please follow the instruction in this Document to delete the functions.

  1. Type the command: “aws lambda list-event-source-mappings –uuid <VALUE> --region <Region code>” You will be presented with the UUID for all the Lambda functions that were triggered by a secondary service. This needs to be used in the next in the next command.

  2. Type the command: “aws lambda delete-event-source-mapping --uuid <VALUE> --region <Region code>” The Event source mapping for the Lambda functions will be deleted.

  3. If you have multiple event source mappings, repeat step 5 for each of the UUID.

已提問 2 年前檢視次數 4198 次
1 個回答
0

I think something like this should work:

aws lambda delete-event-source-mapping --uuid 7cfec532-d93a-4182-adf6-005fd71e7601 --region us-east-1

That is a destructive operation, so be sure you want to delete that source mapping before you run it.

profile pictureAWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南