Control: 10.1 Ensure you are using VPC Endpoints for source code access
Description
App Runner needs access to your application source, so it can't be encrypted. Therefore, be sure to secure the connection between your development or deployment environment and App Runner.
Client-side encryption isn't a valid method for protecting the source image or code that you provide to App Runner for deployment. Using a VPC endpoint, you can privately connect your VPC to supported AWS services and VPC endpoint services that are powered by AWS PrivateLink.
Remediation
To create an interface endpoint for an App Runner
From the Console:
- Login to the AWS Console using https://console.aws.amazon.com/vpc/.
- On the left hand side, click Endpoints.
- Click
Create endpoint
. - Under Service category, choose AWS services.
- For Service name, select
com.amazonaws."region".apprunner
. "Region" will reflect the region that your are operating in. - For VPC, select the VPC from which you'll access App Runner.
- For Subnets, select one subnet per Availability Zone.
- For Security group, select the security groups to associate with the App Runner endpoint network interfaces.
- For Policy, select Custom to attach a VPC endpoint policy that controls the permissions that principals have for performing actions on resources over the VPC endpoint.
- Click
Create endpoint
.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cis_compute_service_v100_10_1
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cis_compute_service_v100_10_1 --share
SQL
This control uses a named query:
manual_control