User Tools

Site Tools


aws:vpc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
aws:vpc [29/07/2025 16:30] – [Get subnets in VPC] andrewaws:vpc [31/07/2025 13:08] (current) andrew
Line 2: Line 2:
  
 FIXME intro blurb on VPC, AZ, subnets, IG / NAT gateway FIXME intro blurb on VPC, AZ, subnets, IG / NAT gateway
 +
 +{{aws:st-setip_iot.png?300 |VPC with two AZ and subnets}}
  
  
Line 37: Line 39:
  
  
-This works in Cloudformation to tempate the allowed digits in and IPv4 address.+This works in Cloudformation to tempate the allowed digits in and IPv4 address. Not exhaustively tested.
  
 <code> <code>
 "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(22))$" "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(22))$"
 </code> </code>
 +
 +CF Template example:-
 +<code yaml>
 +  "Parameters": {
 +    "VPCCIDR": {
 +      "AllowedPattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(22))$",
 +      "ConstraintDescription": "CIDR block parameter must be in the form x.x.x.x/22",
 +      "Default": "192.168.192.0/22",
 +      "Description": "CIDR block for VPC",
 +      "Type": "String"
 +    }
 +</code>
 +
 +
 +This may bea better example:- [[https://ihateregex.io/expr/ip/]]
 +
  
 ===== IPv6 Regex ===== ===== IPv6 Regex =====
aws/vpc.1753806634.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki