lib/subiam/dsl/helper/arn.rb in subiam-1.3.0 vs lib/subiam/dsl/helper/arn.rb in subiam-1.3.1
- old
+ new
@@ -14,9 +14,9 @@
if @current_account
return @current_account
end
aws_config = (@context.options && @context.options[:aws_config]) ? @context.options[:aws_config] : {}
sts = Aws::STS::Client.new(aws_config)
- @current_account = sts.get_caller_identity.user_id
+ @current_account = sts.get_caller_identity.account
end
end
-end
\ No newline at end of file
+end