CI/CD - CodeBuild + CodeDeploy + CodePipeline

This commit is contained in:
Zakaria
2026-10-01 09:18:04 -04:00
parent aa02cdb7f6
commit 7f0d707578
41 changed files with 1817 additions and 78 deletions
+21
View File
@@ -6,6 +6,9 @@ import {
DescribeDBSnapshotsCommand,
DescribeOrderableDBInstanceOptionsCommand,
ModifyDBInstanceCommand,
RebootDBInstanceCommand,
StartDBInstanceCommand,
StopDBInstanceCommand,
type CreateDBInstanceCommandInput,
type DBInstance,
type DBSnapshot,
@@ -194,6 +197,24 @@ export function createRdsService(client: RDSClient = awsClients.rds) {
);
},
async startInstance(identifier: string): Promise<void> {
await client.send(
new StartDBInstanceCommand({ DBInstanceIdentifier: identifier }),
);
},
async stopInstance(identifier: string): Promise<void> {
await client.send(
new StopDBInstanceCommand({ DBInstanceIdentifier: identifier }),
);
},
async rebootInstance(identifier: string): Promise<void> {
await client.send(
new RebootDBInstanceCommand({ DBInstanceIdentifier: identifier }),
);
},
async listSnapshots(instanceIdentifier?: string): Promise<RdsSnapshot[]> {
const snapshots: RdsSnapshot[] = [];
let marker: string | undefined;