Configuring a private connection to AWS
Use AWS PrivateLink to create interface VPC endpoints that connect to endpoint services hosted by Amazon Web Services, enabling a private connection to your API Connect Enterprise as a Service instance.
You can configure private inbound connections and private outbound connections, or even both types of connections as needed. You do not have to configure the different connections in any particular sequence. When you configure a private connection, it is available for all catalogs in the API Connect Enterprise as a Service instance.
Configuring an inbound private connection (connect AWS to your APIs)
- Log in to API Connect Enterprise as a Service.
- On the page banner, click
. - On the Instance settings panel, click the Add next to the Private connectivity option.
- On the Create a private connectivity connection page, click Inbound.
- Type a custom name or the default name that is provided in the Name field.
- Click Next.Note: At this stage, the connection is created but not configured completely. If you close the configuration window without completing the configuration, you can continue the configuration from the data table in Instance setting panel. To continue configuration, click the options menu icon
next to the connection listed in the data table and then click
Continue. - On the Configure inbound connection page, create an AWS PrivateLink
connection to allow private access to your APIs from your AWS account by working through the
following steps:
- On the Account details page, enter your AWS account ARN in the
Service consumer ARN field, and then click Next.
The entity creating the VPC endpoint in the customer account must be preapproved to access the VPC endpoint service in the API Connect account. This can be a service role, a user role, or even the root ARN for the customer account. For more information, see Configure an endpoint service in the AWS documentation.
- On the infrastructure page, wait for the status to change to "Infrastructure complete", and then click Next.
- Copy values: On the Connectivity page, copy the Service name and the Private DNS name values for use in the next step, and then click Finish.
- On the Account details page, enter your AWS account ARN in the
Service consumer ARN field, and then click Next.
- In AWS, configure a VPC endpoint.
- Log in to your account on AWS.
- Open the
page and complete the following settings:
Field Value Endpoint settings: Name tag Optional. Provide a name tag that describes your new endpoint. Endpoint settings: Service category Select Other endpoint services. Service settings: Service name Paste the service name that you copied from the Service name field in the Connectivity page in API Connect. - Click Create endpoint.
- Click Verify service.
- Open the page and complete the
following settings:
Field Value Domain name Paste the private DNS value that you copied from the Private DNS name field in the Connectivity page in API Connect. Description Optional. Provide a description of the domain. Type Select Private hosted zone. - Click Create hosted zone.
- Open the page and complete the following settings:
Field Value Record name Paste the prefix from the private DNS name; for example, "api-ibm". Record type Select type A - Routes traffic to an IPv4 address and some AWS resources. Alias Enable the use of an alias. Route traffic to There are 2 fields to complete for this setting: - In the first field, select Alias to VPC endpoint.
- In the second field, select your region; for example, US East (N. Virginia).
Routing policy Select Simple routing. Evaluate target health Enable this setting (set it to Yes). - Click Create record.
Configuring an outbound private connection (connect your APIs to AWS):
- Log in to API Connect Enterprise as a Service.
- On the page banner, click
. - On the Instance settings panel, click the Add next to the Private connectivity option.
- On the Create a private connectivity connection page, click Outbound.
- Type a custom name or the default name that is provided in the Name field.
- Click Next.Note: At this stage, the connection is created but not configured completely. If you close the configuration window without completing the configuration, you can continue the configuration from the data table in Instance setting panel. To continue configuration, click the options menu icon
next to the connection listed in the data table and then click
Continue. - On the Create private endpoint service page, click Guide to
creating VPC endpoint service and complete the following steps:
- Use the wizard in AWS to create the private endpoint service. For more information, see Create an endpoint service in the AWS documentation.
- Copy value: Copy the service name of the new endpoint service, shown in the Name field on the Endpoint services page in the wizard. You will use this value in the next step.
- When the wizard finishes, return to the Create private endpoint service page in API Connect and click Next.
- On the Enter endpoint service details page, type or paste the VPC endpoint service name (which you copied from the wizard) in the Private endpoint service name field, and then click Next.
- On the Pre-authorize AWS principal page, complete the following steps to
authorize AWS to access your APIC service:
- Copy value: Copy the value in the ARN for API Connect's AWS Principal field.
- Log in to your AWS account and navigate to the page.
- Select the Allow principals tab.
- Paste the ARN that you copied into the ARN field in the "Principals to add" section of the page.
- Click Allow principals.
- Return to the Pre-authorize AWS principal page in API Connect and click Next.
At this point, a connection request is generated by API Connect, and you must accept the request in AWS.
- In AWS, accept the connection request by completing the following steps:
- Still on the page, select the Endpoint connections tab.
- Wait for the Connection state to display "Pending".
- In the Actions field, select Accept endpoint connection request.
- Wait for the Connection state to display "Available" as confirmation.
Now that the connection is complete, return to API Connect to finish configuring the private connection for the catalog.
- On the Connection request page in API Connect, click Next to confirm that you accepted the connection request in AWS.
- Copy value: On the Connectivity page, copy the value from the
VPC Endpoint Private DNS Name field and store it in a safe place; then click
Finish.
Use the VPC Endpoint Private DNS Name in your API ConnectAPI to connect to the application behind your VPC endpoint service.
Manage public connections:
You can now enable or disable public connectivity settings at the instance level and for individual catalogs also.
- To disable public connections for the entire instance, do the following steps:
- On the Instance settings panel, set the toggle next to Public
connections to No.Note: A data table is available in the instance panel, which lists all the catalogs and the corresponding status of public connections. This status shows whether the public connection is allowed or blocked. This data table is hidden, if public connections are disabled at the instance level.
- On the Instance settings panel, set the toggle next to Public
connections to No.
- To disable public connections for specific catalogs, do the following steps:
- On the Instance settings panel, locate the data table in the
Public connections section.Note: If public connections are disabled at the instance level, this data table is hidden and the catalog level settings for public connections are not visible.
- Select the catalogs, and then click Block.
- On the dialog box, click Block.
- On the Instance settings panel, locate the data table in the
Public connections section.