1. Packages
  2. AWS Classic
  3. API Docs
  4. apprunner
  5. Service

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.apprunner.Service

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Manages an App Runner Service.

    Example Usage

    Service with a Code Repository Source

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.apprunner.Service("example", {
        serviceName: "example",
        sourceConfiguration: {
            authenticationConfiguration: {
                connectionArn: exampleAwsApprunnerConnection.arn,
            },
            codeRepository: {
                codeConfiguration: {
                    codeConfigurationValues: {
                        buildCommand: "python setup.py develop",
                        port: "8000",
                        runtime: "PYTHON_3",
                        startCommand: "python runapp.py",
                    },
                    configurationSource: "API",
                },
                repositoryUrl: "https://github.com/example/my-example-python-app",
                sourceCodeVersion: {
                    type: "BRANCH",
                    value: "main",
                },
            },
        },
        networkConfiguration: {
            egressConfiguration: {
                egressType: "VPC",
                vpcConnectorArn: connector.arn,
            },
        },
        tags: {
            Name: "example-apprunner-service",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.apprunner.Service("example",
        service_name="example",
        source_configuration=aws.apprunner.ServiceSourceConfigurationArgs(
            authentication_configuration=aws.apprunner.ServiceSourceConfigurationAuthenticationConfigurationArgs(
                connection_arn=example_aws_apprunner_connection["arn"],
            ),
            code_repository=aws.apprunner.ServiceSourceConfigurationCodeRepositoryArgs(
                code_configuration=aws.apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs(
                    code_configuration_values=aws.apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs(
                        build_command="python setup.py develop",
                        port="8000",
                        runtime="PYTHON_3",
                        start_command="python runapp.py",
                    ),
                    configuration_source="API",
                ),
                repository_url="https://github.com/example/my-example-python-app",
                source_code_version=aws.apprunner.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs(
                    type="BRANCH",
                    value="main",
                ),
            ),
        ),
        network_configuration=aws.apprunner.ServiceNetworkConfigurationArgs(
            egress_configuration=aws.apprunner.ServiceNetworkConfigurationEgressConfigurationArgs(
                egress_type="VPC",
                vpc_connector_arn=connector["arn"],
            ),
        ),
        tags={
            "Name": "example-apprunner-service",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := apprunner.NewService(ctx, "example", &apprunner.ServiceArgs{
    			ServiceName: pulumi.String("example"),
    			SourceConfiguration: &apprunner.ServiceSourceConfigurationArgs{
    				AuthenticationConfiguration: &apprunner.ServiceSourceConfigurationAuthenticationConfigurationArgs{
    					ConnectionArn: pulumi.Any(exampleAwsApprunnerConnection.Arn),
    				},
    				CodeRepository: &apprunner.ServiceSourceConfigurationCodeRepositoryArgs{
    					CodeConfiguration: &apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs{
    						CodeConfigurationValues: &apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs{
    							BuildCommand: pulumi.String("python setup.py develop"),
    							Port:         pulumi.String("8000"),
    							Runtime:      pulumi.String("PYTHON_3"),
    							StartCommand: pulumi.String("python runapp.py"),
    						},
    						ConfigurationSource: pulumi.String("API"),
    					},
    					RepositoryUrl: pulumi.String("https://github.com/example/my-example-python-app"),
    					SourceCodeVersion: &apprunner.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs{
    						Type:  pulumi.String("BRANCH"),
    						Value: pulumi.String("main"),
    					},
    				},
    			},
    			NetworkConfiguration: &apprunner.ServiceNetworkConfigurationArgs{
    				EgressConfiguration: &apprunner.ServiceNetworkConfigurationEgressConfigurationArgs{
    					EgressType:      pulumi.String("VPC"),
    					VpcConnectorArn: pulumi.Any(connector.Arn),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-apprunner-service"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.AppRunner.Service("example", new()
        {
            ServiceName = "example",
            SourceConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationArgs
            {
                AuthenticationConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationAuthenticationConfigurationArgs
                {
                    ConnectionArn = exampleAwsApprunnerConnection.Arn,
                },
                CodeRepository = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryArgs
                {
                    CodeConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs
                    {
                        CodeConfigurationValues = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs
                        {
                            BuildCommand = "python setup.py develop",
                            Port = "8000",
                            Runtime = "PYTHON_3",
                            StartCommand = "python runapp.py",
                        },
                        ConfigurationSource = "API",
                    },
                    RepositoryUrl = "https://github.com/example/my-example-python-app",
                    SourceCodeVersion = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs
                    {
                        Type = "BRANCH",
                        Value = "main",
                    },
                },
            },
            NetworkConfiguration = new Aws.AppRunner.Inputs.ServiceNetworkConfigurationArgs
            {
                EgressConfiguration = new Aws.AppRunner.Inputs.ServiceNetworkConfigurationEgressConfigurationArgs
                {
                    EgressType = "VPC",
                    VpcConnectorArn = connector.Arn,
                },
            },
            Tags = 
            {
                { "Name", "example-apprunner-service" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.apprunner.Service;
    import com.pulumi.aws.apprunner.ServiceArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationAuthenticationConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceNetworkConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceNetworkConfigurationEgressConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Service("example", ServiceArgs.builder()        
                .serviceName("example")
                .sourceConfiguration(ServiceSourceConfigurationArgs.builder()
                    .authenticationConfiguration(ServiceSourceConfigurationAuthenticationConfigurationArgs.builder()
                        .connectionArn(exampleAwsApprunnerConnection.arn())
                        .build())
                    .codeRepository(ServiceSourceConfigurationCodeRepositoryArgs.builder()
                        .codeConfiguration(ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs.builder()
                            .codeConfigurationValues(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs.builder()
                                .buildCommand("python setup.py develop")
                                .port("8000")
                                .runtime("PYTHON_3")
                                .startCommand("python runapp.py")
                                .build())
                            .configurationSource("API")
                            .build())
                        .repositoryUrl("https://github.com/example/my-example-python-app")
                        .sourceCodeVersion(ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs.builder()
                            .type("BRANCH")
                            .value("main")
                            .build())
                        .build())
                    .build())
                .networkConfiguration(ServiceNetworkConfigurationArgs.builder()
                    .egressConfiguration(ServiceNetworkConfigurationEgressConfigurationArgs.builder()
                        .egressType("VPC")
                        .vpcConnectorArn(connector.arn())
                        .build())
                    .build())
                .tags(Map.of("Name", "example-apprunner-service"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:apprunner:Service
        properties:
          serviceName: example
          sourceConfiguration:
            authenticationConfiguration:
              connectionArn: ${exampleAwsApprunnerConnection.arn}
            codeRepository:
              codeConfiguration:
                codeConfigurationValues:
                  buildCommand: python setup.py develop
                  port: '8000'
                  runtime: PYTHON_3
                  startCommand: python runapp.py
                configurationSource: API
              repositoryUrl: https://github.com/example/my-example-python-app
              sourceCodeVersion:
                type: BRANCH
                value: main
          networkConfiguration:
            egressConfiguration:
              egressType: VPC
              vpcConnectorArn: ${connector.arn}
          tags:
            Name: example-apprunner-service
    

    Service with an Image Repository Source

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.apprunner.Service("example", {
        serviceName: "example",
        sourceConfiguration: {
            imageRepository: {
                imageConfiguration: {
                    port: "8000",
                },
                imageIdentifier: "public.ecr.aws/aws-containers/hello-app-runner:latest",
                imageRepositoryType: "ECR_PUBLIC",
            },
            autoDeploymentsEnabled: false,
        },
        tags: {
            Name: "example-apprunner-service",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.apprunner.Service("example",
        service_name="example",
        source_configuration=aws.apprunner.ServiceSourceConfigurationArgs(
            image_repository=aws.apprunner.ServiceSourceConfigurationImageRepositoryArgs(
                image_configuration=aws.apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs(
                    port="8000",
                ),
                image_identifier="public.ecr.aws/aws-containers/hello-app-runner:latest",
                image_repository_type="ECR_PUBLIC",
            ),
            auto_deployments_enabled=False,
        ),
        tags={
            "Name": "example-apprunner-service",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := apprunner.NewService(ctx, "example", &apprunner.ServiceArgs{
    			ServiceName: pulumi.String("example"),
    			SourceConfiguration: &apprunner.ServiceSourceConfigurationArgs{
    				ImageRepository: &apprunner.ServiceSourceConfigurationImageRepositoryArgs{
    					ImageConfiguration: &apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs{
    						Port: pulumi.String("8000"),
    					},
    					ImageIdentifier:     pulumi.String("public.ecr.aws/aws-containers/hello-app-runner:latest"),
    					ImageRepositoryType: pulumi.String("ECR_PUBLIC"),
    				},
    				AutoDeploymentsEnabled: pulumi.Bool(false),
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-apprunner-service"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.AppRunner.Service("example", new()
        {
            ServiceName = "example",
            SourceConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationArgs
            {
                ImageRepository = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryArgs
                {
                    ImageConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs
                    {
                        Port = "8000",
                    },
                    ImageIdentifier = "public.ecr.aws/aws-containers/hello-app-runner:latest",
                    ImageRepositoryType = "ECR_PUBLIC",
                },
                AutoDeploymentsEnabled = false,
            },
            Tags = 
            {
                { "Name", "example-apprunner-service" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.apprunner.Service;
    import com.pulumi.aws.apprunner.ServiceArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationImageRepositoryArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Service("example", ServiceArgs.builder()        
                .serviceName("example")
                .sourceConfiguration(ServiceSourceConfigurationArgs.builder()
                    .imageRepository(ServiceSourceConfigurationImageRepositoryArgs.builder()
                        .imageConfiguration(ServiceSourceConfigurationImageRepositoryImageConfigurationArgs.builder()
                            .port("8000")
                            .build())
                        .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
                        .imageRepositoryType("ECR_PUBLIC")
                        .build())
                    .autoDeploymentsEnabled(false)
                    .build())
                .tags(Map.of("Name", "example-apprunner-service"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:apprunner:Service
        properties:
          serviceName: example
          sourceConfiguration:
            imageRepository:
              imageConfiguration:
                port: '8000'
              imageIdentifier: public.ecr.aws/aws-containers/hello-app-runner:latest
              imageRepositoryType: ECR_PUBLIC
            autoDeploymentsEnabled: false
          tags:
            Name: example-apprunner-service
    

    Service with Observability Configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleObservabilityConfiguration = new aws.apprunner.ObservabilityConfiguration("example", {
        observabilityConfigurationName: "example",
        traceConfiguration: {
            vendor: "AWSXRAY",
        },
    });
    const example = new aws.apprunner.Service("example", {
        serviceName: "example",
        observabilityConfiguration: {
            observabilityConfigurationArn: exampleObservabilityConfiguration.arn,
            observabilityEnabled: true,
        },
        sourceConfiguration: {
            imageRepository: {
                imageConfiguration: {
                    port: "8000",
                },
                imageIdentifier: "public.ecr.aws/aws-containers/hello-app-runner:latest",
                imageRepositoryType: "ECR_PUBLIC",
            },
            autoDeploymentsEnabled: false,
        },
        tags: {
            Name: "example-apprunner-service",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example_observability_configuration = aws.apprunner.ObservabilityConfiguration("example",
        observability_configuration_name="example",
        trace_configuration=aws.apprunner.ObservabilityConfigurationTraceConfigurationArgs(
            vendor="AWSXRAY",
        ))
    example = aws.apprunner.Service("example",
        service_name="example",
        observability_configuration=aws.apprunner.ServiceObservabilityConfigurationArgs(
            observability_configuration_arn=example_observability_configuration.arn,
            observability_enabled=True,
        ),
        source_configuration=aws.apprunner.ServiceSourceConfigurationArgs(
            image_repository=aws.apprunner.ServiceSourceConfigurationImageRepositoryArgs(
                image_configuration=aws.apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs(
                    port="8000",
                ),
                image_identifier="public.ecr.aws/aws-containers/hello-app-runner:latest",
                image_repository_type="ECR_PUBLIC",
            ),
            auto_deployments_enabled=False,
        ),
        tags={
            "Name": "example-apprunner-service",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleObservabilityConfiguration, err := apprunner.NewObservabilityConfiguration(ctx, "example", &apprunner.ObservabilityConfigurationArgs{
    			ObservabilityConfigurationName: pulumi.String("example"),
    			TraceConfiguration: &apprunner.ObservabilityConfigurationTraceConfigurationArgs{
    				Vendor: pulumi.String("AWSXRAY"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apprunner.NewService(ctx, "example", &apprunner.ServiceArgs{
    			ServiceName: pulumi.String("example"),
    			ObservabilityConfiguration: &apprunner.ServiceObservabilityConfigurationArgs{
    				ObservabilityConfigurationArn: exampleObservabilityConfiguration.Arn,
    				ObservabilityEnabled:          pulumi.Bool(true),
    			},
    			SourceConfiguration: &apprunner.ServiceSourceConfigurationArgs{
    				ImageRepository: &apprunner.ServiceSourceConfigurationImageRepositoryArgs{
    					ImageConfiguration: &apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs{
    						Port: pulumi.String("8000"),
    					},
    					ImageIdentifier:     pulumi.String("public.ecr.aws/aws-containers/hello-app-runner:latest"),
    					ImageRepositoryType: pulumi.String("ECR_PUBLIC"),
    				},
    				AutoDeploymentsEnabled: pulumi.Bool(false),
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-apprunner-service"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleObservabilityConfiguration = new Aws.AppRunner.ObservabilityConfiguration("example", new()
        {
            ObservabilityConfigurationName = "example",
            TraceConfiguration = new Aws.AppRunner.Inputs.ObservabilityConfigurationTraceConfigurationArgs
            {
                Vendor = "AWSXRAY",
            },
        });
    
        var example = new Aws.AppRunner.Service("example", new()
        {
            ServiceName = "example",
            ObservabilityConfiguration = new Aws.AppRunner.Inputs.ServiceObservabilityConfigurationArgs
            {
                ObservabilityConfigurationArn = exampleObservabilityConfiguration.Arn,
                ObservabilityEnabled = true,
            },
            SourceConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationArgs
            {
                ImageRepository = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryArgs
                {
                    ImageConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs
                    {
                        Port = "8000",
                    },
                    ImageIdentifier = "public.ecr.aws/aws-containers/hello-app-runner:latest",
                    ImageRepositoryType = "ECR_PUBLIC",
                },
                AutoDeploymentsEnabled = false,
            },
            Tags = 
            {
                { "Name", "example-apprunner-service" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.apprunner.ObservabilityConfiguration;
    import com.pulumi.aws.apprunner.ObservabilityConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ObservabilityConfigurationTraceConfigurationArgs;
    import com.pulumi.aws.apprunner.Service;
    import com.pulumi.aws.apprunner.ServiceArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceObservabilityConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationImageRepositoryArgs;
    import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleObservabilityConfiguration = new ObservabilityConfiguration("exampleObservabilityConfiguration", ObservabilityConfigurationArgs.builder()        
                .observabilityConfigurationName("example")
                .traceConfiguration(ObservabilityConfigurationTraceConfigurationArgs.builder()
                    .vendor("AWSXRAY")
                    .build())
                .build());
    
            var example = new Service("example", ServiceArgs.builder()        
                .serviceName("example")
                .observabilityConfiguration(ServiceObservabilityConfigurationArgs.builder()
                    .observabilityConfigurationArn(exampleObservabilityConfiguration.arn())
                    .observabilityEnabled(true)
                    .build())
                .sourceConfiguration(ServiceSourceConfigurationArgs.builder()
                    .imageRepository(ServiceSourceConfigurationImageRepositoryArgs.builder()
                        .imageConfiguration(ServiceSourceConfigurationImageRepositoryImageConfigurationArgs.builder()
                            .port("8000")
                            .build())
                        .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
                        .imageRepositoryType("ECR_PUBLIC")
                        .build())
                    .autoDeploymentsEnabled(false)
                    .build())
                .tags(Map.of("Name", "example-apprunner-service"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:apprunner:Service
        properties:
          serviceName: example
          observabilityConfiguration:
            observabilityConfigurationArn: ${exampleObservabilityConfiguration.arn}
            observabilityEnabled: true
          sourceConfiguration:
            imageRepository:
              imageConfiguration:
                port: '8000'
              imageIdentifier: public.ecr.aws/aws-containers/hello-app-runner:latest
              imageRepositoryType: ECR_PUBLIC
            autoDeploymentsEnabled: false
          tags:
            Name: example-apprunner-service
      exampleObservabilityConfiguration:
        type: aws:apprunner:ObservabilityConfiguration
        name: example
        properties:
          observabilityConfigurationName: example
          traceConfiguration:
            vendor: AWSXRAY
    

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                service_name: Optional[str] = None,
                source_configuration: Optional[ServiceSourceConfigurationArgs] = None,
                auto_scaling_configuration_arn: Optional[str] = None,
                encryption_configuration: Optional[ServiceEncryptionConfigurationArgs] = None,
                health_check_configuration: Optional[ServiceHealthCheckConfigurationArgs] = None,
                instance_configuration: Optional[ServiceInstanceConfigurationArgs] = None,
                network_configuration: Optional[ServiceNetworkConfigurationArgs] = None,
                observability_configuration: Optional[ServiceObservabilityConfigurationArgs] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: aws:apprunner:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var serviceResource = new Aws.AppRunner.Service("serviceResource", new()
    {
        ServiceName = "string",
        SourceConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationArgs
        {
            AuthenticationConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationAuthenticationConfigurationArgs
            {
                AccessRoleArn = "string",
                ConnectionArn = "string",
            },
            AutoDeploymentsEnabled = false,
            CodeRepository = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryArgs
            {
                RepositoryUrl = "string",
                SourceCodeVersion = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs
                {
                    Type = "string",
                    Value = "string",
                },
                CodeConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs
                {
                    ConfigurationSource = "string",
                    CodeConfigurationValues = new Aws.AppRunner.Inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs
                    {
                        Runtime = "string",
                        BuildCommand = "string",
                        Port = "string",
                        RuntimeEnvironmentSecrets = 
                        {
                            { "string", "string" },
                        },
                        RuntimeEnvironmentVariables = 
                        {
                            { "string", "string" },
                        },
                        StartCommand = "string",
                    },
                },
                SourceDirectory = "string",
            },
            ImageRepository = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryArgs
            {
                ImageIdentifier = "string",
                ImageRepositoryType = "string",
                ImageConfiguration = new Aws.AppRunner.Inputs.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs
                {
                    Port = "string",
                    RuntimeEnvironmentSecrets = 
                    {
                        { "string", "string" },
                    },
                    RuntimeEnvironmentVariables = 
                    {
                        { "string", "string" },
                    },
                    StartCommand = "string",
                },
            },
        },
        AutoScalingConfigurationArn = "string",
        EncryptionConfiguration = new Aws.AppRunner.Inputs.ServiceEncryptionConfigurationArgs
        {
            KmsKey = "string",
        },
        HealthCheckConfiguration = new Aws.AppRunner.Inputs.ServiceHealthCheckConfigurationArgs
        {
            HealthyThreshold = 0,
            Interval = 0,
            Path = "string",
            Protocol = "string",
            Timeout = 0,
            UnhealthyThreshold = 0,
        },
        InstanceConfiguration = new Aws.AppRunner.Inputs.ServiceInstanceConfigurationArgs
        {
            Cpu = "string",
            InstanceRoleArn = "string",
            Memory = "string",
        },
        NetworkConfiguration = new Aws.AppRunner.Inputs.ServiceNetworkConfigurationArgs
        {
            EgressConfiguration = new Aws.AppRunner.Inputs.ServiceNetworkConfigurationEgressConfigurationArgs
            {
                EgressType = "string",
                VpcConnectorArn = "string",
            },
            IngressConfiguration = new Aws.AppRunner.Inputs.ServiceNetworkConfigurationIngressConfigurationArgs
            {
                IsPubliclyAccessible = false,
            },
            IpAddressType = "string",
        },
        ObservabilityConfiguration = new Aws.AppRunner.Inputs.ServiceObservabilityConfigurationArgs
        {
            ObservabilityEnabled = false,
            ObservabilityConfigurationArn = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := apprunner.NewService(ctx, "serviceResource", &apprunner.ServiceArgs{
    	ServiceName: pulumi.String("string"),
    	SourceConfiguration: &apprunner.ServiceSourceConfigurationArgs{
    		AuthenticationConfiguration: &apprunner.ServiceSourceConfigurationAuthenticationConfigurationArgs{
    			AccessRoleArn: pulumi.String("string"),
    			ConnectionArn: pulumi.String("string"),
    		},
    		AutoDeploymentsEnabled: pulumi.Bool(false),
    		CodeRepository: &apprunner.ServiceSourceConfigurationCodeRepositoryArgs{
    			RepositoryUrl: pulumi.String("string"),
    			SourceCodeVersion: &apprunner.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs{
    				Type:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    			CodeConfiguration: &apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs{
    				ConfigurationSource: pulumi.String("string"),
    				CodeConfigurationValues: &apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs{
    					Runtime:      pulumi.String("string"),
    					BuildCommand: pulumi.String("string"),
    					Port:         pulumi.String("string"),
    					RuntimeEnvironmentSecrets: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    					RuntimeEnvironmentVariables: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    					StartCommand: pulumi.String("string"),
    				},
    			},
    			SourceDirectory: pulumi.String("string"),
    		},
    		ImageRepository: &apprunner.ServiceSourceConfigurationImageRepositoryArgs{
    			ImageIdentifier:     pulumi.String("string"),
    			ImageRepositoryType: pulumi.String("string"),
    			ImageConfiguration: &apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs{
    				Port: pulumi.String("string"),
    				RuntimeEnvironmentSecrets: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				RuntimeEnvironmentVariables: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				StartCommand: pulumi.String("string"),
    			},
    		},
    	},
    	AutoScalingConfigurationArn: pulumi.String("string"),
    	EncryptionConfiguration: &apprunner.ServiceEncryptionConfigurationArgs{
    		KmsKey: pulumi.String("string"),
    	},
    	HealthCheckConfiguration: &apprunner.ServiceHealthCheckConfigurationArgs{
    		HealthyThreshold:   pulumi.Int(0),
    		Interval:           pulumi.Int(0),
    		Path:               pulumi.String("string"),
    		Protocol:           pulumi.String("string"),
    		Timeout:            pulumi.Int(0),
    		UnhealthyThreshold: pulumi.Int(0),
    	},
    	InstanceConfiguration: &apprunner.ServiceInstanceConfigurationArgs{
    		Cpu:             pulumi.String("string"),
    		InstanceRoleArn: pulumi.String("string"),
    		Memory:          pulumi.String("string"),
    	},
    	NetworkConfiguration: &apprunner.ServiceNetworkConfigurationArgs{
    		EgressConfiguration: &apprunner.ServiceNetworkConfigurationEgressConfigurationArgs{
    			EgressType:      pulumi.String("string"),
    			VpcConnectorArn: pulumi.String("string"),
    		},
    		IngressConfiguration: &apprunner.ServiceNetworkConfigurationIngressConfigurationArgs{
    			IsPubliclyAccessible: pulumi.Bool(false),
    		},
    		IpAddressType: pulumi.String("string"),
    	},
    	ObservabilityConfiguration: &apprunner.ServiceObservabilityConfigurationArgs{
    		ObservabilityEnabled:          pulumi.Bool(false),
    		ObservabilityConfigurationArn: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var serviceResource = new Service("serviceResource", ServiceArgs.builder()        
        .serviceName("string")
        .sourceConfiguration(ServiceSourceConfigurationArgs.builder()
            .authenticationConfiguration(ServiceSourceConfigurationAuthenticationConfigurationArgs.builder()
                .accessRoleArn("string")
                .connectionArn("string")
                .build())
            .autoDeploymentsEnabled(false)
            .codeRepository(ServiceSourceConfigurationCodeRepositoryArgs.builder()
                .repositoryUrl("string")
                .sourceCodeVersion(ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs.builder()
                    .type("string")
                    .value("string")
                    .build())
                .codeConfiguration(ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs.builder()
                    .configurationSource("string")
                    .codeConfigurationValues(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs.builder()
                        .runtime("string")
                        .buildCommand("string")
                        .port("string")
                        .runtimeEnvironmentSecrets(Map.of("string", "string"))
                        .runtimeEnvironmentVariables(Map.of("string", "string"))
                        .startCommand("string")
                        .build())
                    .build())
                .sourceDirectory("string")
                .build())
            .imageRepository(ServiceSourceConfigurationImageRepositoryArgs.builder()
                .imageIdentifier("string")
                .imageRepositoryType("string")
                .imageConfiguration(ServiceSourceConfigurationImageRepositoryImageConfigurationArgs.builder()
                    .port("string")
                    .runtimeEnvironmentSecrets(Map.of("string", "string"))
                    .runtimeEnvironmentVariables(Map.of("string", "string"))
                    .startCommand("string")
                    .build())
                .build())
            .build())
        .autoScalingConfigurationArn("string")
        .encryptionConfiguration(ServiceEncryptionConfigurationArgs.builder()
            .kmsKey("string")
            .build())
        .healthCheckConfiguration(ServiceHealthCheckConfigurationArgs.builder()
            .healthyThreshold(0)
            .interval(0)
            .path("string")
            .protocol("string")
            .timeout(0)
            .unhealthyThreshold(0)
            .build())
        .instanceConfiguration(ServiceInstanceConfigurationArgs.builder()
            .cpu("string")
            .instanceRoleArn("string")
            .memory("string")
            .build())
        .networkConfiguration(ServiceNetworkConfigurationArgs.builder()
            .egressConfiguration(ServiceNetworkConfigurationEgressConfigurationArgs.builder()
                .egressType("string")
                .vpcConnectorArn("string")
                .build())
            .ingressConfiguration(ServiceNetworkConfigurationIngressConfigurationArgs.builder()
                .isPubliclyAccessible(false)
                .build())
            .ipAddressType("string")
            .build())
        .observabilityConfiguration(ServiceObservabilityConfigurationArgs.builder()
            .observabilityEnabled(false)
            .observabilityConfigurationArn("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    service_resource = aws.apprunner.Service("serviceResource",
        service_name="string",
        source_configuration=aws.apprunner.ServiceSourceConfigurationArgs(
            authentication_configuration=aws.apprunner.ServiceSourceConfigurationAuthenticationConfigurationArgs(
                access_role_arn="string",
                connection_arn="string",
            ),
            auto_deployments_enabled=False,
            code_repository=aws.apprunner.ServiceSourceConfigurationCodeRepositoryArgs(
                repository_url="string",
                source_code_version=aws.apprunner.ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs(
                    type="string",
                    value="string",
                ),
                code_configuration=aws.apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs(
                    configuration_source="string",
                    code_configuration_values=aws.apprunner.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs(
                        runtime="string",
                        build_command="string",
                        port="string",
                        runtime_environment_secrets={
                            "string": "string",
                        },
                        runtime_environment_variables={
                            "string": "string",
                        },
                        start_command="string",
                    ),
                ),
                source_directory="string",
            ),
            image_repository=aws.apprunner.ServiceSourceConfigurationImageRepositoryArgs(
                image_identifier="string",
                image_repository_type="string",
                image_configuration=aws.apprunner.ServiceSourceConfigurationImageRepositoryImageConfigurationArgs(
                    port="string",
                    runtime_environment_secrets={
                        "string": "string",
                    },
                    runtime_environment_variables={
                        "string": "string",
                    },
                    start_command="string",
                ),
            ),
        ),
        auto_scaling_configuration_arn="string",
        encryption_configuration=aws.apprunner.ServiceEncryptionConfigurationArgs(
            kms_key="string",
        ),
        health_check_configuration=aws.apprunner.ServiceHealthCheckConfigurationArgs(
            healthy_threshold=0,
            interval=0,
            path="string",
            protocol="string",
            timeout=0,
            unhealthy_threshold=0,
        ),
        instance_configuration=aws.apprunner.ServiceInstanceConfigurationArgs(
            cpu="string",
            instance_role_arn="string",
            memory="string",
        ),
        network_configuration=aws.apprunner.ServiceNetworkConfigurationArgs(
            egress_configuration=aws.apprunner.ServiceNetworkConfigurationEgressConfigurationArgs(
                egress_type="string",
                vpc_connector_arn="string",
            ),
            ingress_configuration=aws.apprunner.ServiceNetworkConfigurationIngressConfigurationArgs(
                is_publicly_accessible=False,
            ),
            ip_address_type="string",
        ),
        observability_configuration=aws.apprunner.ServiceObservabilityConfigurationArgs(
            observability_enabled=False,
            observability_configuration_arn="string",
        ),
        tags={
            "string": "string",
        })
    
    const serviceResource = new aws.apprunner.Service("serviceResource", {
        serviceName: "string",
        sourceConfiguration: {
            authenticationConfiguration: {
                accessRoleArn: "string",
                connectionArn: "string",
            },
            autoDeploymentsEnabled: false,
            codeRepository: {
                repositoryUrl: "string",
                sourceCodeVersion: {
                    type: "string",
                    value: "string",
                },
                codeConfiguration: {
                    configurationSource: "string",
                    codeConfigurationValues: {
                        runtime: "string",
                        buildCommand: "string",
                        port: "string",
                        runtimeEnvironmentSecrets: {
                            string: "string",
                        },
                        runtimeEnvironmentVariables: {
                            string: "string",
                        },
                        startCommand: "string",
                    },
                },
                sourceDirectory: "string",
            },
            imageRepository: {
                imageIdentifier: "string",
                imageRepositoryType: "string",
                imageConfiguration: {
                    port: "string",
                    runtimeEnvironmentSecrets: {
                        string: "string",
                    },
                    runtimeEnvironmentVariables: {
                        string: "string",
                    },
                    startCommand: "string",
                },
            },
        },
        autoScalingConfigurationArn: "string",
        encryptionConfiguration: {
            kmsKey: "string",
        },
        healthCheckConfiguration: {
            healthyThreshold: 0,
            interval: 0,
            path: "string",
            protocol: "string",
            timeout: 0,
            unhealthyThreshold: 0,
        },
        instanceConfiguration: {
            cpu: "string",
            instanceRoleArn: "string",
            memory: "string",
        },
        networkConfiguration: {
            egressConfiguration: {
                egressType: "string",
                vpcConnectorArn: "string",
            },
            ingressConfiguration: {
                isPubliclyAccessible: false,
            },
            ipAddressType: "string",
        },
        observabilityConfiguration: {
            observabilityEnabled: false,
            observabilityConfigurationArn: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: aws:apprunner:Service
    properties:
        autoScalingConfigurationArn: string
        encryptionConfiguration:
            kmsKey: string
        healthCheckConfiguration:
            healthyThreshold: 0
            interval: 0
            path: string
            protocol: string
            timeout: 0
            unhealthyThreshold: 0
        instanceConfiguration:
            cpu: string
            instanceRoleArn: string
            memory: string
        networkConfiguration:
            egressConfiguration:
                egressType: string
                vpcConnectorArn: string
            ingressConfiguration:
                isPubliclyAccessible: false
            ipAddressType: string
        observabilityConfiguration:
            observabilityConfigurationArn: string
            observabilityEnabled: false
        serviceName: string
        sourceConfiguration:
            authenticationConfiguration:
                accessRoleArn: string
                connectionArn: string
            autoDeploymentsEnabled: false
            codeRepository:
                codeConfiguration:
                    codeConfigurationValues:
                        buildCommand: string
                        port: string
                        runtime: string
                        runtimeEnvironmentSecrets:
                            string: string
                        runtimeEnvironmentVariables:
                            string: string
                        startCommand: string
                    configurationSource: string
                repositoryUrl: string
                sourceCodeVersion:
                    type: string
                    value: string
                sourceDirectory: string
            imageRepository:
                imageConfiguration:
                    port: string
                    runtimeEnvironmentSecrets:
                        string: string
                    runtimeEnvironmentVariables:
                        string: string
                    startCommand: string
                imageIdentifier: string
                imageRepositoryType: string
        tags:
            string: string
    

    Service Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Service resource accepts the following input properties:

    ServiceName string
    Name of the service.
    SourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    AutoScalingConfigurationArn string
    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.
    EncryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    HealthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    InstanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    NetworkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    ObservabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    ServiceName string
    Name of the service.
    SourceConfiguration ServiceSourceConfigurationArgs

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    AutoScalingConfigurationArn string
    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.
    EncryptionConfiguration ServiceEncryptionConfigurationArgs
    An 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 CMK. See Encryption Configuration below for more details.
    HealthCheckConfiguration ServiceHealthCheckConfigurationArgs
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    InstanceConfiguration ServiceInstanceConfigurationArgs
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    NetworkConfiguration ServiceNetworkConfigurationArgs
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    ObservabilityConfiguration ServiceObservabilityConfigurationArgs
    The observability configuration of your service. See Observability Configuration below for more details.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    serviceName String
    Name of the service.
    sourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    autoScalingConfigurationArn String
    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.
    encryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    serviceName string
    Name of the service.
    sourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    autoScalingConfigurationArn string
    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.
    encryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    service_name str
    Name of the service.
    source_configuration ServiceSourceConfigurationArgs

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    auto_scaling_configuration_arn str
    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.
    encryption_configuration ServiceEncryptionConfigurationArgs
    An 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 CMK. See Encryption Configuration below for more details.
    health_check_configuration ServiceHealthCheckConfigurationArgs
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instance_configuration ServiceInstanceConfigurationArgs
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    network_configuration ServiceNetworkConfigurationArgs
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observability_configuration ServiceObservabilityConfigurationArgs
    The observability configuration of your service. See Observability Configuration below for more details.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    serviceName String
    Name of the service.
    sourceConfiguration Property Map

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    autoScalingConfigurationArn String
    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.
    encryptionConfiguration Property Map
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration Property Map
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration Property Map
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration Property Map
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration Property Map
    The observability configuration of your service. See Observability Configuration below for more details.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    Arn string
    ARN of the App Runner service.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    ServiceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    Status string
    Current state of the App Runner service.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the App Runner service.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    ServiceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    Status string
    Current state of the App Runner service.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the App Runner service.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceId String
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceUrl String
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    status String
    Current state of the App Runner service.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the App Runner service.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    status string
    Current state of the App Runner service.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the App Runner service.
    id str
    The provider-assigned unique ID for this managed resource.
    service_id str
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    service_url str
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    status str
    Current state of the App Runner service.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the App Runner service.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceId String
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceUrl String
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    status String
    Current state of the App Runner service.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing Service Resource

    Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            auto_scaling_configuration_arn: Optional[str] = None,
            encryption_configuration: Optional[ServiceEncryptionConfigurationArgs] = None,
            health_check_configuration: Optional[ServiceHealthCheckConfigurationArgs] = None,
            instance_configuration: Optional[ServiceInstanceConfigurationArgs] = None,
            network_configuration: Optional[ServiceNetworkConfigurationArgs] = None,
            observability_configuration: Optional[ServiceObservabilityConfigurationArgs] = None,
            service_id: Optional[str] = None,
            service_name: Optional[str] = None,
            service_url: Optional[str] = None,
            source_configuration: Optional[ServiceSourceConfigurationArgs] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the App Runner service.
    AutoScalingConfigurationArn string
    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.
    EncryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    HealthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    InstanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    NetworkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    ObservabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    ServiceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    ServiceName string
    Name of the service.
    ServiceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    SourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    Status string
    Current state of the App Runner service.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the App Runner service.
    AutoScalingConfigurationArn string
    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.
    EncryptionConfiguration ServiceEncryptionConfigurationArgs
    An 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 CMK. See Encryption Configuration below for more details.
    HealthCheckConfiguration ServiceHealthCheckConfigurationArgs
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    InstanceConfiguration ServiceInstanceConfigurationArgs
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    NetworkConfiguration ServiceNetworkConfigurationArgs
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    ObservabilityConfiguration ServiceObservabilityConfigurationArgs
    The observability configuration of your service. See Observability Configuration below for more details.
    ServiceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    ServiceName string
    Name of the service.
    ServiceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    SourceConfiguration ServiceSourceConfigurationArgs

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    Status string
    Current state of the App Runner service.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the App Runner service.
    autoScalingConfigurationArn String
    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.
    encryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    serviceId String
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceName String
    Name of the service.
    serviceUrl String
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    sourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    status String
    Current state of the App Runner service.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the App Runner service.
    autoScalingConfigurationArn string
    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.
    encryptionConfiguration ServiceEncryptionConfiguration
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration ServiceHealthCheckConfiguration
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration ServiceInstanceConfiguration
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration ServiceNetworkConfiguration
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration ServiceObservabilityConfiguration
    The observability configuration of your service. See Observability Configuration below for more details.
    serviceId string
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceName string
    Name of the service.
    serviceUrl string
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    sourceConfiguration ServiceSourceConfiguration

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    status string
    Current state of the App Runner service.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the App Runner service.
    auto_scaling_configuration_arn str
    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.
    encryption_configuration ServiceEncryptionConfigurationArgs
    An 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 CMK. See Encryption Configuration below for more details.
    health_check_configuration ServiceHealthCheckConfigurationArgs
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instance_configuration ServiceInstanceConfigurationArgs
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    network_configuration ServiceNetworkConfigurationArgs
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observability_configuration ServiceObservabilityConfigurationArgs
    The observability configuration of your service. See Observability Configuration below for more details.
    service_id str
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    service_name str
    Name of the service.
    service_url str
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    source_configuration ServiceSourceConfigurationArgs

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    status str
    Current state of the App Runner service.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the App Runner service.
    autoScalingConfigurationArn String
    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.
    encryptionConfiguration Property Map
    An 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 CMK. See Encryption Configuration below for more details.
    healthCheckConfiguration Property Map
    Settings of the health check that AWS App Runner performs to monitor the health of your service. See Health Check Configuration below for more details.
    instanceConfiguration Property Map
    The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
    networkConfiguration Property Map
    Configuration settings related to network traffic of the web application that the App Runner service runs. See Network Configuration below for more details.
    observabilityConfiguration Property Map
    The observability configuration of your service. See Observability Configuration below for more details.
    serviceId String
    An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
    serviceName String
    Name of the service.
    serviceUrl String
    Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
    sourceConfiguration Property Map

    The source to deploy to the App Runner service. Can be a code or an image repository. See Source Configuration below for more details.

    The following arguments are optional:

    status String
    Current state of the App Runner service.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    ServiceEncryptionConfiguration, ServiceEncryptionConfigurationArgs

    KmsKey string
    ARN of the KMS key used for encryption.
    KmsKey string
    ARN of the KMS key used for encryption.
    kmsKey String
    ARN of the KMS key used for encryption.
    kmsKey string
    ARN of the KMS key used for encryption.
    kms_key str
    ARN of the KMS key used for encryption.
    kmsKey String
    ARN of the KMS key used for encryption.

    ServiceHealthCheckConfiguration, ServiceHealthCheckConfigurationArgs

    HealthyThreshold int
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    Interval int
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    Path string
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    Protocol string
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    Timeout int
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    UnhealthyThreshold int
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
    HealthyThreshold int
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    Interval int
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    Path string
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    Protocol string
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    Timeout int
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    UnhealthyThreshold int
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
    healthyThreshold Integer
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    interval Integer
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    path String
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    protocol String
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    timeout Integer
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    unhealthyThreshold Integer
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
    healthyThreshold number
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    interval number
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    path string
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    protocol string
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    timeout number
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    unhealthyThreshold number
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
    healthy_threshold int
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    interval int
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    path str
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    protocol str
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    timeout int
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    unhealthy_threshold int
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
    healthyThreshold Number
    Number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
    interval Number
    Time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
    path String
    URL to send requests to for health checks. Defaults to /. Minimum length of 0. Maximum length of 51200.
    protocol String
    IP protocol that App Runner uses to perform health checks for your service. Valid values: TCP, HTTP. Defaults to TCP. If you set protocol to HTTP, App Runner sends health check requests to the HTTP path specified by path.
    timeout Number
    Time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
    unhealthyThreshold Number
    Number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.

    ServiceInstanceConfiguration, ServiceInstanceConfigurationArgs

    Cpu string
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    InstanceRoleArn string
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    Memory string
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.
    Cpu string
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    InstanceRoleArn string
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    Memory string
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.
    cpu String
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    instanceRoleArn String
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    memory String
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.
    cpu string
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    instanceRoleArn string
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    memory string
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.
    cpu str
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    instance_role_arn str
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    memory str
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.
    cpu String
    Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to 1024. Valid values: 256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU.
    instanceRoleArn String
    ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
    memory String
    Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to 2048. Valid values: 512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB.

    ServiceNetworkConfiguration, ServiceNetworkConfigurationArgs

    EgressConfiguration ServiceNetworkConfigurationEgressConfiguration
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    IngressConfiguration ServiceNetworkConfigurationIngressConfiguration
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    IpAddressType string
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.
    EgressConfiguration ServiceNetworkConfigurationEgressConfiguration
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    IngressConfiguration ServiceNetworkConfigurationIngressConfiguration
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    IpAddressType string
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.
    egressConfiguration ServiceNetworkConfigurationEgressConfiguration
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    ingressConfiguration ServiceNetworkConfigurationIngressConfiguration
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    ipAddressType String
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.
    egressConfiguration ServiceNetworkConfigurationEgressConfiguration
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    ingressConfiguration ServiceNetworkConfigurationIngressConfiguration
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    ipAddressType string
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.
    egress_configuration ServiceNetworkConfigurationEgressConfiguration
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    ingress_configuration ServiceNetworkConfigurationIngressConfiguration
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    ip_address_type str
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.
    egressConfiguration Property Map
    Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
    ingressConfiguration Property Map
    Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
    ipAddressType String
    App Runner provides you with the option to choose between Internet Protocol version 4 (IPv4) and dual stack (IPv4 and IPv6) for your incoming public network configuration. Valid values: IPV4, DUAL_STACK. Default: IPV4.

    ServiceNetworkConfigurationEgressConfiguration, ServiceNetworkConfigurationEgressConfigurationArgs

    EgressType string
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    VpcConnectorArn string
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
    EgressType string
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    VpcConnectorArn string
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
    egressType String
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    vpcConnectorArn String
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
    egressType string
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    vpcConnectorArn string
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
    egress_type str
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    vpc_connector_arn str
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.
    egressType String
    The type of egress configuration. Valid values are: DEFAULT and VPC.
    vpcConnectorArn String
    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC.

    ServiceNetworkConfigurationIngressConfiguration, ServiceNetworkConfigurationIngressConfigurationArgs

    IsPubliclyAccessible bool
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
    IsPubliclyAccessible bool
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
    isPubliclyAccessible Boolean
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
    isPubliclyAccessible boolean
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
    is_publicly_accessible bool
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.
    isPubliclyAccessible Boolean
    Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to True. To make the service privately accessible, from only within an Amazon VPC set it to False.

    ServiceObservabilityConfiguration, ServiceObservabilityConfigurationArgs

    ObservabilityEnabled bool
    When true, an observability configuration resource is associated with the service.
    ObservabilityConfigurationArn string
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.
    ObservabilityEnabled bool
    When true, an observability configuration resource is associated with the service.
    ObservabilityConfigurationArn string
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.
    observabilityEnabled Boolean
    When true, an observability configuration resource is associated with the service.
    observabilityConfigurationArn String
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.
    observabilityEnabled boolean
    When true, an observability configuration resource is associated with the service.
    observabilityConfigurationArn string
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.
    observability_enabled bool
    When true, an observability configuration resource is associated with the service.
    observability_configuration_arn str
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.
    observabilityEnabled Boolean
    When true, an observability configuration resource is associated with the service.
    observabilityConfigurationArn String
    ARN of the observability configuration that is associated with the service. Specified only when observability_enabled is true.

    ServiceSourceConfiguration, ServiceSourceConfigurationArgs

    AuthenticationConfiguration ServiceSourceConfigurationAuthenticationConfiguration
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    AutoDeploymentsEnabled bool
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    CodeRepository ServiceSourceConfigurationCodeRepository
    Description of a source code repository. See Code Repository below for more details.
    ImageRepository ServiceSourceConfigurationImageRepository
    Description of a source image repository. See Image Repository below for more details.
    AuthenticationConfiguration ServiceSourceConfigurationAuthenticationConfiguration
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    AutoDeploymentsEnabled bool
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    CodeRepository ServiceSourceConfigurationCodeRepository
    Description of a source code repository. See Code Repository below for more details.
    ImageRepository ServiceSourceConfigurationImageRepository
    Description of a source image repository. See Image Repository below for more details.
    authenticationConfiguration ServiceSourceConfigurationAuthenticationConfiguration
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    autoDeploymentsEnabled Boolean
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    codeRepository ServiceSourceConfigurationCodeRepository
    Description of a source code repository. See Code Repository below for more details.
    imageRepository ServiceSourceConfigurationImageRepository
    Description of a source image repository. See Image Repository below for more details.
    authenticationConfiguration ServiceSourceConfigurationAuthenticationConfiguration
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    autoDeploymentsEnabled boolean
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    codeRepository ServiceSourceConfigurationCodeRepository
    Description of a source code repository. See Code Repository below for more details.
    imageRepository ServiceSourceConfigurationImageRepository
    Description of a source image repository. See Image Repository below for more details.
    authentication_configuration ServiceSourceConfigurationAuthenticationConfiguration
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    auto_deployments_enabled bool
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    code_repository ServiceSourceConfigurationCodeRepository
    Description of a source code repository. See Code Repository below for more details.
    image_repository ServiceSourceConfigurationImageRepository
    Description of a source image repository. See Image Repository below for more details.
    authenticationConfiguration Property Map
    Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
    autoDeploymentsEnabled Boolean
    Whether continuous integration from the source repository is enabled for the App Runner service. If set to true, each repository change (source code commit or new image version) starts a deployment. Defaults to true.
    codeRepository Property Map
    Description of a source code repository. See Code Repository below for more details.
    imageRepository Property Map
    Description of a source image repository. See Image Repository below for more details.

    ServiceSourceConfigurationAuthenticationConfiguration, ServiceSourceConfigurationAuthenticationConfigurationArgs

    AccessRoleArn string
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    ConnectionArn string
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
    AccessRoleArn string
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    ConnectionArn string
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
    accessRoleArn String
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    connectionArn String
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
    accessRoleArn string
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    connectionArn string
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
    access_role_arn str
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    connection_arn str
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
    accessRoleArn String
    ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
    connectionArn String
    ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.

    ServiceSourceConfigurationCodeRepository, ServiceSourceConfigurationCodeRepositoryArgs

    RepositoryUrl string
    Location of the repository that contains the source code.
    SourceCodeVersion ServiceSourceConfigurationCodeRepositorySourceCodeVersion
    Version that should be used within the source code repository. See Source Code Version below for more details.
    CodeConfiguration ServiceSourceConfigurationCodeRepositoryCodeConfiguration
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    SourceDirectory string
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
    RepositoryUrl string
    Location of the repository that contains the source code.
    SourceCodeVersion ServiceSourceConfigurationCodeRepositorySourceCodeVersion
    Version that should be used within the source code repository. See Source Code Version below for more details.
    CodeConfiguration ServiceSourceConfigurationCodeRepositoryCodeConfiguration
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    SourceDirectory string
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
    repositoryUrl String
    Location of the repository that contains the source code.
    sourceCodeVersion ServiceSourceConfigurationCodeRepositorySourceCodeVersion
    Version that should be used within the source code repository. See Source Code Version below for more details.
    codeConfiguration ServiceSourceConfigurationCodeRepositoryCodeConfiguration
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    sourceDirectory String
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
    repositoryUrl string
    Location of the repository that contains the source code.
    sourceCodeVersion ServiceSourceConfigurationCodeRepositorySourceCodeVersion
    Version that should be used within the source code repository. See Source Code Version below for more details.
    codeConfiguration ServiceSourceConfigurationCodeRepositoryCodeConfiguration
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    sourceDirectory string
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
    repository_url str
    Location of the repository that contains the source code.
    source_code_version ServiceSourceConfigurationCodeRepositorySourceCodeVersion
    Version that should be used within the source code repository. See Source Code Version below for more details.
    code_configuration ServiceSourceConfigurationCodeRepositoryCodeConfiguration
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    source_directory str
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
    repositoryUrl String
    Location of the repository that contains the source code.
    sourceCodeVersion Property Map
    Version that should be used within the source code repository. See Source Code Version below for more details.
    codeConfiguration Property Map
    Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
    sourceDirectory String
    The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.

    ServiceSourceConfigurationCodeRepositoryCodeConfiguration, ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs

    ConfigurationSource string
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    CodeConfigurationValues ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
    ConfigurationSource string
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    CodeConfigurationValues ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
    configurationSource String
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    codeConfigurationValues ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
    configurationSource string
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    codeConfigurationValues ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
    configuration_source str
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    code_configuration_values ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
    configurationSource String
    Source of the App Runner configuration. Valid values: REPOSITORY, API. Values are interpreted as follows:
    codeConfigurationValues Property Map
    Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.

    ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues, ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs

    Runtime string
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    BuildCommand string
    Command App Runner runs to build your application.
    Port string
    Port that your application listens to in the container. Defaults to "8080".
    RuntimeEnvironmentSecrets Dictionary<string, string>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    RuntimeEnvironmentVariables Dictionary<string, string>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    StartCommand string
    Command App Runner runs to start your application.
    Runtime string
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    BuildCommand string
    Command App Runner runs to build your application.
    Port string
    Port that your application listens to in the container. Defaults to "8080".
    RuntimeEnvironmentSecrets map[string]string
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    RuntimeEnvironmentVariables map[string]string
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    StartCommand string
    Command App Runner runs to start your application.
    runtime String
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    buildCommand String
    Command App Runner runs to build your application.
    port String
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets Map<String,String>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables Map<String,String>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand String
    Command App Runner runs to start your application.
    runtime string
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    buildCommand string
    Command App Runner runs to build your application.
    port string
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets {[key: string]: string}
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables {[key: string]: string}
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand string
    Command App Runner runs to start your application.
    runtime str
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    build_command str
    Command App Runner runs to build your application.
    port str
    Port that your application listens to in the container. Defaults to "8080".
    runtime_environment_secrets Mapping[str, str]
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtime_environment_variables Mapping[str, str]
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    start_command str
    Command App Runner runs to start your application.
    runtime String
    Runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: PYTHON_3, NODEJS_12, NODEJS_14, NODEJS_16, CORRETTO_8, CORRETTO_11, GO_1, DOTNET_6, PHP_81, RUBY_31.
    buildCommand String
    Command App Runner runs to build your application.
    port String
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets Map<String>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables Map<String>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand String
    Command App Runner runs to start your application.

    ServiceSourceConfigurationCodeRepositorySourceCodeVersion, ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs

    Type string
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    Value string
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
    Type string
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    Value string
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
    type String
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    value String
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
    type string
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    value string
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
    type str
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    value str
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
    type String
    Type of version identifier. For a git-based repository, branches represent versions. Valid values: BRANCH.
    value String
    Source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.

    ServiceSourceConfigurationImageRepository, ServiceSourceConfigurationImageRepositoryArgs

    ImageIdentifier string
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    ImageRepositoryType string
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    ImageConfiguration ServiceSourceConfigurationImageRepositoryImageConfiguration
    Configuration for running the identified image. See Image Configuration below for more details.
    ImageIdentifier string
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    ImageRepositoryType string
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    ImageConfiguration ServiceSourceConfigurationImageRepositoryImageConfiguration
    Configuration for running the identified image. See Image Configuration below for more details.
    imageIdentifier String
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    imageRepositoryType String
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    imageConfiguration ServiceSourceConfigurationImageRepositoryImageConfiguration
    Configuration for running the identified image. See Image Configuration below for more details.
    imageIdentifier string
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    imageRepositoryType string
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    imageConfiguration ServiceSourceConfigurationImageRepositoryImageConfiguration
    Configuration for running the identified image. See Image Configuration below for more details.
    image_identifier str
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    image_repository_type str
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    image_configuration ServiceSourceConfigurationImageRepositoryImageConfiguration
    Configuration for running the identified image. See Image Configuration below for more details.
    imageIdentifier String
    Identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.
    imageRepositoryType String
    Type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: ECR , ECR_PUBLIC.
    imageConfiguration Property Map
    Configuration for running the identified image. See Image Configuration below for more details.

    ServiceSourceConfigurationImageRepositoryImageConfiguration, ServiceSourceConfigurationImageRepositoryImageConfigurationArgs

    Port string
    Port that your application listens to in the container. Defaults to "8080".
    RuntimeEnvironmentSecrets Dictionary<string, string>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    RuntimeEnvironmentVariables Dictionary<string, string>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    StartCommand string
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
    Port string
    Port that your application listens to in the container. Defaults to "8080".
    RuntimeEnvironmentSecrets map[string]string
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    RuntimeEnvironmentVariables map[string]string
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    StartCommand string
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
    port String
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets Map<String,String>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables Map<String,String>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand String
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
    port string
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets {[key: string]: string}
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables {[key: string]: string}
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand string
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
    port str
    Port that your application listens to in the container. Defaults to "8080".
    runtime_environment_secrets Mapping[str, str]
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtime_environment_variables Mapping[str, str]
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    start_command str
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
    port String
    Port that your application listens to in the container. Defaults to "8080".
    runtimeEnvironmentSecrets Map<String>
    Secrets and parameters available to your service as environment variables. A map of key/value pairs, where the key is the desired name of the Secret in the environment (i.e. it does not have to match the name of the secret in Secrets Manager or SSM Parameter Store), and the value is the ARN of the secret from AWS Secrets Manager or the ARN of the parameter in AWS SSM Parameter Store.
    runtimeEnvironmentVariables Map<String>
    Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
    startCommand String
    Command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.

    Import

    Using pulumi import, import App Runner Services using the arn. For example:

    $ pulumi import aws:apprunner/service:Service example arn:aws:apprunner:us-east-1:1234567890:service/example/0a03292a89764e5882c41d8f991c82fe
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi