By using AWS re:Post, you agree to the Terms of Use

Questions tagged with AWS CloudShell

Sort by most recent
  • 1
  • 12 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

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

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. 4. 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. 5. 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. 6. If you have multiple event source mappings, repeat step 5 for each of the UUID.
1
answers
0
votes
475
views
asked 5 months ago
  • 1
  • 12 / page