Package: accretion-cli
The Accretion CLI is the primary point for controlling Accretion resources.The Accretion CLI maintains configuration state in a “Deployment File”.WarningAccretion is under active development and is not yet stable.
The below reflects the target interface for the Accretion CLI.
Not all commands will work yet.UsageinitInitialize theDEPLOYMENT_FILEfor deployments toREGIONS.This does NOT deploy to those regions.Runaccretion updateto update and fill all regions in a deployment file.accretioninitDEPLOYMENT_FILEREGIONS...updateUpdate deployments in all regions described inDEPLOYMENT_FILE.This will also
initialize any empty deployment regions
and complete any partial deployments.accretionupdateallDEPLOYMENT_FILEadd regionsAdd moreREGIONSto an existing deployment description inDEPLOYMENT_FILE.This does NOT deploy to those regions.Runaccretion updateto update and fill all regions in a deployment file.accretionaddregionsDEPLOYMENT_FILEREGIONS...destroyDestroy all resources for an Accretion deployment described inDEPLOYMENT_FILE.WarningThis will destroy ALL resources in ALL regions.
Be sure that is what you want to do before running this.accretiondestroyDEPLOYMENT_FILErequestRequest a new layer version build.ImportantThese operations are currently completely asynchronous with no way of tracking a layer build through the CLI.
I plan to add tooling around this later,
but the exact form it will take is still TBD.mattsb42/accretion#27rawRequest a new layer in every region inDEPLOYMENT_FILE.
The Layer must be described in the Accretion format inREQUEST_FILE.{"Name":"layer name","Language":"Language to target","Requirements":{"Type":"accretion","Requirements":[{"Name":"Requirement Name","Details":"Requirement version or other identifying details"}]},"Requirements":{"Type":"requirements.txt","Requirements":"Raw contents of requirements.txt file format"}}NoteThe only supported language at this time ispython.accretionrequestrawDEPLOYMENT_FILEREQUEST_FILErequirementsRequest a new layer namedLAYER_NAMEin every region inDEPLOYMENT_FILE.
The Layer requirements must be defined in the Python requirements.txt format inREQUIREMENTS_FILE.accretionrequestDEPLOYMENT_FILEREQUIREMENTS_FILElistlayersImportantThis command has not yet been implemented.List all Accretion-managed Lambda Layers and their versions in the specified region.accretionlistlayersDEPLOYMENT_FILEREGION_NAMEdescribelayer-versionImportantThis command has not yet been implemented.Describe a Layer version, listing the contents of that Layer.accretiondescribelayer-versionDEPLOYMENT_FILEREGION_NAMELAYER_NAMELAYER_VERSIONcheckImportantThis command has not yet been implemented.Check a “Request File” for correctness.accretioncheckREQUEST_FILEDeployment FileWarningDeployment files MUST NOT be modified by anything other than Accretion tooling.An Accretion deployment file describes the stacks associated with a single Accretion deployment.It is a JSON file with the following structure:{"Deployments":{"AWS_REGION":{"Core":"STACK_NAME","ArtifactBuilder":"STACK_NAME","LayerBuilder":"STACK_NAME"}}}Request FileAn Accretion require file describes the Layer that is being requested.It is a JSON file with the following structure:{"Name":"layer name","Language":"Language to target","Requirements":{"Type":"accretion","Requirements":[{"Name":"Requirement Name","Details":"Requirement version or identifying details"}]},"Requirements":{"Type":"requirements.txt","Requirements":"Raw contents of requirements.txt file format"}}