skip to Main Content

Amazon web services – How to ensure compatibility between my local dev environment and AWS Lambda runtime (AWS CDK V2)

I am currently having an issue with Python packages on AWS Lambda. I have defined a Lambda layer like this: my_layer = _lambda.LayerVersion( self, "MyLayer", code=_lambda.Code.from_asset("layer_code_directory"), compatible_runtimes=[_lambda.Runtime.PYTHON_3_12], description="Lambda Layer for common dependancies" ) The layer is used for common dependencies…

VIEW QUESTION

Amazon web services – Google drive API returns 429 error to create files inside us-east-1 AWS but not in other zone

When my application tries to create files, I get this error. However, it doesn't happen locally, and it doesn't happen in other AWS regions either. raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 429 when requesting https://www.googleapis.com/upload/drive/v3/files?fields=id&supportsAllDrives=true&alt=json&uploadType=multipart returned "Too Many Requests". Details:…

VIEW QUESTION

Amazon web services – Unable to Trigger Lambda function using Python code from my local setup

I am trying to trigger a Lambda function using Python code as below import boto3 from botocore.exceptions import NoCredentialsError, PartialCredentialsError def get_lambda_client(): return boto3.client('lambda') def invoke_lambda(): lambda_client = get_lambda_client() if lambda_client: try: response = lambda_client.invoke( FunctionName='MyLambdaFunctionName', InvocationType='RequestResponse', # or 'event…

VIEW QUESTION
Back To Top
Search