AwsIniAccountModule
Hierarchy
- AModule<AwsIniAccountModuleSchema, AwsIniAccount>
- AwsIniAccountModule
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
moduleId: string
The ID this module is loaded under.
Returns AwsIniAccountModule
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 account from the named AWS CLI profile, and anchors it for other modules to find.
Parameters
inputs: AwsIniAccountModuleSchema
Returns Promise<AwsIniAccount>
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[]
inheritedregisterMetadata
To derive values that both AModule.onInit and this module's actions need - typically facts resolved from another module's anchors, such as an account ID or a region's availability zones. Override it, and the returned object is handed to every action of this module as
actionInputs.metadata.Parameters
inputs: AwsIniAccountModuleSchema
The inputs this module was loaded with.
Returns Promise<Record<string, unknown>>
AwsIniAccountModulegives octo an AWS account to deploy into, signed in through a named profile (iniProfile) of~/.aws/configor~/.aws/credentials.Nothing: an account module creates no resources.
None: it creates no resources.
TypeScript
Modules/Account/AwsIniAccount
The profile's credentials are read on every command. An SSO profile's session expires, and octo refuses to apply with one about to: sign in again with
aws sso loginbefore a run.Nothing.
Changing
accountIdmoves every resource of the app to the other account: each is deleted in the old account and created in the new.Accountmodel.