Skip to main content

AWSSetCredentials

Type

command

Summary

Set the credentials and AWS region to use with the library

Syntax

AWSSetCredentials <pAccessID>,<pSecret>,<pRegion>,<pEndpoint>

Description

All requests include an authorization header that contains a scoped signature using your access secret to form part of the signature key.

note

As the access ID and secret need to be included in your application it is recommended they be constants in password protected scripts.

Parameters

NameTypeDescription

pAccessID

Your AWS access ID

pSecret

Your AWS access secret

pRegion

The API endpoint region to connect to. Defaults to us-east-1

pEndpoint

The API endpoint to connect to for a non-AWS compatable endpoint.

Examples

constant kAccessID = "AAAAA"
constant kSecret = "SSSSS"

AWSSetCredentials kAccessID, kSecret, "us-east-1"
-- Minio endpoint running in a local docker container
constant kAccessID = "AAAAA"
constant kSecret = "SSSSS"

AWSSetCredentials kAccessID, kSecret, "", "http://127.0.0.1:9000"