如何检查 AWS 开发工具包是否提供了凭据?
How can I check if the AWS SDK was provided with credentials?
有 many ways 为 AWS SDK 提供执行操作的凭据。
我想确保任何方法在我尝试在我们的持续部署系统上操作之前成功设置接口。
如何检查 AWS SDK 是否能够找到凭据?
您可以通过 config.credentials
property on the main client. All AWS service libraries included in the SDK have a config property 访问它们。
Class: AWS.Config
The main configuration class used by all service objects to set the region, credentials, and other options for requests.
By default, credentials and region settings are left unconfigured. This should be configured by the application before using any AWS service APIs.
// Using S3
var s3 = new AWS.S3();
console.log(s3.config.credentials);
有 many ways 为 AWS SDK 提供执行操作的凭据。
我想确保任何方法在我尝试在我们的持续部署系统上操作之前成功设置接口。
如何检查 AWS SDK 是否能够找到凭据?
您可以通过 config.credentials
property on the main client. All AWS service libraries included in the SDK have a config property 访问它们。
Class: AWS.Config
The main configuration class used by all service objects to set the region, credentials, and other options for requests.
By default, credentials and region settings are left unconfigured. This should be configured by the application before using any AWS service APIs.
// Using S3
var s3 = new AWS.S3();
console.log(s3.config.credentials);