Construct that allow to create a AWS AppRunner resources using `AwsAppRunner`, and providing arns or extra apprunner related resources
npm install @tshio/cdk-aws-apprunner-constructConstruct that allow to create a AWS AppRunner resources using AwsAppRunner, and providing arns or extra apprunner related resources
These features of AppRunner configuration are supported:
- Custom autoscaling config
``typescript`
new AwsAppRunner(this, 'AWS_APP_RUNNER_SERVICE', {
config,
runtimeEnvironmentVariables,
dependsOn: [db],
ecrRoleArn: ecr.roleArn,
vpcId: vpc.id,
subnets: [...vpc.privateSubnets, ...vpc.publicSubnets],
securityGroupIds: [db.sg.id],
tags: {},
});
| Name | Description | Type | Default | Required |
| ---------- | ----------------------------------------------------- | ---------- | ------- | -------- |
| ecrRoleArn | The ARN of ECR role to use for the APP Runner service | string | "" | yes |string[]
| subnets | The Subnets Ids to use for the App Runner service | | []` | yes |
| Name | Description |
| ---------- | -------------------------------- |
| AWS_APPRUNNER_OUTPUT_SERVICE_ARN | The ARN of the AppRunner service |
| AWS_APPRUNNER_OUTPUT_SERVICE_URL | The URL of the AppRunner service |
Construct is maintained by The Software House