Created
March 1, 2021 15:06
-
-
Save adelmofilho/69793338980a2372f5c75c58e8883505 to your computer and use it in GitHub Desktop.
ML Discovery S01E02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| MldiscoveryServiceRoleEB31CFF1: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Statement: | |
| - Action: sts:AssumeRole | |
| Effect: Allow | |
| Principal: | |
| Service: lambda.amazonaws.com | |
| Version: "2012-10-17" | |
| ManagedPolicyArns: | |
| - Fn::Join: | |
| - "" | |
| - - "arn:" | |
| - Ref: AWS::Partition | |
| - :iam::aws:policy/service-role/AWSLambdaBasicExecutionRole | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/Mldiscovery/ServiceRole/Resource | |
| MldiscoveryB5544805: | |
| Type: AWS::Lambda::Function | |
| Properties: | |
| Code: | |
| ImageUri: | |
| Fn::Join: | |
| - "" | |
| - - Ref: AWS::AccountId | |
| - .dkr.ecr.sa-east-1. | |
| - Ref: AWS::URLSuffix | |
| - /aws-cdk/assets:f132e3fdc6130116a2c7370da7c0199d99a800bb051089b63f209f414514e69b | |
| Role: | |
| Fn::GetAtt: | |
| - MldiscoveryServiceRoleEB31CFF1 | |
| - Arn | |
| MemorySize: 4096 | |
| PackageType: Image | |
| Timeout: 15 | |
| DependsOn: | |
| - MldiscoveryServiceRoleEB31CFF1 | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/Mldiscovery/Resource | |
| MldiscoveryEndpoint9F2FA641: | |
| Type: AWS::ApiGatewayV2::Api | |
| Properties: | |
| Name: MldiscoveryEndpoint | |
| ProtocolType: HTTP | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/MldiscoveryEndpoint/Resource | |
| MldiscoveryEndpointDefaultRoutemldiscoveryappMldiscoveryEndpointDefaultRouteF2DFED1DPermission8F664C0E: | |
| Type: AWS::Lambda::Permission | |
| Properties: | |
| Action: lambda:InvokeFunction | |
| FunctionName: | |
| Fn::GetAtt: | |
| - MldiscoveryB5544805 | |
| - Arn | |
| Principal: apigateway.amazonaws.com | |
| SourceArn: | |
| Fn::Join: | |
| - "" | |
| - - "arn:" | |
| - Ref: AWS::Partition | |
| - ":execute-api:sa-east-1:" | |
| - Ref: AWS::AccountId | |
| - ":" | |
| - Ref: MldiscoveryEndpoint9F2FA641 | |
| - /*/* | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/MldiscoveryEndpoint/DefaultRoute/mldiscoveryappMldiscoveryEndpointDefaultRouteF2DFED1D-Permission | |
| MldiscoveryEndpointDefaultRouteHttpIntegration864130d68e21fc01715be3fdbf587a96B5D493E4: | |
| Type: AWS::ApiGatewayV2::Integration | |
| Properties: | |
| ApiId: | |
| Ref: MldiscoveryEndpoint9F2FA641 | |
| IntegrationType: AWS_PROXY | |
| IntegrationUri: | |
| Fn::GetAtt: | |
| - MldiscoveryB5544805 | |
| - Arn | |
| PayloadFormatVersion: "2.0" | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/MldiscoveryEndpoint/DefaultRoute/HttpIntegration-864130d68e21fc01715be3fdbf587a96/Resource | |
| MldiscoveryEndpointDefaultRoute99D31258: | |
| Type: AWS::ApiGatewayV2::Route | |
| Properties: | |
| ApiId: | |
| Ref: MldiscoveryEndpoint9F2FA641 | |
| RouteKey: $default | |
| AuthorizationScopes: [] | |
| Target: | |
| Fn::Join: | |
| - "" | |
| - - integrations/ | |
| - Ref: MldiscoveryEndpointDefaultRouteHttpIntegration864130d68e21fc01715be3fdbf587a96B5D493E4 | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/MldiscoveryEndpoint/DefaultRoute/Resource | |
| MldiscoveryEndpointDefaultStage568F1829: | |
| Type: AWS::ApiGatewayV2::Stage | |
| Properties: | |
| ApiId: | |
| Ref: MldiscoveryEndpoint9F2FA641 | |
| StageName: $default | |
| AutoDeploy: true | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/MldiscoveryEndpoint/DefaultStage/Resource | |
| CDKMetadata: | |
| Type: AWS::CDK::Metadata | |
| Properties: | |
| Modules: aws-cdk=1.91.0,@aws-cdk/assets=1.91.0,@aws-cdk/aws-apigatewayv2=1.91.0,@aws-cdk/aws-apigatewayv2-integrations=1.91.0,@aws-cdk/aws-applicationautoscaling=1.91.0,@aws-cdk/aws-autoscaling-common=1.91.0,@aws-cdk/aws-certificatemanager=1.91.0,@aws-cdk/aws-cloudformation=1.91.0,@aws-cdk/aws-cloudwatch=1.91.0,@aws-cdk/aws-codeguruprofiler=1.91.0,@aws-cdk/aws-ec2=1.91.0,@aws-cdk/aws-ecr=1.91.0,@aws-cdk/aws-ecr-assets=1.91.0,@aws-cdk/aws-efs=1.91.0,@aws-cdk/aws-elasticloadbalancingv2=1.91.0,@aws-cdk/aws-events=1.91.0,@aws-cdk/aws-iam=1.91.0,@aws-cdk/aws-kms=1.91.0,@aws-cdk/aws-lambda=1.91.0,@aws-cdk/aws-logs=1.91.0,@aws-cdk/aws-route53=1.91.0,@aws-cdk/aws-s3=1.91.0,@aws-cdk/aws-s3-assets=1.91.0,@aws-cdk/aws-servicediscovery=1.91.0,@aws-cdk/aws-sns=1.91.0,@aws-cdk/aws-sqs=1.91.0,@aws-cdk/aws-ssm=1.91.0,@aws-cdk/cloud-assembly-schema=1.91.0,@aws-cdk/core=1.91.0,@aws-cdk/custom-resources=1.91.0,@aws-cdk/cx-api=1.91.0,@aws-cdk/region-info=1.91.0,jsii-runtime=Python/3.8.5 | |
| Metadata: | |
| aws:cdk:path: mldiscovery-app/CDKMetadata/Default | |
| Outputs: | |
| HTTPAPIUrl: | |
| Value: | |
| Fn::Join: | |
| - "" | |
| - - https:// | |
| - Ref: MldiscoveryEndpoint9F2FA641 | |
| - .execute-api.sa-east-1. | |
| - Ref: AWS::URLSuffix | |
| - / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment