最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - How to add security groups or how to make an RDS public accessible when using SST? - Stack Overflow

programmeradmin8浏览0评论

I have set up an SST (Serverless Stack v3) application with an AWS RDS Postgres instance. The database should be publicly accessible so external services can connect to it.

 async run() {
    const vpc = new sst.aws.Vpc('VPC1', { bastion: true });
    const cluster = new sst.aws.Cluster('ApiCluster', { vpc });

    const rds = new sst.aws.Postgres('MyDatabase', {
      vpc,
    });
  }
发布评论

评论列表(0)

  1. 暂无评论