Skip to content

Commit b2b82c1

Browse files
committed
fix: don't ask about nat gateway for private database server with aurora
1 parent bc76647 commit b2b82c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Database/CreateDatabaseServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function perform(InputInterface $input, OutputInterface $output)
7070
$storage = 'aurora-mysql' !== $type ? $this->determineStorage($input, $output) : null;
7171
$public = 'aurora-mysql' !== $type && $this->determinePublic($input, $output);
7272

73-
if (!$public && !$network->get('has_nat_gateway') && !$output->confirm('A private database server requires that Ymir add a NAT gateway (~$32/month) to your network. Would you like to proceed? <fg=default>(Answering "<comment>no</comment>" will make the database server publicly accessible.)</>')) {
73+
if ('aurora-mysql' !== $type && !$public && !$network->get('has_nat_gateway') && !$output->confirm('A private database server requires that Ymir add a NAT gateway (~$32/month) to your network. Would you like to proceed? <fg=default>(Answering "<comment>no</comment>" will make the database server publicly accessible.)</>')) {
7474
$public = true;
7575
} elseif ('aurora-mysql' === $type && !$network->get('has_nat_gateway') && !$output->confirm('An Aurora serverless database cluster requires that Ymir add a NAT gateway (~$32/month) to your network. Would you like to proceed? <fg=default>(Answering "<comment>no</comment>" will cancel the command.)</>')) {
7676
throw new CommandCancelledException();

0 commit comments

Comments
 (0)