Skip to content

Commit c114d08

Browse files
committed
fix(aws): fix services config creation
Do not rely on dns name being set in the environment when generating services config file. Instead, set it from the cached settings. Signed-off-by: Sergei Trofimov <[email protected]>
1 parent 4fdb298 commit c114d08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deployments/aws/bin/veraison

+2
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ class CreateServicesImageCommand(BaseCommand):
11061106
scaling = command_get_config(self, 'scaling')
11071107
support = command_get(self, 'support', 'support stack has been created')
11081108
password = command_get(self, 'postgres_admin_password', 'RDS stack has been created')
1109+
dns_name = command_get_config(self, 'dns-name')
11091110
os.environ['RDS_HOST'] = support['host']
11101111
os.environ['RDS_PORT'] = support['port']
11111112
os.environ['RDS_DBNAME'] = 'veraison'
@@ -1121,6 +1122,7 @@ class CreateServicesImageCommand(BaseCommand):
11211122
os.environ['MAX_STORE_CONNECTIONS'] = str(total_max_conn // (3 * scaling['max-size'])) # pyright: ignore
11221123
os.environ['DEPLOYMENT_NAME'] = args.deployment_name
11231124
os.environ['AWS_REGION'] = region # pyright: ignore
1125+
os.environ['VERAISON_AWS_DNS_NAME'] = dns_name # pyright: ignore
11241126

11251127
servers = command_get_elasticache_servers(self)
11261128
os.environ['ELASTICACHE_SERVERS'] = yaml.dump(servers, default_flow_style=True)

0 commit comments

Comments
 (0)