class AwsEc2Instance

def state

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