@@ -36,6 +36,7 @@ lazy_static! {
3636 let mut m = HashMap :: new( ) ;
3737 m. insert( "af-south-1" , "917644944286" ) ;
3838 m. insert( "ap-east-1" , "375569722642" ) ;
39+ m. insert( "ap-east-2" , "905418444513" ) ;
3940 m. insert( "ap-northeast-1" , "328549459982" ) ;
4041 m. insert( "ap-northeast-2" , "328549459982" ) ;
4142 m. insert( "ap-northeast-3" , "328549459982" ) ;
@@ -69,6 +70,11 @@ lazy_static! {
6970 m. insert( "us-east-2" , "328549459982" ) ;
7071 m. insert( "us-gov-east-1" , "388230364387" ) ;
7172 m. insert( "us-gov-west-1" , "347163068887" ) ;
73+ m. insert( "us-iso-east-1" , "999945528765" ) ;
74+ m. insert( "us-iso-west-1" , "928668704122" ) ;
75+ m. insert( "us-isob-east-1" , "782457047625" ) ;
76+ m. insert( "us-isof-east-1" , "891631471851" ) ;
77+ m. insert( "us-isof-south-1" , "482061074055" ) ;
7278 m. insert( "us-west-1" , "328549459982" ) ;
7379 m. insert( "us-west-2" , "328549459982" ) ;
7480 m
@@ -104,6 +110,11 @@ lazy_static! {
104110 m. insert( "cn-north-1" , "bottlerocket-updates-cn-north-1.s3.dualstack" ) ;
105111 m. insert( "cn-northwest-1" , "bottlerocket-updates-cn-northwest-1.s3.dualstack" ) ;
106112 m. insert( "eu-isoe-west-1" , "bottlerocket-updates-eu-isoe-west-1.s3" ) ;
113+ m. insert( "us-iso-east-1" , "bottlerocket-updates-us-iso-east-1.s3" ) ;
114+ m. insert( "us-iso-west-1" , "bottlerocket-updates-us-iso-west-1.s3" ) ;
115+ m. insert( "us-isob-east-1" , "bottlerocket-updates-us-isob-east-1.s3" ) ;
116+ m. insert( "us-isof-east-1" , "bottlerocket-updates-us-isof-east-1.s3" ) ;
117+ m. insert( "us-isof-south-1" , "bottlerocket-updates-us-isof-south-1.s3" ) ;
107118 m
108119 } ;
109120}
@@ -119,6 +130,11 @@ lazy_static! {
119130 m. insert( "eu-isoe-west-1" , "aws-iso-e" ) ;
120131 m. insert( "us-gov-east-1" , "aws-us-gov" ) ;
121132 m. insert( "us-gov-west-1" , "aws-us-gov" ) ;
133+ m. insert( "us-iso-west-1" , "aws-iso" ) ;
134+ m. insert( "us-iso-east-1" , "aws-iso" ) ;
135+ m. insert( "us-isob-east-1" , "aws-iso-b" ) ;
136+ m. insert( "us-isof-east-1" , "aws-iso-f" ) ;
137+ m. insert( "us-isof-south-1" , "aws-iso-f" ) ;
122138 m
123139 } ;
124140}
@@ -1526,7 +1542,10 @@ fn ecr_registry<S: AsRef<str>>(region: S) -> String {
15261542 } ;
15271543 match partition {
15281544 "aws-cn" => format ! ( "{}.dkr.ecr.{}.amazonaws.com.cn" , registry_id, region) ,
1545+ "aws-iso" => format ! ( "{}.dkr.ecr.{}.c2s.ic.gov" , registry_id, region) ,
1546+ "aws-iso-b" => format ! ( "{}.dkr.ecr.{}.sc2s.sgov.gov" , registry_id, region) ,
15291547 "aws-iso-e" => format ! ( "{}.dkr.ecr.{}.cloud.adc-e.uk" , registry_id, region) ,
1548+ "aws-iso-f" => format ! ( "{}.dkr.ecr.{}.csp.hci.ic.gov" , registry_id, region) ,
15301549 _ => {
15311550 // Only inject the FIPS service endpoint if the variant is in FIPS mode and the
15321551 // region supports FIPS.
@@ -1554,7 +1573,10 @@ fn tuf_repository<S: AsRef<str>>(region: S) -> String {
15541573 } ;
15551574 match partition {
15561575 "aws-cn" => format ! ( "https://{}.{}.amazonaws.com.cn/latest" , endpoint, region) ,
1576+ "aws-iso" => format ! ( "https://{}.{}.c2s.ic.gov/latest" , endpoint, region) ,
1577+ "aws-iso-b" => format ! ( "https://{}.{}.sc2s.sgov.gov/latest" , endpoint, region) ,
15571578 "aws-iso-e" => format ! ( "https://{}.{}.cloud.adc-e.uk/latest" , endpoint, region) ,
1579+ "aws-iso-f" => format ! ( "https://{}.{}.csp.hci.ic.gov/latest" , endpoint, region) ,
15581580 _ => format ! ( "https://{}.{}.amazonaws.com/latest" , endpoint, region) ,
15591581 }
15601582}
@@ -1728,6 +1750,26 @@ mod test_ecr_registry {
17281750 "eu-isoe-west-1" ,
17291751 "589460436674.dkr.ecr.eu-isoe-west-1.cloud.adc-e.uk/bottlerocket-admin:v0.5.1" ,
17301752 ) ,
1753+ (
1754+ "us-iso-east-1" ,
1755+ "999945528765.dkr.ecr.us-iso-east-1.c2s.ic.gov/bottlerocket-admin:v0.5.1" ,
1756+ ) ,
1757+ (
1758+ "us-iso-west-1" ,
1759+ "928668704122.dkr.ecr.us-iso-west-1.c2s.ic.gov/bottlerocket-admin:v0.5.1" ,
1760+ ) ,
1761+ (
1762+ "us-isob-east-1" ,
1763+ "782457047625.dkr.ecr.us-isob-east-1.sc2s.sgov.gov/bottlerocket-admin:v0.5.1" ,
1764+ ) ,
1765+ (
1766+ "us-isof-south-1" ,
1767+ "482061074055.dkr.ecr.us-isof-south-1.csp.hci.ic.gov/bottlerocket-admin:v0.5.1" ,
1768+ ) ,
1769+ (
1770+ "us-isof-east-1" ,
1771+ "891631471851.dkr.ecr.us-isof-east-1.csp.hci.ic.gov/bottlerocket-admin:v0.5.1" ,
1772+ ) ,
17311773 ] ;
17321774
17331775 const ADMIN_CONTAINER_TEMPLATE : & str =
@@ -1777,6 +1819,7 @@ mod test_tuf_repository {
17771819 "https://bottlerocket-updates-cn-north-1.s3.dualstack.cn-north-1.amazonaws.com.cn/latest/metadata/2020-07-07/" ;
17781820
17791821 const EXPECTED_URL_EU_ISOE_WEST_1 : & str = "https://bottlerocket-updates-eu-isoe-west-1.s3.eu-isoe-west-1.cloud.adc-e.uk/latest/metadata/2020-07-07/" ;
1822+ const EXPECTED_URL_US_ISOF_EAST_1 : & str = "https://bottlerocket-updates-us-isof-east-1.s3.us-isof-east-1.csp.hci.ic.gov/latest/metadata/2020-07-07/" ;
17801823
17811824 #[ test]
17821825 fn url_af_south_1 ( ) {
@@ -1817,6 +1860,16 @@ mod test_tuf_repository {
18171860 . unwrap ( ) ;
18181861 assert_eq ! ( result, EXPECTED_URL_EU_ISOE_WEST_1 ) ;
18191862 }
1863+
1864+ #[ test]
1865+ fn url_us_isof_east_1 ( ) {
1866+ let result = setup_and_render_template (
1867+ METADATA_TEMPLATE ,
1868+ & json ! ( { "settings" : { "aws" : { "region" : "us-isof-east-1" } } } ) ,
1869+ )
1870+ . unwrap ( ) ;
1871+ assert_eq ! ( result, EXPECTED_URL_US_ISOF_EAST_1 ) ;
1872+ }
18201873}
18211874
18221875#[ cfg( test) ]
0 commit comments