Skip to content

Commit

Permalink
show warning for expriring certificates (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored Sep 21, 2023
1 parent 7eff841 commit 012b8be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Commands/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public function handle()
$this->debugMode()
));

if ($deployment['database'] && $deployment['database']['certificate_authority_status'] === 'expiring') {
Helpers::line();
Helpers::warn('You database is uses a certificate which expires in August 2024. To prevent connectivity issues after this date, please update the Certificate Authority of your database from the AWS console using the link below.');
Helpers::line();
Helpers::line("https://{$deployment['database']['region']}.console.aws.amazon.com/rds/home?region={$deployment['database']['region']}#ca-cert-update:");
}

if ($this->option('without-waiting')) {
Helpers::line();

Expand Down

0 comments on commit 012b8be

Please sign in to comment.