0.1.0 • Published 1 year ago

@aligent/serverless-magento v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Serverless Magento

A Serverless framework plugin for handling the registration of a microservices with the magento2-microservice-config module.

Why?

Microservices registered with the magento2-microservice-config module will have a Magento authentication token made available via AWS SSM. This removes the need to manually create Magento integrations / access tokens for each service. The registration also provides the opportunity to create an "admin" interface within the Magento admin interface which can be used for managing the serverless application.

Admin Interface

The admin interface is provided as a link to an externally hosted web application which is rendered in the Magento admin interface as an iframe. Authorisation context will be injected into the iframe when loaded.

Deployment

The Serverless plugin will initially register with the magento2-microservice-config REST API. At this state the service is "registered" but not "active". A service does not become "active" until an admin user approves it.

Serverless configuration

The plugin is configured within the serverless.yaml by providing configuration values.

Example

custom:
  serviceRegistration:
    magentoUrl: https://magento.domain.name
    magentoApiToken: ${ssm:/magento/api/access-token-for-registration}
    displayName: Service name that appears in Magento Admin
    permissions:
      - Magento_Backend::all

Variables

VariableTypeUsage
magentoUrlstringThe base URL - including scheme - of the Magento instance.
magentoApiTokenstringThe api token for registering with Magento instance.
displayNamestringThe name of the application/service.
descriptionstringShort description about the application/service. If not provided, resources/Description will be used
permissionstringArray of Magento permission. Webapp does not need this.
domainOutputKeyPrefixstringThe prefix of webapp domain output key. The default value is landingDomain.
errorOnFailurebooleanWhether the plugin should throw an error when a call to the Magento instance fails. The default value is true
0.1.0

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago