skip to Main Content

Amazon web services – Get specific index for dictionary

I have this lambda function def lambda_handler(event, context): response = client.describe_maintenance_windows( Filters=[ { 'Key': 'Name', 'Values': [ 'test', ] }, ], ) MWId = response["WindowIdentities"] return(MWId) I got below response Response structure [ { "WindowId": "mw-0154acefa2151234", "Name": "test", "Enabled": true,…

VIEW QUESTION

Amazon web services – Lambda getting access denied when trying to copy the data in same bucket

Lambda getting access denied when trying to copy the data in same bucket. Here is my Bucket Policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject", "s3:GetObjectTagging", "s3:PutObject", "s3:PutObjectTagging" ], "Resource": "arn:aws:s3:::vgi-esf-eng-us-east-1-narwhal-bfb-automated-input/*" }, { "Effect":…

VIEW QUESTION

Amazon web services – An aws lambda is scheduled to run every minute, but it's occassionally being invoked in a few seconds

Here's the configuration on my serverless.yml for the lambda: sendXXX: handler: functions/sendXXX/index.handler timeout: 55 provisionedConcurrency: 1 events: - schedule: rate(1 minute) Here's the relevant Cloudwatch log: 2024-06-25T11:50:32.134Z START RequestId: c2cfe6d6-10d3-4520-8ef1-c82730103331 Version: 170 2024-06-25T11:50:35.698Z START RequestId: 3e331a19-31d9-4342-af21-fe0e7e023c6e Version: 170 2024-06-25T11:50:37.443Z END…

VIEW QUESTION
Back To Top
Search