skip to Main Content

Amazon web services – How to resolve why attempting to publish an SNS message from a Lambda function that is connected to a VPC hangs

I have a very simply Lambda function: import boto3 def lambda_handler(event, context): snsTopicArn="arn:aws:sns:us-west-2:REDACTED:keiths-test-topic" snsClient = boto3.client('sns') message="This is a test" print("before snsClient.publish") response = snsClient.publish(TopicArn=snsTopicArn, Message=message, Subject="This is a test") print(response) return(response) When I run it, it hangs at the…

VIEW QUESTION

Amazon web services – AWS CDK – API Gateway LambdaIntegration – passing a literal using requestParameters?

I'm trying to pass a literal value to the called lambda function using API gateway integration requestParameters but with no luck. My current code is: myApigatewayResource.addMethod( 'GET', new apiGateway.LambdaIntegration( myLambdaFunctionHandler, { requestParameters: { 'integration.request.querystring.customvalue': '123456789' } } ), { methodResponses:…

VIEW QUESTION
Back To Top
Search