AWS::AppRunner::ServiceSpecify an AWS App Runner service by using the `AWS::AppRunner::Service` resource in an AWS CloudFormation template. The `AWS::AppRunner::Service` resource is an AWS App Runner resource type that specifies an App Runner service.
import { CfnService } from 'aws-cdk-lib/aws-apprunner';Or use the module namespace:
import * as apprunner from 'aws-cdk-lib/aws-apprunner';
// apprunner.CfnServiceConfiguration passed to the constructor as CfnServiceProps.
sourceConfigurationRequiredIResolvable | SourceConfigurationPropertyThe source to deploy to the App Runner service. It can be a code or an image repository.
autoScalingConfigurationArnOptionalstringThe Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration. Specify an ARN with a name and a revision number to associate that revision. For example: `arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3` Specify just the name to associate the latest revision. For example: `arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability`
encryptionConfigurationOptionalIResolvable | EncryptionConfigurationPropertyAn optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed key .
healthCheckConfigurationOptionalIResolvable | HealthCheckConfigurationPropertyThe settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.
instanceConfigurationOptionalIResolvable | InstanceConfigurationPropertyThe runtime configuration of instances (scaling units) of your service.
networkConfigurationOptionalIResolvable | NetworkConfigurationPropertyConfiguration settings related to network traffic of the web application that the App Runner service runs.
observabilityConfigurationOptionalIResolvable | ServiceObservabilityConfigurationPropertyThe observability configuration of your service.
serviceNameOptionalstringA name for the App Runner service. It must be unique across all the running App Runner services in your AWS account in the AWS Region . If you don't specify a name, CloudFormation generates a name for your service.
tagsOptionalCfnTag[]An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apprunnerAWS::AppRunner::Service