In this document, “AutoMQ,” “AutoMQ service provider,” and “the AutoMQ service” all refer to AutoMQ HK Limited and its affiliates.
Prepare VPC
You can choose to use an existing VPC when installing AutoMQ, or create a new one for it. For production environments, we recommend checking and adjusting your existing VPC configuration to meet AutoMQ’s requirements. For POC testing, creating a new VPC is a quicker option.VPC Requirements
To deploy AutoMQ BYOC environment on AWS, your VPC must meet the following conditions:Scenario 1: Create a New VPC
If you need to create a new VPC for AutoMQ, we recommend using the VPC and more feature in the AWS VPC console.- Log in to the AWS VPC console.
- In the left navigation pane, choose Your VPCs, then click Create VPC.
- In VPC settings, select VPC and more.
- In the Name tag auto-generation section, set a clear name for your VPC.
- Configure the IPv4 CIDR block, Number of Availability Zones, Number of public subnets, and Number of private subnets.
- Depending on your deployment needs, choose whether to create NAT gateway(s) and VPC endpoints.
- NAT Gateway: If you plan to deploy on EKS, select at least 1 per AZ.
- VPC Endpoints: Select S3 Gateway, which will automatically create a gateway-type S3 endpoint.
- Ensure that both Enable DNS hostnames and Enable DNS resolution under DNS options are checked.
- Click Create VPC.
- In the AWS VPC console, choose Endpoints from the left navigation pane.
- Click Create endpoint.
- Name tag: Name the endpoint.
- Service category: Select AWS services.
- Services: Search for and select the
com.amazonaws.<region>.ec2interface service. - VPC: Select the VPC you just created.
- Subnets: Select all the private subnets intended for AutoMQ deployment.
- Security groups: Select or create a security group and add an inbound rule to allow HTTPS (443) traffic from your VPC’s CIDR.
- Click Create endpoint.
Scenario 2: Configure an Existing VPC
If you are deploying AutoMQ in an existing VPC, verify that the following configurations meet the requirements.1. Check DNS Configuration
- In the AWS VPC console, choose Your VPCs from the left navigation pane.
- Select your target VPC and view the Details tab.
- Confirm that the values for DNS hostnames and DNS resolution are both Enabled. If not, click Actions -> Edit VPC settings to modify them.
2. Check S3 Endpoint
- In the AWS VPC console, choose Endpoints from the left navigation pane.
- Search for and check if there is an S3 endpoint of type Gateway (service name
com.amazonaws.<region>.s3) associated with your VPC. - If it doesn’t exist, click Create endpoint to create one.
- When creating it, ensure its route table (Route tables) is associated with all private subnets that will be used for deploying AutoMQ.
3. Check EC2 Endpoint
- On the Endpoints page, continue to search for and check if there is an EC2 endpoint of type Interface (service name
com.amazonaws.<region>.ec2) associated with your VPC. - If it doesn’t exist, click Create endpoint to create one.
- Subnets: Ensure you select all private subnets that will be used for deploying AutoMQ.
- Security groups: Select or create a security group and add an inbound rule to allow HTTPS (443) traffic from your VPC’s CIDR.
- Enable DNS name: Make sure to check Enable DNS name to enable Private DNS resolution, ensuring that AutoMQ components can correctly access the EC2 API via private DNS names.
Prepare Private DNS (Optional)
The AutoMQ cluster exposes service addresses to applications through Private DNS, which relies on private domain name resolution within the VPC. Therefore, a Private DNS must be configured to provide reliable domain name resolution services. You can choose to have the AutoMQ console create the Private DNS Zone automatically or prepare it yourself by following the tutorial below.Private DNS Zone Requirements
When configuring Private DNS, the following two key conditions must be met:Private DNS Configuration Steps
Step 1: Check Existing Private DNS
- Log in to the AWS console and visit the Route53 console.
- In the left navigation bar, select Hosted zones.
- Check if a Private DNS associated with the target VPC already exists.
Step 2: Create or Configure Private DNS
If a Private DNS already exists:- Select the target Private DNS and click Details.
- Confirm that the Type is Private hosted zone.
- Check the VPCs section to ensure it includes the VPC where AutoMQ is deployed.
- Record the domain name information for subsequent TLS feature configuration.
- Click Create hosted zone.
- Configure the basic information:
- Domain name: Enter a private domain name (e.g.,
internal.example.com). - Type: Select Private hosted zone.
- VPC: Select the VPC where AutoMQ is deployed and the corresponding region.
- Domain name: Enter a private domain name (e.g.,
- Click Create hosted zone.
Step 3: Verify the Configuration
- On the Private DNS details page, confirm the VPC association status.
- Check if the domain name configuration meets the planning requirements for the TLS feature.
- Record the ID and domain name of the Private DNS, which will be provided to the AutoMQ components during subsequent installation.
Prepare Cluster Security Group (Optional)
During the cluster deployment process, you can opt to use a pre-configured security group for precise network access control. If you choose this method, you must create a security group in advance and configure its inbound rules according to the table below. If you prefer to simplify network configuration, you can choose to have AutoMQ automatically create a new security group with all the necessary rules during cluster creation, in which case you can skip this section.Configure cross-VPC access
An AutoMQ instance that uses a Route 53 private hosted zone can be resolved only from VPCs associated with that hosted zone. To access the instance from an application in another VPC, complete both of the following tasks:- Establish network connectivity between the AutoMQ VPC and the application VPC, for example by using VPC peering or AWS Transit Gateway. Update the relevant route tables and security groups to allow Kafka traffic.
- Associate the Route 53 private hosted zone used by the AutoMQ instance with the application VPC.
Find the private hosted zone
Copy the instance endpoint from the AutoMQ Console and identify its domain suffix. In the Route 53 console, choose Hosted zones, open the matching private hosted zone, and record its hosted zone ID.
Associate a VPC in the same AWS account
On the private hosted zone details page, edit the VPC associations and add the application VPC and its AWS Region.