insxsync 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insxsync.rb +1 -1
- data/lib/insxsync/version.rb +1 -1
- metadata +1 -1
data/lib/insxsync.rb
CHANGED
@@ -148,7 +148,7 @@ module InsxSync
|
|
148
148
|
|
149
149
|
# this assumes the role on the production account to access CGE backups
|
150
150
|
sts = AWS::STS.new(:access_key_id=>accessKeyId, :secret_access_key=>secretAccessKey)
|
151
|
-
role = sts.assume_role(:role_arn => 'arn:aws:iam::677931414594:role/insxsync
|
151
|
+
role = sts.assume_role(:role_arn => 'arn:aws:iam::677931414594:role/insxsync', :role_session_name => SecureRandom.uuid.gsub(/-/,''), :duration_seconds => 60 * 15)
|
152
152
|
|
153
153
|
# store role credentials
|
154
154
|
creds = role[:credentials]
|
data/lib/insxsync/version.rb
CHANGED