RDS port issue fixed
This commit is contained in:
@@ -45,6 +45,8 @@ services:
|
|||||||
image: floci/floci:latest-compat
|
image: floci/floci:latest-compat
|
||||||
ports:
|
ports:
|
||||||
- "4566:4566"
|
- "4566:4566"
|
||||||
|
# RDS data-plane proxies. CreateDBInstance allocates ports in 7001-7099.
|
||||||
|
- "7001-7099:7001-7099"
|
||||||
volumes:
|
volumes:
|
||||||
# Floci runs Lambda functions in throwaway containers, so it needs the host
|
# Floci runs Lambda functions in throwaway containers, so it needs the host
|
||||||
# Docker daemon. Without this, invoke fails with "Failed to start Lambda
|
# Docker daemon. Without this, invoke fails with "Failed to start Lambda
|
||||||
|
|||||||
@@ -335,7 +335,12 @@ function DatabaseConnectionCommand({ engine, address, port, database, username }
|
|||||||
: engine.includes('mysql') || engine.includes('mariadb')
|
: engine.includes('mysql') || engine.includes('mariadb')
|
||||||
? `mysql --host=${host} --port=${port} --user=${username} --password ${database}`
|
? `mysql --host=${host} --port=${port} --user=${username} --password ${database}`
|
||||||
: `sqlcmd -S ${host},${port} -U ${username} -P <password> -d ${database}`
|
: `sqlcmd -S ${host},${port} -U ${username} -P <password> -d ${database}`
|
||||||
return <div className="metadata-block"><p className="metric-label">Terminal connection</p><p className="copy-value mono">{command}<CopyValueButton value={command} label="Connection command" /></p><p className="muted compact-text">Use the endpoint, port, database, and username above in DBeaver or another database client. The password is never retained by the console.</p></div>
|
const uri = engine.includes('postgres')
|
||||||
|
? `postgresql://${username}:<password>@${host}:${port}/${database}`
|
||||||
|
: engine.includes('mysql') || engine.includes('mariadb')
|
||||||
|
? `mysql://${username}:<password>@${host}:${port}/${database}`
|
||||||
|
: `Server=${host},${port};Database=${database};User Id=${username};Password=<password>;`
|
||||||
|
return <div className="metadata-block"><p className="metric-label">Terminal connection</p><p className="copy-value mono">{command}<CopyValueButton value={command} label="Connection command" /></p><p className="metric-label">Client connection URI</p><p className="copy-value mono">{uri}<CopyValueButton value={uri} label="Connection URI" /></p><p className="muted compact-text">Paste the URI into a compatible database client, then replace the password placeholder. The password is never retained by the console.</p></div>
|
||||||
}
|
}
|
||||||
|
|
||||||
function DatabaseLifecycleSection({ status }: { status?: string | null }) {
|
function DatabaseLifecycleSection({ status }: { status?: string | null }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user