Tag: aws regions

如何在AWS js SDK中configuration区域?

我的问题 我在写一个简单的js函数,它从AWS CloudWatch Logs中读取一些信息。 在Node.js AWS SDK中configuration区域以及AWS nodejs SDK文档的答案之后,我想出了以下内容: 码 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({region:'eu-central-1'}); // Another way to update console.log(AWS.config.region) . // eu-central-1 var params = { limit: 0, // logGroupNamePrefix: 'STRING_VALUE', […]