lib/awssume/configuration.rb in awssume-0.3.0 vs lib/awssume/configuration.rb in awssume-1.0.0
- old
+ new
@@ -17,10 +17,11 @@
# Options are not required to have a value
# The utility will function without issue if an optional value is missing
def self.options
{
- external_id: ENV['AWS_ROLE_EXTERNAL_ID']
+ external_id: ENV['AWS_ROLE_EXTERNAL_ID'],
+ duration_seconds: ENV['AWS_ROLE_DURATION_SECONDS'].to_i
}
end
def self.attrs
self.defaults.merge(self.options)