You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(apprunner): support vpc ingress connection (#30623)
### Issue # (if applicable)
Closes#22850.
### Reason for this change
To support VPC Ingress Connection for making App Runner Service private and only accessible from within a VPC.
### Description of changes
* Add `isPubliclyAccessible` property to the `Service` class
* Add `VpcIngressConnection` class
### Description of how you validated changes
Add unit tests and integ tests
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-apprunner-alpha/README.md
+37
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,43 @@ new apprunner.Service(this, 'Service', {
201
201
});
202
202
```
203
203
204
+
## VPC Ingress Connection
205
+
206
+
To make your App Runner service private and only accessible from within a VPC use the `isPubliclyAccessible` property and associate it to a `VpcIngressConnection` resource.
207
+
208
+
To set up a `VpcIngressConnection`, specify a VPC, a VPC Interface Endpoint, and the App Runner service.
209
+
Also you must set `isPubliclyAccessible` property in ther `Service` to `false`.
210
+
211
+
For more information, see [Enabling Private endpoint for incoming traffic](https://docs.aws.amazon.com/apprunner/latest/dg/network-pl.html).
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-apprunner-alpha/test/integ.service-vpc-ingress-connection.js.snapshot/AppRunnerVpcIngressConnectionDefaultTestDeployAssertC725050C.assets.json
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-apprunner-alpha/test/integ.service-vpc-ingress-connection.js.snapshot/AppRunnerVpcIngressConnectionDefaultTestDeployAssertC725050C.template.json
0 commit comments