aws.apprunner.Service
Explore with Pulumi AI
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={
"authentication_configuration": {
"connection_arn": example_aws_apprunner_connection["arn"],
},
"code_repository": {
"code_configuration": {
"code_configuration_values": {
"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": {
"type": "BRANCH",
"value": "main",
},
},
},
network_configuration={
"egress_configuration": {
"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={
"image_repository": {
"image_configuration": {
"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={
"vendor": "AWSXRAY",
})
example = aws.apprunner.Service("example",
service_name="example",
observability_configuration={
"observability_configuration_arn": example_observability_configuration.arn,
"observability_enabled": True,
},
source_configuration={
"image_repository": {
"image_configuration": {
"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.
Constructor 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={
"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",
},
},
},
auto_scaling_configuration_arn="string",
encryption_configuration={
"kmsKey": "string",
},
health_check_configuration={
"healthyThreshold": 0,
"interval": 0,
"path": "string",
"protocol": "string",
"timeout": 0,
"unhealthyThreshold": 0,
},
instance_configuration={
"cpu": "string",
"instanceRoleArn": "string",
"memory": "string",
},
network_configuration={
"egressConfiguration": {
"egressType": "string",
"vpcConnectorArn": "string",
},
"ingressConfiguration": {
"isPubliclyAccessible": False,
},
"ipAddressType": "string",
},
observability_configuration={
"observabilityEnabled": False,
"observabilityConfigurationArn": "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:
- Service
Name string - Name of the service.
- Source
Configuration ServiceSource Configuration 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 stringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- Network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- 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.
- Service
Name string - Name of the service.
- Source
Configuration ServiceSource Configuration Args 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 stringConfiguration Arn - 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 ServiceEncryption Configuration Args - 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 ServiceConfiguration Health Check Configuration Args - 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 ServiceInstance Configuration Args - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- Network
Configuration ServiceNetwork Configuration Args - 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 ServiceObservability Configuration Args - The observability configuration of your service. See Observability Configuration below for more details.
- 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.
- service
Name String - Name of the service.
- source
Configuration ServiceSource Configuration 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 StringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- 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.
- service
Name string - Name of the service.
- source
Configuration ServiceSource Configuration 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 stringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- {[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 ServiceSource Configuration Args 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_ strconfiguration_ arn - 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 ServiceEncryption Configuration Args - 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_ Serviceconfiguration Health Check Configuration Args - 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 ServiceInstance Configuration Args - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network_
configuration ServiceNetwork Configuration Args - 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 ServiceObservability Configuration Args - The observability configuration of your service. See Observability Configuration below for more details.
- 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.
- service
Name String - Name of the service.
- source
Configuration 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:
- auto
Scaling StringConfiguration Arn - 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 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.
- health
Check Property MapConfiguration - 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 Property Map - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration 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.
- observability
Configuration Property Map - The observability configuration of your service. See Observability Configuration below for more details.
- 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.
- Service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- Service
Url 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.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the App Runner service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- Service
Url 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.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the App Runner service.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Id String - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Url 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.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the App Runner service.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Url 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.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the App Runner service.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Id String - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Url 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.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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.
- Arn string
- ARN of the App Runner service.
- Auto
Scaling stringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- Network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- Service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- Service
Name string - Name of the service.
- Service
Url string - Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
- Source
Configuration ServiceSource Configuration 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.
- 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. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the App Runner service.
- Auto
Scaling stringConfiguration Arn - 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 ServiceEncryption Configuration Args - 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 ServiceConfiguration Health Check Configuration Args - 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 ServiceInstance Configuration Args - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- Network
Configuration ServiceNetwork Configuration Args - 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 ServiceObservability Configuration Args - The observability configuration of your service. See Observability Configuration below for more details.
- Service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- Service
Name string - Name of the service.
- Service
Url string - Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
- Source
Configuration ServiceSource Configuration Args 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.
- 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. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the App Runner service.
- auto
Scaling StringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- service
Id String - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Name String - Name of the service.
- service
Url String - Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
- source
Configuration ServiceSource Configuration 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.
- 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. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the App Runner service.
- auto
Scaling stringConfiguration Arn - 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 ServiceEncryption Configuration - 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 ServiceConfiguration Health Check Configuration - 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 ServiceInstance Configuration - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration ServiceNetwork Configuration - 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 ServiceObservability Configuration - The observability configuration of your service. See Observability Configuration below for more details.
- service
Id string - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Name string - Name of the service.
- service
Url string - Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
- source
Configuration ServiceSource Configuration 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.
- {[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. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the App Runner service.
- auto_
scaling_ strconfiguration_ arn - 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 ServiceEncryption Configuration Args - 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_ Serviceconfiguration Health Check Configuration Args - 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 ServiceInstance Configuration Args - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network_
configuration ServiceNetwork Configuration Args - 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 ServiceObservability Configuration Args - 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 ServiceSource Configuration Args 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.
- 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. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the App Runner service.
- auto
Scaling StringConfiguration Arn - 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 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.
- health
Check Property MapConfiguration - 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 Property Map - The runtime configuration of instances (scaling units) of the App Runner service. See Instance Configuration below for more details.
- network
Configuration 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.
- observability
Configuration Property Map - The observability configuration of your service. See Observability Configuration below for more details.
- service
Id String - An alphanumeric ID that App Runner generated for this service. Unique within the AWS Region.
- service
Name String - Name of the service.
- service
Url String - Subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
- source
Configuration 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.
- 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. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
ServiceEncryptionConfiguration, ServiceEncryptionConfigurationArgs
- Kms
Key string - ARN of the KMS key used for encryption.
- Kms
Key string - ARN of the KMS key used for encryption.
- kms
Key String - ARN of the KMS key used for encryption.
- kms
Key string - ARN of the KMS key used for encryption.
- kms_
key str - ARN of the KMS key used for encryption.
- kms
Key String - ARN of the KMS key used for encryption.
ServiceHealthCheckConfiguration, ServiceHealthCheckConfigurationArgs
- 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 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- 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 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- healthy
Threshold 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- unhealthy
Threshold 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.
- healthy
Threshold 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- unhealthy
Threshold 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- healthy
Threshold 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 toTCP
. If you set protocol toHTTP
, App Runner sends health check requests to the HTTP path specified bypath
. - 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.
- unhealthy
Threshold 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
. - Instance
Role stringArn - 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
. - Instance
Role stringArn - 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
. - instance
Role StringArn - 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
. - instance
Role stringArn - 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_ strarn - 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
. - instance
Role StringArn - 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
- Egress
Configuration ServiceNetwork Configuration Egress Configuration - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- Ingress
Configuration ServiceNetwork Configuration Ingress Configuration - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- Ip
Address stringType - 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 ServiceNetwork Configuration Egress Configuration - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- Ingress
Configuration ServiceNetwork Configuration Ingress Configuration - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- Ip
Address stringType - 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 ServiceNetwork Configuration Egress Configuration - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- ingress
Configuration ServiceNetwork Configuration Ingress Configuration - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- ip
Address StringType - 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 ServiceNetwork Configuration Egress Configuration - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- ingress
Configuration ServiceNetwork Configuration Ingress Configuration - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- ip
Address stringType - 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 ServiceNetwork Configuration Egress Configuration - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- ingress_
configuration ServiceNetwork Configuration Ingress Configuration - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- ip_
address_ strtype - 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 Property Map - Network configuration settings for outbound message traffic. See Egress Configuration below for more details.
- ingress
Configuration Property Map - Network configuration settings for inbound network traffic. See Ingress Configuration below for more details.
- ip
Address StringType - 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
- Egress
Type string - The type of egress configuration. Valid values are:
DEFAULT
andVPC
. - Vpc
Connector stringArn - 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 string - The type of egress configuration. Valid values are:
DEFAULT
andVPC
. - Vpc
Connector stringArn - 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 String - The type of egress configuration. Valid values are:
DEFAULT
andVPC
. - vpc
Connector StringArn - 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 string - The type of egress configuration. Valid values are:
DEFAULT
andVPC
. - vpc
Connector stringArn - 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
andVPC
. - vpc_
connector_ strarn - 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 String - The type of egress configuration. Valid values are:
DEFAULT
andVPC
. - vpc
Connector StringArn - 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
- Is
Publicly boolAccessible - 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 boolAccessible - 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 BooleanAccessible - 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 booleanAccessible - 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_ boolaccessible - 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 BooleanAccessible - 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
- Observability
Enabled bool - When
true
, an observability configuration resource is associated with the service. - Observability
Configuration stringArn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
- Observability
Enabled bool - When
true
, an observability configuration resource is associated with the service. - Observability
Configuration stringArn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
- observability
Enabled Boolean - When
true
, an observability configuration resource is associated with the service. - observability
Configuration StringArn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
- observability
Enabled boolean - When
true
, an observability configuration resource is associated with the service. - observability
Configuration stringArn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
- observability_
enabled bool - When
true
, an observability configuration resource is associated with the service. - observability_
configuration_ strarn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
- observability
Enabled Boolean - When
true
, an observability configuration resource is associated with the service. - observability
Configuration StringArn - ARN of the observability configuration that is associated with the service. Specified only when
observability_enabled
istrue
.
ServiceSourceConfiguration, ServiceSourceConfigurationArgs
- Authentication
Configuration ServiceSource Configuration Authentication Configuration - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- Auto
Deployments boolEnabled - 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 totrue
. - Code
Repository ServiceSource Configuration Code Repository - Description of a source code repository. See Code Repository below for more details.
- Image
Repository ServiceSource Configuration Image Repository - Description of a source image repository. See Image Repository below for more details.
- Authentication
Configuration ServiceSource Configuration Authentication Configuration - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- Auto
Deployments boolEnabled - 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 totrue
. - Code
Repository ServiceSource Configuration Code Repository - Description of a source code repository. See Code Repository below for more details.
- Image
Repository ServiceSource Configuration Image Repository - Description of a source image repository. See Image Repository below for more details.
- authentication
Configuration ServiceSource Configuration Authentication Configuration - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- auto
Deployments BooleanEnabled - 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 totrue
. - code
Repository ServiceSource Configuration Code Repository - Description of a source code repository. See Code Repository below for more details.
- image
Repository ServiceSource Configuration Image Repository - Description of a source image repository. See Image Repository below for more details.
- authentication
Configuration ServiceSource Configuration Authentication Configuration - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- auto
Deployments booleanEnabled - 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 totrue
. - code
Repository ServiceSource Configuration Code Repository - Description of a source code repository. See Code Repository below for more details.
- image
Repository ServiceSource Configuration Image Repository - Description of a source image repository. See Image Repository below for more details.
- authentication_
configuration ServiceSource Configuration Authentication Configuration - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- auto_
deployments_ boolenabled - 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 totrue
. - code_
repository ServiceSource Configuration Code Repository - Description of a source code repository. See Code Repository below for more details.
- image_
repository ServiceSource Configuration Image Repository - Description of a source image repository. See Image Repository below for more details.
- authentication
Configuration Property Map - Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
- auto
Deployments BooleanEnabled - 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 totrue
. - code
Repository Property Map - Description of a source code repository. See Code Repository below for more details.
- image
Repository Property Map - Description of a source image repository. See Image Repository below for more details.
ServiceSourceConfigurationAuthenticationConfiguration, ServiceSourceConfigurationAuthenticationConfigurationArgs
- Access
Role stringArn - 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 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 stringArn - 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 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 StringArn - 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 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 stringArn - 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 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_ strarn - 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.
- access
Role StringArn - 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 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
- Repository
Url string - Location of the repository that contains the source code.
- Source
Code ServiceVersion Source Configuration Code Repository Source Code Version - Version that should be used within the source code repository. See Source Code Version below for more details.
- Code
Configuration ServiceSource Configuration Code Repository Code Configuration - Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
- Source
Directory 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 string - Location of the repository that contains the source code.
- Source
Code ServiceVersion Source Configuration Code Repository Source Code Version - Version that should be used within the source code repository. See Source Code Version below for more details.
- Code
Configuration ServiceSource Configuration Code Repository Code Configuration - Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
- Source
Directory 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 String - Location of the repository that contains the source code.
- source
Code ServiceVersion Source Configuration Code Repository Source Code Version - Version that should be used within the source code repository. See Source Code Version below for more details.
- code
Configuration ServiceSource Configuration Code Repository Code Configuration - Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
- source
Directory 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 string - Location of the repository that contains the source code.
- source
Code ServiceVersion Source Configuration Code Repository Source Code Version - Version that should be used within the source code repository. See Source Code Version below for more details.
- code
Configuration ServiceSource Configuration Code Repository Code Configuration - Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
- source
Directory 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_ Serviceversion Source Configuration Code Repository Source Code Version - Version that should be used within the source code repository. See Source Code Version below for more details.
- code_
configuration ServiceSource Configuration Code Repository Code Configuration - 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.
- repository
Url String - Location of the repository that contains the source code.
- source
Code Property MapVersion - Version that should be used within the source code repository. See Source Code Version below for more details.
- code
Configuration Property Map - Configuration for building and running the service from a source code repository. See Code Configuration below for more details.
- source
Directory 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
- Configuration
Source string - Source of the App Runner configuration. Valid values:
REPOSITORY
,API
. Values are interpreted as follows:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- Code
Configuration ServiceValues Source Configuration Code Repository Code Configuration Code Configuration Values - 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 string - Source of the App Runner configuration. Valid values:
REPOSITORY
,API
. Values are interpreted as follows:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- Code
Configuration ServiceValues Source Configuration Code Repository Code Configuration Code Configuration Values - 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 String - Source of the App Runner configuration. Valid values:
REPOSITORY
,API
. Values are interpreted as follows:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- code
Configuration ServiceValues Source Configuration Code Repository Code Configuration Code Configuration Values - 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 string - Source of the App Runner configuration. Valid values:
REPOSITORY
,API
. Values are interpreted as follows:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- code
Configuration ServiceValues Source Configuration Code Repository Code Configuration Code Configuration Values - 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:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- code_
configuration_ Servicevalues Source Configuration Code Repository Code Configuration Code Configuration Values - 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 String - Source of the App Runner configuration. Valid values:
REPOSITORY
,API
. Values are interpreted as follows:REPOSITORY
- App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores the CodeConfigurationValues parameter.API
- App Runner uses configuration values provided in the CodeConfigurationValues parameter and ignores the apprunner.yaml file in the source code repository.
- code
Configuration Property MapValues - 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
. - Build
Command string - Command App Runner runs to build your application.
- Port string
- Port that your application listens to in the container. Defaults to
"8080"
. - Runtime
Environment Dictionary<string, string>Secrets - 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 Dictionary<string, string>Variables - 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 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
. - Build
Command string - Command App Runner runs to build your application.
- Port string
- Port that your application listens to in the container. Defaults to
"8080"
. - Runtime
Environment map[string]stringSecrets - 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 map[string]stringVariables - 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 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
. - build
Command String - Command App Runner runs to build your application.
- port String
- Port that your application listens to in the container. Defaults to
"8080"
. - runtime
Environment Map<String,String>Secrets - 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 Map<String,String>Variables - 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 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
. - build
Command string - Command App Runner runs to build your application.
- port string
- Port that your application listens to in the container. Defaults to
"8080"
. - runtime
Environment {[key: string]: string}Secrets - 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 {[key: string]: string}Variables - 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 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_ Mapping[str, str]secrets - 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_ Mapping[str, str]variables - 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
. - build
Command String - Command App Runner runs to build your application.
- port String
- Port that your application listens to in the container. Defaults to
"8080"
. - runtime
Environment Map<String>Secrets - 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 Map<String>Variables - 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 String - Command App Runner runs to start your application.
ServiceSourceConfigurationCodeRepositorySourceCodeVersion, ServiceSourceConfigurationCodeRepositorySourceCodeVersionArgs
ServiceSourceConfigurationImageRepository, ServiceSourceConfigurationImageRepositoryArgs
- Image
Identifier 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.
- Image
Repository stringType - 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 ServiceSource Configuration Image Repository Image Configuration - Configuration for running the identified image. See Image Configuration below for more details.
- Image
Identifier 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.
- Image
Repository stringType - 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 ServiceSource Configuration Image Repository Image Configuration - Configuration for running the identified image. See Image Configuration below for more details.
- image
Identifier 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.
- image
Repository StringType - 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 ServiceSource Configuration Image Repository Image Configuration - Configuration for running the identified image. See Image Configuration below for more details.
- image
Identifier 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.
- image
Repository stringType - 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 ServiceSource Configuration Image Repository Image Configuration - 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_ strtype - 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 ServiceSource Configuration Image Repository Image Configuration - Configuration for running the identified image. See Image Configuration below for more details.
- image
Identifier 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.
- image
Repository StringType - 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 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"
. - Runtime
Environment Dictionary<string, string>Secrets - 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 Dictionary<string, string>Variables - 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 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"
. - Runtime
Environment map[string]stringSecrets - 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 map[string]stringVariables - 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 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"
. - runtime
Environment Map<String,String>Secrets - 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 Map<String,String>Variables - 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 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"
. - runtime
Environment {[key: string]: string}Secrets - 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 {[key: string]: string}Variables - 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 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_ Mapping[str, str]secrets - 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_ Mapping[str, str]variables - 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"
. - runtime
Environment Map<String>Secrets - 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 Map<String>Variables - 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 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.