Resources: lambdaFunction: Type: "AWS::Lambda::Function" Properties: Code: ZipFile: | def handler(event,context): return { 'body': 'Hello there {0}'.format(event['requestContext']['identity']['sourceIp']), 'headers': { 'Content-Type': 'text/plain' }, 'statusCode': 200 } Description: "Governance Lambda Demo" FunctionName: !Ref "lambdaFunctionName" Handler: "index.handler" MemorySize: 128 Role: !GetAtt "lambdaIAMRole.Arn" Runtime: "python2.7" Timeout: 10 APIGatewayPP: Type: "AWS::ServiceCatalog::CloudFormationProvisionedProduct" Properties: AcceptLanguage: en ProvisionedProductName: "PP" ProductName: "PG" ProvisioningArtifactName: "apig_1.0" ProvisioningParameters: - Key: "lambdaFunctionArn" Value: !GetAtt "lambdaFunction.Arn"