Skip to main content

AwsEcsServerModule

AwsEcsServerModule is an ECS-based AWS server module that provides an implementation for the Server model. This module creates servers with ECS deployment capabilities, IAM roles, security groups, and optional S3 storage access. It manages the infrastructure foundation for hosting containerized applications.

@example

TypeScript

import { AwsEcsServerModule } from '@quadnix/octo-aws-cdk/modules/server/aws-ecs-server';

octo.loadModule(AwsEcsServerModule, 'my-server-module', {
account: myAccount,
s3: [{
directories: [{
access: S3StorageAccess.READ_WRITE,
remoteDirectoryPath: 'uploads',
}],
service: myS3Service,
}],
securityGroupRules: [{
CidrBlock: '0.0.0.0/0',
Egress: false,
FromPort: 443,
ToPort: 443,
IpProtocol: 'tcp'
}],
serverKey: 'backend-server',
});
@group

Modules/Server/AwsEcsServer

@see

Hierarchy

Index

Constructors

constructor

  • Returns AwsEcsServerModule

Methods

onInit

registerMetadata

Page Options