Method: Stax::Cmd::Apigw#endpoints

Defined in:
lib/stax/mixin/apigw.rb

#endpointsObject



53
54
55
56
57
58
59
60
61
62
# File 'lib/stax/mixin/apigw.rb', line 53

def endpoints
  stack_apis.each do |r|
    api = Aws::APIGateway.api(r.physical_resource_id)
    debug("Endpoints for API #{api.name} #{api.id}")
    print_table Aws::APIGateway.stages(api.id).map { |s|
      url = "https://#{api.id}.execute-api.#{aws_region}.amazonaws.com/#{s.stage_name}/"
      [s.stage_name, url]
    }.sort
  end
end