AWS Assurance and interface VPC endpoints (AWS PrivateLink)
You can establish a private connection between your VPC and AWS Assurance by creating an interface VPC endpoint. Interface endpoints are powered by AWS PrivateLink
Each interface endpoint is represented by one or more Elastic network interfaces in your subnets.
For more information, see Access AWS services through AWS PrivateLink in the Amazon VPC User Guide.
Considerations for AWS Assurance VPC endpoints
Before you set up an interface VPC endpoint for AWS Assurance, review the prerequisites in Access an AWS service using an interface VPC endpoint in the Amazon VPC User Guide.
An interface endpoint covers calls to the AWS Assurance API. AWS Assurance supports making calls to all of its API actions from your VPC.
AWS Assurance supports interface VPC endpoints and VPC endpoint policies in all AWS Regions where AWS Assurance is available.
AWS Assurance supports VPC endpoint policies. By default, the endpoint allows full access to AWS Assurance. You can attach an endpoint policy to control which actions, principals, and resources are allowed through the endpoint. For more information, see Creating a VPC endpoint policy for AWS Assurance.
AWS Assurance logs requests that you make through your interface VPC endpoint. For more information about endpoint request logging, see Logging AWS Assurance API calls using AWS CloudTrail.
Creating an interface VPC endpoint for AWS Assurance
You can create a VPC endpoint for the AWS Assurance service using either the Amazon VPC console or the AWS Command Line Interface (AWS CLI). For more information, see Access an AWS service using an interface VPC endpoint in the Amazon VPC User Guide.
Create a VPC endpoint for AWS Assurance using the following service name:
-
com.amazonaws.
region.assurance
If you enable private DNS for the endpoint, you can make API requests to AWS Assurance using the default DNS name for the Region. For example, use assurance.us-east-1.api.aws.
For more information, see Access AWS services through AWS PrivateLink in the Amazon VPC User Guide.
Creating a VPC endpoint policy for AWS Assurance
You can attach an endpoint policy to your VPC endpoint that controls access to AWS Assurance. The policy specifies the following information:
-
The principal that can perform actions.
-
The actions that can be performed.
-
The resources on which actions can be performed.
For more information, see Control access to VPC endpoints using endpoint policies in the Amazon VPC User Guide.
Example: VPC endpoint policy for AWS Assurance actions
The following is an example of an endpoint policy for AWS Assurance. When attached to an endpoint, this policy grants access to the listed AWS Assurance actions for all principals on all resources.
{ "Version":"2012-10-17", "Statement":[ { "Principal":"*", "Effect":"Allow", "Action":[ "assurance:ListEnvironments", "assurance:GetEnvironment", "assurance:ListProjects", "assurance:ListAssessments", "assurance:ListFrameworks", "assurance:ListEvidence" ], "Resource":"*" } ] }
Example: Allow all AWS Assurance actions from a specific VPC
The following endpoint policy grants access to all AWS Assurance actions for all principals on all resources, but only if the request comes from the specified VPC. Replace vpc-id with the ID of your VPC.
{ "Version":"2012-10-17", "Statement":[ { "Principal":"*", "Effect":"Allow", "Action":"assurance:*", "Resource":"*", "Condition":{ "StringEquals":{ "aws:SourceVpc":"vpc-id" } } } ] }
Example: Allow all AWS Assurance actions from a specific VPC endpoint
The following endpoint policy grants access to all AWS Assurance actions for all principals on all resources, but only if the request comes from the specified VPC endpoint. Replace vpc-endpoint-id with the ID of your VPC endpoint.
{ "Version":"2012-10-17", "Statement":[ { "Principal":"*", "Effect":"Allow", "Action":"assurance:*", "Resource":"*", "Condition":{ "StringEquals":{ "aws:SourceVpce":"vpc-endpoint-id" } } } ] }