diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb index bd5b595b7b8..faf358a7919 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb @@ -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