forked from aws-containers/hello-app-runner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cf.yaml
27 lines (27 loc) · 915 Bytes
/
cf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation template that deploys hello-app-runner app
Parameters:
ServiceName:
Type: String
Default: hello-app-runner
Description: Name for your App Runner service.
Resources:
Service:
Metadata:
'aws:apprunner:description': 'hello-app-runner example service'
Type: AWS::AppRunner::Service
Properties:
ServiceName: !Ref ServiceName
SourceConfiguration:
AutoDeploymentsEnabled: false
ImageRepository:
ImageIdentifier: public.ecr.aws/aws-containers/hello-app-runner:latest
ImageRepositoryType: ECR_PUBLIC
ImageConfiguration:
Port: 8000
Outputs:
Endpoint:
Description: "The endpoint of the App Runner service."
Value: !GetAtt Service.ServiceUrl