定制 tijsdriven/m2-module-alibabacloud 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tijsdriven/m2-module-alibabacloud

最新稳定版本:0.0.1

Composer 安装命令:

composer require tijsdriven/m2-module-alibabacloud

包简介

Add AlibabaCloud STS token support to Magento

README 文档

README

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

composer require tijsdriven/m2-module-alibabacloud

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.

'alibabacloud' => [
    'region' => 'ALIBABACLOUD_REGION',
    'connection_type' => 'external', // can be 'external' or 'internal' 
    'access_key' => 'ACCESS_KEY',
    'secret_key' => 'SECRET_KEY',
    'arn_role' => 'ARN_ROLE',
    'sts_token_lifetime' => '3600', 
    'session_name' => 'SESSION_NAME',
]

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: external for public endpoint, internal for private endpoint in internal network or VPC
  • access_key: AlibabaCloud user account access key
  • secret_key: AlibabaCloud user account secret
  • arn_role: AlibabaCloud ARN assigned to user
  • sts_token_lifetime: token lifetime in seconds
  • session_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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固