aws-regions

AWS rekognition and s3 bucket region

匆匆过客 提交于 2021-01-27 20:51:32
问题 I am getting the following error when trying to access my s3 bucket with aws rekognition: message: 'Unable to get object metadata from S3. Check object key, region and/or access permissions.', My hunch is it has something to do with the region. Here is the code: const config = require('./config.json'); const AWS = require('aws-sdk'); AWS.config.update({region:config.awsRegion}); const rekognition = new AWS.Rekognition(); var params = { "CollectionId": config.awsFaceCollection } rekognition

Determine aws region inside a aws glue job

久未见 提交于 2020-05-15 09:52:11
问题 Hello I need some help in determining aws region inside a glue job. I am trying to use boto3 client kms and when I do the following I get a Error NoRegionError: You must specify a region. kms = boto3.client('kms') Obviously it is asking me to set region_name when creating the client but I do not wish to hardcode the region When running a glue job i do see a line in the logs which says Detected region us-east-2 but I am not sure on how I can fetch that value ? 回答1: If you're running Pyspark /

AWS CLI executing in wrong regions

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:14:11
问题 My AWS profile is configured to default to eu-west-1, however when I run an AWS CLI command, it is executing in us-east-1: >aws configure get region eu-west-1 >aws events put-rule --name hourly_trigger --schedule-expression "rate(60 minutes)" { "RuleArn": "arn:aws:events:us-east-1:588237033746:rule/hourly_trigger" } I've looked into profiles and config options and can't determine why this is. My profile is set as follows: [default] region = eu-west-1 And this command works in the intended

How to configure the region in the AWS js SDK?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 01:41:40
问题 My problem I am writing a simple js function that reads some information from AWS CloudWatch Logs. Following the answer at Configuring region in Node.js AWS SDK, and the AWS nodejs SDK documentation, I came up with the following: Code var AWS = require('aws-sdk'); var cloudwatchlogs = new AWS.CloudWatchLogs(); console.log(AWS.config.region) // Undefined AWS.config.region = 'eu-central-1' // Define the region with dot notation console.log(AWS.config.region) . // eu-central-1 AWS.config.update(

Unable to deliver worldwide text message from aws lambda function

亡梦爱人 提交于 2019-12-11 00:09:09
问题 I am trying to send OTP from my AWS Lambda function hosted in AP-South-1 (i.e. Mumbai) region. I am using a worldwide text-messaging feature of SNS for this. As the "AP-South-1" region does not support worldwide text-messaging feature, I am sending the SNSClient's region endpoint as "APNortheast1" (i.e. Tokyo) region as it supports worldwide text-messaging. Now, I have given my lambda function administrator privilege (by attaching role with administrator policy). But, still, it doesn't seem