As we witness the gradual transition from IPv4 to IPv6, Amazon Net Companies (AWS) continues to increase its assist for dual-stack networking throughout its service portfolio. On this publish, we present how one can migrate your Amazon Redshift Serverless workgroup from IPv4-only to dual-stack mode, so you may make your information warehouse future prepared.
An IP tackle serves as a digital id for units linked to the web. This distinctive numerical identifier allows units to speak throughout IP-based networks, facilitating the alternate of knowledge packets between supply and vacation spot.
Immediately’s web operates on two IP variations:
- IPv4 – The standard 32-bit addressing system (similar to 192.168.0.22) that has powered web communications for over three a long time. With roughly 4 billion doable addresses (2³²), IPv4’s limitations have turn out to be more and more obvious as our digital surroundings expands.
- IPv6 – The subsequent-generation 128-bit addressing system (similar to 2606:4700::6810:787f) affords an astronomical variety of distinctive addresses (340 undecillion or 2¹²⁸). This just about limitless tackle area is designed to accommodate the explosive progress of internet-connected units.
Within the case of Amazon Redshift, dual-stack networking permits Redshift workgroups to speak over each IPv4 and IPv6 protocols concurrently. This networking structure permits Redshift workgroups to be accessible utilizing each IPv4 and IPv6 addresses, offering higher flexibility and future-proofing for community communications. Twin-stack networking offers the next benefits:
- Future-proofing – Facilitates compatibility with each IPv4 methods and trendy IPv6 networks
- Enhanced connectivity – Offers extra versatile networking choices for numerous shopper purposes
Allow dual-stack networking for Amazon Redshift
An Amazon Redshift workgroup working in dual-stack mode has each IPv4 and IPv6 addresses related to the database endpoints. We’ve launched a brand new API discipline referred to as ipAddressTypewithin the Amazon Redshift API that provides you direct management over your workgroup’s community configuration. Now you can particularly select whether or not your Amazon Redshift occasion operates in IPv4-only mode or dual-stack mode. For full implementation particulars, check with the ipAddressType parameter within the Amazon Redshift API Reference.
Greatest observe
When implementing dual-stack networking in Amazon Redshift, deploy your workgroups in personal subnets with digital personal cloud (VPC) endpoints for optimum safety and compatibility. This strategy aligns with the present Amazon Redshift assist mannequin, which requires dual-stack databases to function in personal mode solely. Amazon Redshift doesn’t presently assist databases with IPv6-only endpoints or publicly accessible dual-stack cases.
Stipulations
To implement dual-stack networking in Amazon Redshift, it is advisable have the next conditions:
- An present Amazon Redshift serverless workgroups working in IPv4-only mode that you simply wish to convert to dual-stack mode
- Administrative permissions to switch Amazon Redshift workgroup community configurations
- VPC with each IPv4 and IPv6 CIDR blocks assigned
Allow IPv6 assist in your VPC subnets
Earlier than migrating your Amazon Redshift Serverless workgroup to dual-stack mode, it’s essential to first make sure that your VPC subnets assist IPv6 addressing. On this part, we stroll via the method of enabling IPv6 CIDR blocks in your VPC.
Present VPC Subnets
To allow dual-stack mode in your present VPC observe these 5 high-level steps:
- Entry the VPC dashboard
- Navigate to the subnet settings
- Add the IPv6 CIDR block
- Repeat for the required subnets
- Confirm IPv6 CIDR affiliation
To entry the VPC dashboard:
- Sign up to your account on the AWS Administration Console
- Within the search bar on the high, kind
VPC - Select VPC from the dropdown checklist to navigate to the Amazon Digital Non-public Cloud (Amazon VPC) dashboard
To navigate to subnet settings:
- Within the left navigation panel beneath Digital personal cloud, select Subnets
- From the subnet checklist, determine and choose the subnet(s) that your Amazon Redshift Serverless workgroup makes use of or will use
So as to add the IPv6 CIDR block:
- Along with your subnet chosen, select Actions within the dropdown checklist
- Select Edit IPv6 CIDRs from the accessible choices
- Within the configuration panel that seems, select Add IPv6 CIDR
- The system will routinely counsel an applicable IPv6 CIDR block allocation
- Select Save to use the modifications
Repeat for the required subnets. You should modify the subnets throughout the VPC that will likely be utilized by your Amazon Redshift sources. Repeat high-level steps 2–3 for every subnet in your Amazon Redshift subnet group.
Confirm the IPv6 CIDR affiliation. After finishing the configuration, confirm that every subnet shows each IPv4 and IPv6 CIDR blocks within the subnet particulars. Your subnet particulars ought to present one thing like the next snippet:IPv4 CIDR: 10.0.0.0/24IPv6 CIDR: 2600:1f16:c72:9d00::/64

After you’ve efficiently configured IPv6 CIDR blocks for the related subnets, you’re able to proceed with enabling dual-stack mode in your Amazon Redshift Serverless workgroup.
New VPC Subnets
To allow dual-stack mode in a brand new VPC, observe these steps:
- To create a dual-stack VPC, add the
--amazon-provided-ipv6-cidr-blockpossibility so as to add an Amazon supplied IPv6 CIDR block, as proven within the following instance: - [Dual stack VPC] Get the IPv6 CIDR block that’s related along with your VPC through the use of the next describe-vpcs command:
- When you created a dual-stack VPC, you need to use the
--ipv6-cidr-blockchoice to create a twin stack subnet, as proven within the following command:
Migrate an present Amazon Redshift Serverless workgroup from IPv4 to IPv6
To allow dual-stack mode in your Amazon Redshift Serverless workgroup, observe these 5 high-level steps:
- Entry Amazon Redshift Serverless
- Choose your workgroup
- Entry community and safety settings
- Allow dual-stack mode
- Confirm the configuration
To entry Amazon Redshift Serverless:
- Sign up to AWS Administration Console utilizing your credentials.
- Within the search bar on the high of the console, enter
Redshift. - Select Amazon Redshift within the dropdown checklist. This may take you to the Amazon Redshift dashboard. Verify Ensure you’re on the Redshift Serverless dashboard view
To pick out your workgroup:
- Within the Redshift Serverless dashboard, find the Workgroups part
- Choose the title of the precise workgroup you wish to modify
To entry community and safety settings:
- On the workgroup particulars web page, find the horizontal navigation tabs
- Subsequent to the Question and database monitoring part, select the Information entry tab
- Select Edit to entry the Edit community and safety web page
To allow dual-stack mode:
- Within the community settings part, find the IP tackle kind choices
- Select Twin-stack mode. This allows connectivity for each IPv4 and IPv6
- Select Save modifications on the backside of the web page
To confirm the configuration:
After the modifications are utilized, you’ll be returned to the workgroup particulars web page. Verify that your workgroup now shows Twin-stack mode in its community settings, as proven within the following screenshot.

Your Amazon Redshift Serverless workgroup is now configured to assist each IPv4 and IPv6 visitors. This configuration permits your Redshift Serverless workgroup to speak over each IPv4 and IPv6 protocols, offering higher flexibility in your community connectivity choices.
Entry Redshift dual-stack serverless workgroups
Redshift dual-stack workgroups keep the identical entry strategies no matter whether or not you’re connecting utilizing IPv4 or IPv6. Your present connection endpoints stay unchanged.
To entry a Redshift dual-stack workgroups from an Amazon Elastic Compute Cloud (Amazon EC2) occasion, observe these steps:
- Create an IPv4 EC2 occasion.
- Add the related EC2 safety group to your Redshift workgroup’s safety group inbound guidelines.
- Connect with your EC2 occasion. Log in to your EC2 occasion on the AWS console to put in the psql shopper to check the database connectivity. Enter the next instructions from the terminal window:
Connect with your Redshift workgroup utilizing utility person
Enter password when prompted
- Enter pattern queries, as proven within the following:

- Validate the IPv4 connection utilizing the next SQL by changing your related IPv4 EC2 occasion IP tackle:

- Execute an identical validation steps in your IPv6-enabled EC2 occasion to confirm that each one performance operates accurately with the IPv6 protocol stack utilizing the previous instructions.
Create dual-stack mode in Amazon Redshift Serverless utilizing AWS CLI
You’ll be able to create a brand new dual-stack mode in Amazon Redshift Serverless utilizing AWS Command Line Interface (AWS CLI). Observe these high-level steps:
- Create a namespace
- Create a workgroup
- Confirm the workgroup is ready up in dual-stack mode
To create namespace, enter the next code:
To create workgroup, enter the next code:
To confirm the workgroup is ready up in dual-stack mode, check with the steps within the earlier part.
Clear up
To scrub up your sources, full the next steps:
- On the Amazon Redshift Serverless console, delete the Amazon Redshift workgroups and namespaces
- On the Amazon EC2 console, terminate the EC2 cases
Conclusion
On this publish, we’ve explored the potential of Amazon Redshift Serverless to assist IPv6 addressing via dual-stack mode, marking a major development within the AWS information warehouse networking flexibility.
We’ve walked via the entire migration journey, from getting ready your VPC subnets with IPv6 CIDR blocks to configuring your Amazon Redshift Serverless workgroup for dual-stack operation. The method is simple. Though IPv6-only configurations aren’t but supported for Amazon Redshift, the dual-stack strategy offers a really perfect transition path, sustaining compatibility with present IPv4 methods whereas introducing IPv6 capabilities. Do not forget that dual-stack configurations are presently restricted to personal entry mode, with public accessibility not but supported for dual-stack cases.
By migrating to dual-stack mode now, you may make certain your Amazon Redshift surroundings stays optimally linked, addressable, and able to assist your group’s information analytics wants properly into the longer term—no matter how web addressing protocols proceed to evolve.
You probably have questions or strategies on the content material coated on this publish, go away them within the feedback part.
In regards to the authors