Skip to content
Advertisement

Tag: amazon-web-services

AWS Lambda – unable to import module ‘lambda_function’

Like many others before me, I’m trying to run an AWS Lambda function and when I try to test it, I get “errorMessage”: “Unable to import module ‘lambda_function'” My Handler is set to lambda_function.lambda_handler, and I indeed have a file named lambda_function.py which contains a function called lambda_handler. Here’s a screenshot as proof: Everything was working fine when I was

aws boto3 grab subnet info

Im trying to grab a list of subnets from aws, I have a working version for VPC that I have modified: I keep getting: subnets = list(ec2.Subnet.filters(Filters=filters)) AttributeError: ‘function’ object has no attribute ‘filters’ From everything im reading and other examples this should work Any ideas? Answer To access the subnets collection of ec2 resource,

Advertisement