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

Flutter – Can't verify signature for cognito access token

I'm using this below to get the access token of a logged in user. Future<void> fetchCognitoAuthSession() async { try { final cognitoPlugin = Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey); final result = await cognitoPlugin.fetchAuthSession(); final userPoolTokensResult = result.userPoolTokensResult.toJson(); safePrint("Current user's userPoolTokensResult: $userPoolTokensResult"); } on AuthException…

VIEW QUESTION

Amazon web services – AWS Secret Manager `ParamValidationError`: `"SecretID", must be one of: SecretId, VersionId, VersionStage`

I am having a problem with accessing a secret from Secret Manager in a lambda function. Here is the relevant code: import boto3 session = boto3.session.Session() secretsmanager = session.client(service_name="secretsmanager") get_secret_value_response = secretsmanager.get_secret_value( SecretID="arn:aws:secretsmanager:SECRETNAME" ) secret = get_secret_value_response["SecretString"] The error message,…

VIEW QUESTION
Back To Top
Search