AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/route-53_example_route-53_CreateHostedZone_section.md

Summary

Added PowerShell example for creating a VPC-associated private hosted zone with delegation set

Security assessment

The example demonstrates creating a private hosted zone in a VPC, which is a security feature for network isolation. However, this documents existing functionality rather than addressing a security issue.

Diff

diff --git a/code-library/latest/ug/route-53_example_route-53_CreateHostedZone_section.md b/code-library/latest/ug/route-53_example_route-53_CreateHostedZone_section.md
index d96b81c13..f5d3925cf 100644
--- a//code-library/latest/ug/route-53_example_route-53_CreateHostedZone_section.md
+++ b//code-library/latest/ug/route-53_example_route-53_CreateHostedZone_section.md
@@ -57,0 +58,23 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: Creates a new hosted zone named 'example.com', associated with a reusable delegation set. Note that you must supply a value for the CallerReference parameter so that requests that need to be retried if necessary without the risk of executing the operation twice. Because the hosted zone is being created in a VPC it is automatically private and you should not set the -HostedZoneConfig_PrivateZone parameter.**
+    
+    
+    $params = @{
+        Name="example.com"
+        CallerReference="myUniqueIdentifier"
+        HostedZoneConfig_Comment="This is my first hosted zone"
+        DelegationSetId="NZ8X2CISAMPLE"
+        VPC_VPCId="vpc-1a2b3c4d"
+        VPC_VPCRegion="us-east-1"
+    }
+    
+    New-R53HostedZone @params
+    
+
+  * For API details, see [CreateHostedZone](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+