Create a BYOC Cluster on AWS
To create a Redpanda cluster in your virtual private cloud (VPC), follow the instructions in the Redpanda Cloud UI. The UI contains the parameters necessary to successfully run rpk cloud byoc aws apply. See also: BYOC architecture.
| With standard BYOC clusters, Redpanda manages security policies and resources for your VPC, including subnetworks, service accounts, IAM roles, firewall rules, and storage buckets. For the highest level of security, you can manage these resources yourself with a BYOVPC cluster on AWS. To compare the two variants, see Choose Between BYOC and BYOVPC. |
Prerequisites
Before you deploy a BYOC cluster on AWS, verify the following prerequisites:
-
The latest version of
rpk. See Install or Update rpk. -
The user authenticating to AWS has the
AdministratorAccesspolicy, for example through theAWSAdministratorAccesspermission set in IAM Identity Center. You need this access to create the IAM policies specified in AWS IAM policies. -
The user has the AWS variables necessary to authenticate. Use either:
-
AWS_PROFILEor -
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY
To verify access, you should be able to successfully run
aws sts get-caller-identityfor your region. For more information, see the AWS CLI reference. -
-
If the AWS account is a member of an AWS Organization, confirm that no service control policy (SCP) denies the actions Redpanda needs. If your organization uses allow-list SCPs, also confirm that the SCPs allow those actions. An SCP deny applies even to administrators. See Check service control policies.
-
A CIDR block for the Redpanda network. You can’t change the CIDR after the network is created, so agree on it with your network team before you start. See Choose CIDR Ranges. The block must:
-
Be in an RFC 1918 private range (
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16). -
Be between
/16and/20in size. -
Not overlap with any network you plan to connect to the cluster.
-
-
A decision on how the cluster reaches the internet. By default, Redpanda creates a NAT Gateway, an Elastic IP address, and an Internet Gateway in the Redpanda VPC. To route egress through your own AWS Transit Gateway and hub VPC instead, complete the hub setup before you create the cluster. Centralized egress is in beta and requires a private connection type. To request access for your organization, contact your account team. See Configure Centralized Egress with AWS Transit Gateway.
-
(Optional) If your security team reviews third-party access before an install, share Redpanda Access to Your Environment with them. It describes what Redpanda can and cannot access in your cloud account.
Check AWS quotas
Redpanda doesn’t check AWS quotas before it provisions a cluster. Confirm the following quotas in the AWS account and region where you plan to create the cluster.
vCPU quota
All Redpanda nodes, including Graviton (arm64) nodes, count against the EC2 quota Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances (quota code L-1216C47A). AWS measures this quota in vCPUs.
When you create a cluster, the Cloud UI shows each machine configuration as a broker count, machine type, and rate of Redpanda Processing Units (RPUs), for example 3x m7gd.large · 3 RPU. See Size and Price a BYOC Cluster. To calculate the vCPUs that a configuration needs, add the following:
-
Brokers: The broker count multiplied by the vCPUs per broker for the machine type. This is also 2 × the RPU rate.
-
Utility nodes: 3 utility nodes. The vCPUs of each utility node depend on the total broker cores, as shown in the utility node table. Calculate the total broker cores as follows:
total broker cores = (vCPUs per broker − reserved cores) × broker count
Redpanda reserves 2 cores on each broker for
8xlargemachine types and 1 core for all others. For15x i3en.6xlarge, use 32 vCPUs for each utility node. This configuration uses a larger default utility node (r5.8xlarge). -
Redpanda agent: 2 vCPUs.
-
Headroom for maintenance: The vCPUs of 3 more brokers and 1 more utility node. Maintenance tasks such as Kubernetes upgrades add new nodes before they remove old ones.
| Machine type | Architecture | vCPUs per broker |
|---|---|---|
|
Graviton |
2 |
|
Graviton |
4 |
|
Graviton |
32 |
|
x86 |
2 |
|
x86 |
4 |
|
x86 |
24 |
Configurations use m7gd instances where the region offers them. Other regions use m6gd instances or x86 (i3en) instances. Some existing clusters use older im4gn instances.
| Total broker cores | vCPUs per utility node |
|---|---|
Up to 60 |
2 |
61 to 135 |
4 |
136 to 235 |
8 |
236 to 420 |
16 |
421 or more |
32 |
The following examples show the vCPUs that common configurations use and the vCPUs to keep available:
| Configuration | Broker vCPUs | Utility node and agent vCPUs | vCPUs used | vCPUs to keep available |
|---|---|---|---|---|
|
6 |
8 |
14 |
22 |
|
24 |
8 |
32 |
46 |
|
192 |
26 |
218 |
322 |
-
Redpanda Connect nodes start at zero and are added when pipelines run. If you plan to run Redpanda Connect pipelines, keep more vCPUs available.
-
Before you scale, check the quota against the target configuration. Each broker that you add uses its machine type’s vCPUs. When you change the machine type, Redpanda adds new brokers before it removes the old ones, and AWS can take a while to terminate old instances. Make sure the quota covers the old and new configurations together. See Scale a BYOC Cluster.
Configurations for usage tiers
If your organization selects a usage tier instead of sizing by workload, each tier uses the following default configuration. Use it in the same calculation.
| Tier | Graviton | x86 |
|---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
To see the current quota value, run:
aws service-quotas get-service-quota --service-code ec2 --quota-code L-1216C47A --region <region>
The command returns the quota, not the vCPUs that are free. Instances that already run in the region use part of the quota, so the vCPUs available for the cluster are the quota minus current usage. To see current usage, open the quota in the Service Quotas console and check its utilization.
To request an increase, see the AWS documentation.
Other AWS resources
Each BYOC cluster also uses the following AWS resources. The counts are the same for single-AZ and multi-AZ clusters.
| Resource | Number per cluster |
|---|---|
Elastic IP addresses |
1, for the NAT gateway |
NAT gateways |
1 |
Internet gateways |
1 |
VPCs |
1 |
Load balancers |
|
Route 53 hosted zones |
2 |
S3 buckets |
3 |
IAM roles |
About 10 to 12 |
IAM customer managed policies |
About 10 to 15 |
IAM OpenID Connect (OIDC) identity providers |
1 |
If you use centralized egress, Redpanda doesn’t create the Elastic IP address, NAT gateway, or internet gateway.
IAM resources and Route 53 hosted zones count against limits for the whole AWS account, not the region. For example, AWS allows 100 IAM OIDC identity providers and 500 Route 53 hosted zones per account by default. If you run several clusters in one AWS account, check these limits before you add a cluster, and request an increase if you need one. See IAM and AWS STS quotas.
Route 53 API request rate limits also apply to the whole AWS account. In a shared account, other workloads can use up these limits. Any operation that adds or replaces brokers writes new DNS records, including scaling, machine type changes, Kubernetes upgrades, and node replacement. If Route 53 requests are throttled, the new instances still launch, but the brokers don’t become reachable and the operation slows down or stalls. See Route 53 quotas.
| Run your BYOC clusters in an AWS account dedicated to Redpanda. Other workloads in the account then can’t use up the quotas and rate limits that your clusters depend on, such as vCPUs, Elastic IP addresses, IAM resources, and Route 53 API requests. A dedicated account also keeps Redpanda resources and permissions separate from your other workloads, so a problem on either side can’t spread to the other. |
If a quota runs out
-
If the account runs out of Elastic IP addresses, NAT gateways, or VPCs,
rpk cloud byoc aws applyfails with an error from Terraform. -
If there aren’t enough vCPUs for the brokers when Redpanda creates the broker nodes, the cluster moves to the Failed state with the message
Cloud Provider Quota for vCPU capacity exceeded. This can take several minutes to appear. -
Other quota shortfalls, including vCPUs for utility nodes, Route 53 hosted zones, and IAM limits, leave the cluster in the Creating state. If a cluster stays in Creating, check the quotas on this page.
Prerequisite checklist
-
Updated
rpkto the latest version -
Verified that the user has
AdministratorAccessand thataws sts get-caller-identityreturns the target account -
Checked that SCPs don’t deny the required actions and, if your organization uses allow-list SCPs, that they allow them
-
Chose a non-overlapping RFC 1918 CIDR block between
/16and/20 -
Chose an egress model (NAT Gateway or centralized egress)
-
Checked the vCPU quota and other AWS quotas for the target configuration
Create a BYOC cluster
-
Log in to Redpanda Cloud.
-
On the Clusters page, click Create cluster, then click Create for BYOC.
-
Enter a cluster name, then select the resource group, provider (AWS), region, availability, and Redpanda version. If your organization uses usage-based billing, describe your workload to get recommended machine configurations and price estimates. See Size and Price a BYOC Cluster. Otherwise, select a tier.
-
If you plan to create a private network in your own VPC, select the region where your VPC is located.
-
Three availability zones provide two backups in case one availability zone goes down.
Optionally, click Advanced settings to specify up to five key-value custom tags. After the cluster is created, Redpanda applies the tags to the AWS resources associated with this cluster, except as described in Reserved tag keys. For more information about AWS tag restrictions, see the AWS documentation. After the cluster is created, you can specify more tags with the Cloud API.
-
-
Click Next.
-
On the Network page, select the connection type: either public or private. For BYOC clusters, private is best-practice.
-
Your network name is used to identify this network.
-
For a CIDR range, enter the block you chose in Prerequisites. Redpanda Cloud rejects a block that is outside the RFC 1918 ranges or the
/16to/20size range. You can’t change the CIDR later. -
Clusters with private networking include a setting for API Gateway network access. Public access exposes endpoints for Redpanda Console, the Data Plane API, and the MCP Server API, but they remain protected by your authentication and authorization controls. Private access restricts endpoint access to your VPC only.
After the cluster is created, you can change the API Gateway access on the Dataplane settings page. If you change from public to private access, users without VPN access to the Redpanda VPC will lose access to these services. To route all cluster egress through your own AWS Transit Gateway and hub VPC instead of a per-VPC NAT Gateway, set the Transit Gateway ID field on this page. The field is only available on clusters with a private connection type, and is only visible if centralized egress is enabled for your organization. This option is in beta. See Configure Centralized Egress with AWS Transit Gateway.
-
-
Click Next.
-
On the Deploy page, follow the steps to log in to Redpanda Cloud and deploy the agent.
As part of agent deployment:
-
Redpanda assigns the permission required to run the agent. For details about these permissions, see AWS IAM policies.
-
Redpanda allocates one Elastic IP (EIP) address in AWS for each BYOC cluster. For the other AWS resources that the cluster uses, see Check AWS quotas.
-
| Redpanda Cloud does not support customer access or modifications to any of the internal data plane resources. This restriction allows Redpanda Data to manage all configuration changes internally to ensure a 99.99% service level agreement (SLA) for BYOC clusters. |
Manage custom tags
Your organization might require custom tags for cost allocation, audit compliance, or governance policies. After cluster creation, you can manage tags with the Cloud Control Plane API. The Control Plane API allows up to 16 custom tags in AWS. Redpanda reserves some tag keys. See Reserved tag keys.
Make sure you have:
-
The cluster ID. You can find this in the Redpanda Cloud UI, in the page header of the cluster overview.
-
A valid bearer token for the Cloud Control Plane API. For details, see Authenticate to the API.
Then complete the following steps:
-
To refresh agent permissions so the Redpanda agent can update tags, run:
export CLUSTER_ID="<cluster-id>" rpk cloud byoc aws apply --redpanda-id="$CLUSTER_ID"This step is required because tag management requires additional IAM permissions that may not have been granted during initial cluster creation:
-
ec2:DescribeTags -
ec2:DescribeVolumes -
ec2:DescribeNetworkInterfaces -
ec2:CreateTags -
ec2:DeleteTags -
iam:TagPolicy -
iam:UntagPolicy -
iam:TagInstanceProfile -
iam:UntagInstanceProfile
-
-
To update tags, invoke the Cloud API.
First, set your authentication token:
export AUTH_TOKEN="<your-bearer-token>"The
PATCHcall sets the tags specified under"cloud_provider_tags". It replaces the existing tags with the specified tags. Include all desired tags in the request. To remove a single entry, omit it from the map you send.cluster_patch_body=$(cat <<'JSON' { "cloud_provider_tags": { "Environment": "production", "CostCenter": "engineering" } } JSON ) curl -X PATCH "https://api.redpanda.com/v1/clusters/$CLUSTER_ID" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AUTH_TOKEN" \ -d "$cluster_patch_body"To remove all tags, send an empty
cloud_provider_tagsobject:cluster_patch_body='{"cloud_provider_tags": {}}' curl -X PATCH "https://api.redpanda.com/v1/clusters/$CLUSTER_ID" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AUTH_TOKEN" \ -d "$cluster_patch_body"
Reserved tag keys
Redpanda rejects the following tag keys in the Redpanda Cloud UI and when you update tags with the Control Plane API:
-
redpanda-org -
redpanda-id -
network-id -
redpanda-client
If you enter a reserved key in the UI, the UI shows the error This field is already in use by Redpanda. Redpanda matches keys exactly, including case. AWS also treats tag keys as case-sensitive.
Also avoid the following keys:
-
Keys that start with
redpanda-. Redpanda uses this prefix for its own tags, such asredpanda-name,redpanda-managed,redpanda-cloud-storage,redpanda-private-link, andredpanda-agent-version. When you update tags after cluster creation, Redpanda does not apply custom tags with this prefix to EC2 instances, EBS volumes, or network interfaces. The Redpanda Terraform provider also drops them from state. -
The
Namekey. Redpanda sets theNametag on the resources it creates. AWS displays this tag as the resource name in the console. -
Keys that start with
aws:. AWS reserves this prefix, and the UI rejects it.
These rules apply when you create the cluster and when you update tags with the Control Plane API.
When you update tags with the Control Plane API, it rejects the request only if the request adds one of the four reserved keys or changes the value Redpanda set for it. You can send the reserved tags back unchanged, for example from a GET response, or leave them out.