AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: Serverless patterns - Amazon API Gateway REST API with HTTP integration Parameters: GetHttpUrl: Type: String Resources: # REST API AppApi: Type: AWS::ApiGateway::RestApi Properties: Name: apigw-rest-api-http-integration Description: HTTP Integration REST API demo # GET Method with HTTP integration RootMethodGet: Type: AWS::ApiGateway::Method Properties: RestApiId: !Ref AppApi ResourceId: !GetAtt AppApi.RootResourceId HttpMethod: GET AuthorizationType: NONE Integration: Type: HTTP_PROXY IntegrationHttpMethod: GET Uri: !Ref GetHttpUrl Deployment: Type: AWS::ApiGateway::Deployment DependsOn: - RootMethodGet Properties: RestApiId: !Ref AppApi Stage: Type: AWS::ApiGateway::Stage Properties: StageName: Prod RestApiId: !Ref AppApi DeploymentId: !Ref Deployment Outputs: # API Gateway endpoint to be used during tests AppApiEndpoint: Description: API Endpoint Value: !Sub "https://${AppApi}.execute-api.${AWS::Region}.amazonaws.com/Prod"