Skip to content

Commit 4cb6630

Browse files
lmarcosiMarcos Lopez
andauthored
Changed shared credentials to use credential chain (aws-samples#114)
Co-authored-by: Marcos Lopez <lmarcosi@amazon.com>
1 parent f7467d2 commit 4cb6630

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ruby/ruby-pg/lib/hello_dsql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def example()
55
cluster_endpoint = 'huabttnonxz4oajpjn53txpdue.dsql-gamma.us-east-1.on.aws'
66
region = 'us-east-1'
7-
credentials = Aws::SharedCredentials.new()
7+
credentials = Aws::CredentialProviderChain.new.resolve
88

99
begin
1010
token_generator = Aws::DSQL::AuthTokenGenerator.new({

0 commit comments

Comments
 (0)