@@ -107,15 +107,16 @@ protected function determineDatabaseType($public)
107
107
return 'rds ' ;
108
108
}
109
109
110
- return tap ($ this ->option ('serverless ' ) ? 'aurora-serverless ' : $ this ->menu ('Which type of database would you like to create? ' , [
110
+ return tap ($ this ->option ('serverless ' ) ? 'aurora-serverless-v2 ' : $ this ->menu ('Which type of database would you like to create? ' , [
111
111
'rds ' => 'Fixed Size MySQL Instance 8.0 (Free Tier Eligible) ' ,
112
112
'rds-mysql-5.7 ' => 'Fixed Size MySQL Instance 5.7 (Free Tier Eligible) ' ,
113
- 'aurora-serverless ' => 'Serverless MySQL Aurora Cluster ' ,
113
+ 'aurora-serverless ' => 'Serverless v1 MySQL 5.7 Aurora Cluster ' ,
114
+ 'aurora-serverless-v2 ' => 'Serverless v2 MySQL 8.0 Aurora Cluster ' ,
114
115
'rds-pgsql-13.4 ' => 'Fixed Size PostgreSQL Instance 13.4 ' ,
115
116
'rds-pgsql-11.10 ' => 'Fixed Size PostgreSQL Instance 11.10 ' ,
116
117
'aurora-serverless-pgsql ' => 'Serverless PostgreSQL Aurora Cluster ' ,
117
118
]), function ($ type ) use ($ public ) {
118
- if ($ type == 'aurora-serverless ' && $ public ) {
119
+ if (in_array ( $ type, [ ' aurora-serverless ' , 'aurora-serverless-v2 ' , ' aurora-serverless-pgsql ' ]) && $ public ) {
119
120
Helpers::abort ('Aurora Serverless clusters may not be publicly accessible. ' );
120
121
}
121
122
});
@@ -133,7 +134,7 @@ protected function determineInstanceClass($type)
133
134
return 'db.t3.micro ' ;
134
135
}
135
136
136
- if ($ type == 'aurora-serverless ' ) {
137
+ if (in_array ( $ type, [ ' aurora-serverless ' , 'aurora-serverless-v2 ' ]) ) {
137
138
return ;
138
139
}
139
140
@@ -178,7 +179,7 @@ protected function determineRdsInstanceClass()
178
179
*/
179
180
protected function determineAllocatedStorage ($ type )
180
181
{
181
- if ($ type == 'aurora-serverless ' ) {
182
+ if (in_array ( $ type, [ ' aurora-serverless ' , 'aurora-serverless-v2 ' , ' aurora-serverless-pgsql ' ]) ) {
182
183
return ;
183
184
}
184
185
0 commit comments