1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Aws.config is a vanilla Ruby hash. To clear the Aws.config created in the preceding steps within your code, you can use the following method:
Aws.config.clear
This will clear out all the global configuration. In the SQS client that follows you can directly configure the credentials and the region.
Reference sample:
require "aws-sdk"
# S3 specific credentials and parameter configuration
Aws.config.update(
access_key_id: '**************',
secret_access_key: '**************',,
region: '******',
force_path_style: ****
)
s3 = Aws::S3::Client.new()
# S3 specific operations
...
...
# Clear the Aws.config hash
Aws.config.clear
# new SQS client
client = Aws::SQS::Client.new(
credentials: Aws::Credentials.new(
'**************',
'**************',
),
region: '****'
)
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans