Skip to content

Commit

Permalink
[aws#1455] Added region to instance
Browse files Browse the repository at this point in the history
  • Loading branch information
sivagollapalli committed Apr 21, 2020
1 parent f29235f commit 290c619
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def instance_type
data[:instance_type]
end

# Region which is associated with the instance
# @return [String]
def current_region
data.placement.availability_zone.chop
end

# The kernel associated with this instance, if applicable.
# @return [String]
def kernel_id
Expand Down

0 comments on commit 290c619

Please sign in to comment.