Method: AwsEc2Instance#state

Defined in:
lib/resources/aws/aws_ec2_instance.rb

#stateObject

returns the instance state



80
81
82
83
84
# File 'lib/resources/aws/aws_ec2_instance.rb', line 80

def state
  catch_aws_errors do
    instance&.state&.name
  end
end