Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@serverless/tencent-postgresql
Advanced tools
简体中文 | English
通过 PostgreSQL DB 组件,可以快速方便的创建,配置和管理腾讯云的 PostgreSQL 产品。
通过 npm 全局安装 serverless cli
$ npm install -g serverless
在项目根目录创建 serverless.yml
文件,在其中进行如下配置
$ touch serverless.yml
# serverless.yml
MyPostgreSQL:
component: '@serverless/tencent-postgresql'
inputs:
region: ap-guangzhou
zone: ap-guangzhou-3
dBInstanceName: serverlessDb
dBVersion: 10.4
dBCharset: UTF8
vpcConfig:
vpcId: 123
subnetId: 123
extranetAccess: false
如您的账号未 登录 或 注册 腾讯云,您可以直接通过 微信
扫描命令行中的二维码进行授权登陆和注册。
通过 sls
命令进行部署,并可以添加 --debug
参数查看部署过程中的信息
$ sls --debug
注意:
sls
是serverless
命令的简写。
通过以下命令移除部署的 DB 实例
$ sls remove --debug
当前默认支持 CLI 扫描二维码登录,如您希望配置持久的环境变量/秘钥信息,也可以本地创建 .env
文件
$ touch .env # 腾讯云的配置信息
在 .env
文件中配置腾讯云的 SecretId 和 SecretKey 信息并保存
如果没有腾讯云账号,可以在此 注册新账号。
如果已有腾讯云账号,可以在 API 密钥管理 中获取 SecretId
和SecretKey
.
# .env
TENCENT_SECRET_ID=123
TENCENT_SECRET_KEY=123
可以在 Serverless Components repo 中查询更多组件的信息。
FAQs
Tencent Cloud PostgresSQL Component
We found that @serverless/tencent-postgresql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.