Download the PHP package tijsdriven/m2-module-alibabacloud without Composer
On this page you can find all versions of the php package tijsdriven/m2-module-alibabacloud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tijsdriven/m2-module-alibabacloud
More information about tijsdriven/m2-module-alibabacloud
Files in tijsdriven/m2-module-alibabacloud
Package m2-module-alibabacloud
Short Description Add AlibabaCloud STS token support to Magento
License MIT
Informations about the package m2-module-alibabacloud
Summary
Base module for AlibabaCloud support in Magento 2. This module adds basic scaffolding for configuring AlibabaCloud account information and it adds a mechanism to get and store STS tokens that can be used when consuming different AlibabaCloud service APIs.
Installation & Configuration
Install using composer
Configuration
Add the following config to app/code/env.php. Make sure to set up AlibabaCloud RAM user and proper permissions
and access according to AlibabaCloud documentation. The STS token can then be used to connect to different services,
for example OSS. Make sure your services run in the same AlibabaCloud region.
Or use the CLI setup:config:set command to configure module. Config options are:
--alibabacloud-region--alibabacloud-connection-type--alibabacloud-access-key--alibabacloud-secret-key--alibabacloud-arn--alibabacloud-token-lifetime--alibabacloud-session-name
Notes
region: AlibabaCloud Region ID (for example:eu-central-1)connection_type:externalfor public endpoint,internalfor private endpoint in internal network or VPCaccess_key: AlibabaCloud user account access keysecret_key: AlibabaCloud user account secretarn_role: AlibabaCloud ARN assigned to usersts_token_lifetime: token lifetime in secondssession_name: unique session name used for identification
Usage
Module handles process of requesting and refreshing token fully automatically. The token is stored in the Redis cache
AlibabaCloud Resources
All versions of m2-module-alibabacloud with dependencies
php Version >=8.1
tijsdriven/m2-module-base Version *
alibabacloud/sts-20150401 Version ^1.1