--- AWSTemplateFormatVersion: '2010-09-09' Description: AWS Lambda Service Catalog product (fdp-1p5rtpgls) Parameters: PortfolioProvider: Type: String Description: Owner and Distributor Name LaunchConstraintARN: Type: String Description: ARN of the launch constraint role for EC2 products. PortfolioId: Type: String Description: The ServiceCatalog portfolio this product will be attached to. RepoRootURL: Type: String Description: Root url for the repo containing the product templates. Resources: lambdaproduct: Type: AWS::ServiceCatalog::CloudFormationProduct Properties: Name: Amazon Lambda APIGateway Endpoint Description: This product builds one Amazon Lambda function and APIGateway endpoint Owner: Ref: PortfolioProvider Distributor: Ref: PortfolioProvider SupportDescription: Operations Team SupportEmail: support@yourcompany.com AcceptLanguage: en SupportUrl: http://helpdesk.yourcompany.com ProvisioningArtifactParameters: - Description: baseline version Info: LoadTemplateFromURL: Fn::Sub: "${RepoRootURL}serverless/sc-serverless-lambda.yml" Name: v1.2 Associatelambda: Type: AWS::ServiceCatalog::PortfolioProductAssociation Properties: PortfolioId: Ref: PortfolioId ProductId: Ref: lambdaproduct constraintlambda: Type: AWS::ServiceCatalog::LaunchRoleConstraint DependsOn: Associatelambda Properties: PortfolioId: Ref: PortfolioId ProductId: Ref: lambdaproduct RoleArn: Ref: LaunchConstraintARN Description: Ref: LaunchConstraintARN Outputs: ProductId: Value: Ref: lambdaproduct ProvisioningArtifactIds: Value: Fn::GetAtt: - lambdaproduct - ProvisioningArtifactIds ProvisioningArtifactNames: Value: Fn::GetAtt: - lambdaproduct - ProvisioningArtifactNames