Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@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
The npm package @serverless/tencent-postgresql receives a total of 4 weekly downloads. As such, @serverless/tencent-postgresql popularity was classified as not popular.
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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.