AwsEfsFilesystemModule
Hierarchy
- AModule<AwsEfsFilesystemModuleSchema, Filesystem>
- AwsEfsFilesystemModule
Index
Constructors
Properties
Methods
Resources
Constructors
constructor
Parameters
moduleId: string
The ID this module is loaded under.
Returns AwsEfsFilesystemModule
Properties
readonlyinheritedmoduleId
The ID this module was loaded under. It scopes everything the module produces, so the same module class can be loaded more than once.
staticreadonlyinheritedMODULE_PACKAGE
The package the module is registered under, set by Module.
staticreadonlyinheritedMODULE_SCHEMA
The schema of the module's inputs, set by Module.
Methods
onInit
Creates the filesystem in its region, and anchors it so a subnet module can mount it.
Parameters
inputs: AwsEfsFilesystemModuleSchema
Returns Promise<AwsEfsFilesystem>
inheritedregisterHooks
To hook custom behavior into Octo's lifecycle for the duration of this module. Override it to return the callbacks you want run.
Returns { postCommitHooks?: PostHookSignature[]; postModelActionHooks?: PostHookSignature[]; postResourceActionHooks?: PostHookSignature[]; preCommitHooks?: PreHookSignature[]; preModelActionHooks?: PreHookSignature[]; preResourceActionHooks?: PreHookSignature[] }
optionalpostCommitHooks?: PostHookSignature[]
optionalpostModelActionHooks?: PostHookSignature[]
optionalpostResourceActionHooks?: PostHookSignature[]
optionalpreCommitHooks?: PreHookSignature[]
optionalpreModelActionHooks?: PreHookSignature[]
optionalpreResourceActionHooks?: PreHookSignature[]
registerMetadata
Resolves the account and region this filesystem is created in.
Parameters
inputs: AwsEfsFilesystemModuleSchema
Returns Promise<{ awsAccountId: string; awsRegionId: string }>
AwsEfsFilesystemModulecreates an EFS filesystem in a region (filesystemName) that containers mount and share, for files that outlive any one task.EFS bills the data stored per GB-month, about $0.30 for Standard storage in us-east-1, with throughput included. An empty filesystem costs nothing.
A replacement deletes the filesystem and creates an empty one; whatever mounts it loses its files meanwhile.
TypeScript
Modules/Filesystem/AwsEfsFilesystem
The filesystem is not encrypted at rest and has no automatic backups.
Throughput bursts in proportion to the data stored, so a nearly empty filesystem has little baseline throughput.
The filesystem uses the General Purpose performance mode, never Max I/O.
Deleting the module, or a change that replaces the filesystem, deletes every file on it, which octo cannot put back.
Changing
filesystemNameorregionreplaces the filesystem.Filesystemmodel.