feat: fully functioning ALB

This commit is contained in:
Zakaria
2026-09-26 16:14:24 -04:00
parent 093afb9b2b
commit 8470b8d17a
44 changed files with 2076 additions and 132 deletions
+17 -4
View File
@@ -12,6 +12,18 @@ export type Ec2SecurityGroupRef = {
name?: string;
};
export type Ec2NetworkInterface = {
networkInterfaceId: string;
deviceIndex?: number;
status?: string;
privateIpAddress?: string;
publicIpAddress?: string;
privateDnsName?: string;
subnetId?: string;
vpcId?: string;
securityGroups: Ec2SecurityGroupRef[];
};
export type Ec2IpPermission = {
protocol: string;
fromPort: number | null;
@@ -61,6 +73,7 @@ export type Ec2Instance = {
architecture?: string;
platform?: string;
securityGroups: Ec2SecurityGroupRef[];
networkInterfaces: Ec2NetworkInterface[];
tags: Ec2Tag[];
};
@@ -391,7 +404,7 @@ export async function authorizeEc2SecurityGroupIngress(
): Promise<void> {
await apiClient.call(
apiEndpointKeys.aws.ec2.securityGroups.authorize,
{ body: JSON.stringify(permission), headers: { "content-type": "application/json" } },
{ body: permission },
{ groupId },
);
}
@@ -402,7 +415,7 @@ export async function revokeEc2SecurityGroupIngress(
): Promise<void> {
await apiClient.call(
apiEndpointKeys.aws.ec2.securityGroups.revoke,
{ body: JSON.stringify(permission), headers: { "content-type": "application/json" } },
{ body: permission },
{ groupId },
);
}
@@ -413,7 +426,7 @@ export async function authorizeEc2SecurityGroupEgress(
): Promise<void> {
await apiClient.call(
apiEndpointKeys.aws.ec2.securityGroups.authorizeEgress,
{ body: JSON.stringify(permission), headers: { "content-type": "application/json" } },
{ body: permission },
{ groupId },
);
}
@@ -424,7 +437,7 @@ export async function revokeEc2SecurityGroupEgress(
): Promise<void> {
await apiClient.call(
apiEndpointKeys.aws.ec2.securityGroups.revokeEgress,
{ body: JSON.stringify(permission), headers: { "content-type": "application/json" } },
{ body: permission },
{ groupId },
);
}