@@ -79,36 +79,37 @@ public class RdsUtils {
7979 "^(?<instance>.+)\\ ."
8080 + "(?<dns>proxy-|cluster-|cluster-ro-|cluster-custom-|shardgrp-)?"
8181 + "(?<domain>[a-zA-Z0-9]+\\ .(?<region>[a-zA-Z0-9\\ -]+)"
82- + "\\ .rds\\ .amazonaws\\ .com\\ .?)$" ,
82+ + "\\ .( rds|rds-fips) \\ .amazonaws\\ .( com|au|eu|uk) \\ .?)$" ,
8383 Pattern .CASE_INSENSITIVE );
8484
8585 private static final Pattern AURORA_CLUSTER_PATTERN =
8686 Pattern .compile (
8787 "^(?<instance>.+)\\ ."
8888 + "(?<dns>cluster-|cluster-ro-)+"
8989 + "(?<domain>[a-zA-Z0-9]+\\ .(?<region>[a-zA-Z0-9\\ -]+)"
90- + "\\ .rds\\ .amazonaws\\ .com\\ .?)$" ,
90+ + "\\ .( rds|rds-fips) \\ .amazonaws\\ .( com|au|eu|uk) \\ .?)$" ,
9191 Pattern .CASE_INSENSITIVE );
9292 private static final Pattern AURORA_LIMITLESS_CLUSTER_PATTERN =
9393 Pattern .compile (
9494 "(?<instance>.+)\\ ."
9595 + "(?<dns>shardgrp-)+"
9696 + "(?<domain>[a-zA-Z0-9]+\\ .(?<region>[a-zA-Z0-9\\ -]+)"
97- + "\\ .rds\\ .(amazonaws\\ .com\\ .?|amazonaws\\ .com\\ .cn\\ .?|sc2s\\ .sgov\\ .gov\\ .?|c2s\\ .ic\\ .gov\\ .?))$" ,
97+ + "\\ .(rds|rds-fips)\\ .(amazonaws\\ .com\\ .?|amazonaws\\ .eu\\ .?|amazonaws\\ .au\\ .?|amazonaws\\ .uk\\ .?"
98+ + "|amazonaws\\ .com\\ .cn\\ .?|sc2s\\ .sgov\\ .gov\\ .?|c2s\\ .ic\\ .gov\\ .?))$" ,
9899 Pattern .CASE_INSENSITIVE );
99100 private static final Pattern AURORA_CHINA_DNS_PATTERN =
100101 Pattern .compile (
101102 "^(?<instance>.+)\\ ."
102103 + "(?<dns>proxy-|cluster-|cluster-ro-|cluster-custom-|shardgrp-)?"
103- + "(?<domain>[a-zA-Z0-9]+\\ .rds\\ .(?<region>[a-zA-Z0-9\\ -]+)"
104+ + "(?<domain>[a-zA-Z0-9]+\\ .( rds|rds-fips) \\ .(?<region>[a-zA-Z0-9\\ -]+)"
104105 + "\\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
105106 Pattern .CASE_INSENSITIVE );
106107
107108 private static final Pattern AURORA_CHINA_CLUSTER_PATTERN =
108109 Pattern .compile (
109110 "^(?<instance>.+)\\ ."
110111 + "(?<dns>cluster-|cluster-ro-)+"
111- + "(?<domain>[a-zA-Z0-9]+\\ .rds\\ .(?<region>[a-zA-Z0-9\\ -]+)"
112+ + "(?<domain>[a-zA-Z0-9]+\\ .( rds|rds-fips) \\ .(?<region>[a-zA-Z0-9\\ -]+)"
112113 + "\\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
113114 Pattern .CASE_INSENSITIVE );
114115
@@ -117,37 +118,37 @@ public class RdsUtils {
117118 "^(?<instance>.+)\\ ."
118119 + "(?<dns>proxy-|cluster-|cluster-ro-|cluster-custom-|shardgrp-)?"
119120 + "(?<domain>[a-zA-Z0-9]+\\ .(?<region>[a-zA-Z0-9\\ -]+)"
120- + "\\ .rds\\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
121+ + "\\ .( rds|rds-fips) \\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
121122 Pattern .CASE_INSENSITIVE );
122123
123124 private static final Pattern AURORA_OLD_CHINA_CLUSTER_PATTERN =
124125 Pattern .compile (
125126 "^(?<instance>.+)\\ ."
126127 + "(?<dns>cluster-|cluster-ro-)+"
127128 + "(?<domain>[a-zA-Z0-9]+\\ .(?<region>[a-zA-Z0-9\\ -]+)"
128- + "\\ .rds\\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
129+ + "\\ .( rds|rds-fips) \\ .amazonaws\\ .com\\ .cn\\ .?)$" ,
129130 Pattern .CASE_INSENSITIVE );
130131
131132 private static final Pattern AURORA_GOV_DNS_PATTERN =
132133 Pattern .compile (
133134 "^(?<instance>.+)\\ ."
134135 + "(?<dns>proxy-|cluster-|cluster-ro-|cluster-custom-|shardgrp-)?"
135- + "(?<domain>[a-zA-Z0-9]+\\ .rds\\ .(?<region>[a-zA-Z0-9\\ -]+)"
136+ + "(?<domain>[a-zA-Z0-9]+\\ .( rds|rds-fips) \\ .(?<region>[a-zA-Z0-9\\ -]+)"
136137 + "\\ .(amazonaws\\ .com\\ .?|c2s\\ .ic\\ .gov\\ .?|sc2s\\ .sgov\\ .gov\\ .?))$" ,
137138 Pattern .CASE_INSENSITIVE );
138139
139140 private static final Pattern AURORA_GOV_CLUSTER_PATTERN =
140141 Pattern .compile (
141142 "^(?<instance>.+)\\ ."
142143 + "(?<dns>cluster-|cluster-ro-)+"
143- + "(?<domain>[a-zA-Z0-9]+\\ .rds\\ .(?<region>[a-zA-Z0-9\\ -]+)"
144+ + "(?<domain>[a-zA-Z0-9]+\\ .( rds|rds-fips) \\ .(?<region>[a-zA-Z0-9\\ -]+)"
144145 + "\\ .(amazonaws\\ .com\\ .?|c2s\\ .ic\\ .gov\\ .?|sc2s\\ .sgov\\ .gov\\ .?))$" ,
145146 Pattern .CASE_INSENSITIVE );
146147
147148 private static final Pattern ELB_PATTERN =
148149 Pattern .compile (
149150 "^(?<instance>.+)\\ .elb\\ ."
150- + "((?<region>[a-zA-Z0-9\\ -]+)\\ .amazonaws\\ .com\\ .?)$" ,
151+ + "((?<region>[a-zA-Z0-9\\ -]+)\\ .amazonaws\\ .( com|au|eu|uk) \\ .?)$" ,
151152 Pattern .CASE_INSENSITIVE );
152153
153154 private static final Pattern IP_V4 =
0 commit comments