mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 17:16:01 +00:00
AWS IAM connection for MySQL
This commit is contained in:
@@ -255,10 +255,10 @@
|
||||
label="AWS Region"
|
||||
name="awsRegion"
|
||||
menu={() => {
|
||||
return awsRegions.map(region => ({
|
||||
text: region,
|
||||
return awsRegions.map(awsRegion => ({
|
||||
text: awsRegion,
|
||||
onClick: () => {
|
||||
$values.awsRegion = region;
|
||||
$values = { ...$values, awsRegion };
|
||||
},
|
||||
}));
|
||||
}}
|
||||
@@ -270,7 +270,7 @@
|
||||
<div class="col-6 mr-1">
|
||||
<FormTextField
|
||||
label="Access Key ID"
|
||||
name="awsAccessKeyId"
|
||||
name="accessKeyId"
|
||||
disabled={isConnected || disabledFields.includes('accessKeyId')}
|
||||
templateProps={{ noMargin: true }}
|
||||
/>
|
||||
|
||||
@@ -48,7 +48,7 @@ const drivers = driverBases.map(driverBase => ({
|
||||
user,
|
||||
password: awsIamToken || password,
|
||||
database,
|
||||
ssl,
|
||||
ssl: authType == 'awsIam' ? ssl || { rejectUnauthorized: false } : ssl,
|
||||
rowsAsArray: forceRowsAsObjects ? false : true,
|
||||
supportBigNumbers: true,
|
||||
bigNumberStrings: true,
|
||||
@@ -57,8 +57,6 @@ const drivers = driverBases.map(driverBase => ({
|
||||
// multipleStatements: true,
|
||||
};
|
||||
|
||||
console.log('MySQL connection options', options);
|
||||
|
||||
const client = mysql2.createConnection(options);
|
||||
const dbhan = {
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user