Skip to content

Lambda: Updater #7

@veselosky

Description

@veselosky

Because AWS S3 service does not enable CORS, the browser S3 client cannot perform certain functions unless it is served from an S3 domain name. I do not wish to introduce a domain name constraint on the Blue Bucket system. So, much of the work of installing/updating the system needs to be implemented as a Lambda function that can be invoked from the browser.

The function has two modes: update mode and query mode.

  • Implement the query mode of the Updater:
  • Determine the target version, either a specific requested version, or "latest"
  • Retrieve the metadata file for the target version from the distribution point
  • Scan all existing S3 buckets looking for Blue Bucket metadata files
  • Diff the target from the existing files to build a list of components needing update. (If no existing buckets, then all non-bucket components need update.)
  • Implement update mode of the Updater:
  • Install all the Lambda functions requiring update.
  • If S3 components require updating (themes, admin files, etc.), update each bucket in turn.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions