Skip to main content

Accretion CloudFormation template artifact_builder.

Project description

The Accretion CLI is the primary point for controlling Accretion resources.

The Accretion CLI maintains configuration state in a “Deployment File”.

Usage

init

Initialize the DEPLOYMENT_FILE for deployments to REGIONS.

This does NOT deploy to those regions.

Run accretion update to update and fill all regions in a deployment file.

accretion init DEPLOYMENT_FILE REGIONS...

update

Update deployments in all regions described in DEPLOYMENT_FILE.

This will also initialize any empty deployment regions and complete any partial deployments.

accretion update all DEPLOYMENT_FILE

add regions

Add more REGIONS to an existing deployment description in DEPLOYMENT_FILE.

This does NOT deploy to those regions.

Run accretion update to update and fill all regions in a deployment file.

accretion add regions DEPLOYMENT_FILE REGIONS...

destroy

Destroy all resources for an Accretion deployment described in DEPLOYMENT_FILE.

accretion destroy DEPLOYMENT_FILE

request

Request a new layer version build.

raw

Request a new layer in every region in DEPLOYMENT_FILE. The Layer must be described in the Accretion format in REQUEST_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"
    }
}
accretion request raw DEPLOYMENT_FILE REQUEST_FILE

requirements

Request a new layer named LAYER_NAME in every region in DEPLOYMENT_FILE. The Layer requirements must be defined in the Python requirements.txt format in REQUIREMENTS_FILE.

accretion request DEPLOYMENT_FILE REQUIREMENTS_FILE

list

layers

List all Accretion-managed Lambda Layers and their versions in the specified region.

accretion list layers DEPLOYMENT_FILE REGION_NAME

describe

layer-version

Describe a Layer version, listing the contents of that Layer.

accretion describe layer-version DEPLOYMENT_FILE REGION_NAME LAYER_NAME LAYER_VERSION

check

Check a “Request File” for correctness.

accretion check REQUEST_FILE

Deployment File

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 File

An 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"
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accretion_cli-0.1.0.tar.gz (32.4 kB view hashes)

Uploaded Source

Built Distribution

accretion_cli-0.1.0-py2.py3-none-any.whl (33.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page