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