132132"""
133133walg_config_json_content = """
134134{
135- "AWS_REGION": "ap-southeast -1",
135+ "AWS_REGION": "us-east -1",
136136 "WALG_S3_PREFIX": "",
137137 "PGDATABASE": "postgres",
138138 "PGUSER": "supabase_admin",
158158 "service_key": "{ service_role_key } ",
159159 "supabase_admin_key": "{ supabase_admin_key } ",
160160 "common_name": "db.aaaaaaaaaaaaaaaaaaaa.supabase.red",
161- "region": "ap-southeast -1",
161+ "region": "us-east -1",
162162 "init_database_only": false
163163}}
164164"""
@@ -223,7 +223,7 @@ def run_ssh_command(ssh, command, timeout=None):
223223# scope='function' uses a new container per test function.
224224@pytest .fixture (scope = "session" )
225225def host ():
226- ec2 = boto3 .resource ("ec2" , region_name = "ap-southeast -1" )
226+ ec2 = boto3 .resource ("ec2" , region_name = "us-east -1" )
227227 images = list (
228228 ec2 .images .filter (
229229 Filters = [{"Name" : "name" , "Values" : [AMI_NAME ]}],
@@ -256,7 +256,7 @@ def gzip_then_base64_encode(s: str) -> str:
256256 "HttpTokens" : "required" ,
257257 "HttpEndpoint" : "enabled" ,
258258 },
259- IamInstanceProfile = {"Name" : "pg-ap-southeast -1" },
259+ IamInstanceProfile = {"Name" : "pg-us-east -1" },
260260 InstanceType = "t4g.micro" ,
261261 MinCount = 1 ,
262262 MaxCount = 1 ,
@@ -281,7 +281,7 @@ def gzip_then_base64_encode(s: str) -> str:
281281 - {{path: /tmp/init.json, content: { gzip_then_base64_encode (init_json_content )} , permissions: '0600', encoding: gz+b64}}
282282runcmd:
283283 - 'sudo echo \" pgbouncer\" \" postgres\" >> /etc/pgbouncer/userlist.txt'
284- - 'cd /tmp && aws s3 cp --region ap-southeast -1 s3://init-scripts-staging/project/init.sh .'
284+ - 'cd /tmp && aws s3 cp --region us-east -1 s3://init-scripts-staging/project/init.sh .'
285285 - 'bash init.sh "staging"'
286286 - 'touch /var/lib/init-complete'
287287 - 'rm -rf /tmp/*'
0 commit comments