Aurora PostgreSQL: Database Object creations using AWS CLI/SAM CLI/Cloud formation

0

We looking way to deploy the Database objects on the PostgreSQL Database without using the external tool like pgadmin4.

I know two commonly used method to deploy the database objects

  1. Connect to PostgreSQL cluster using third part tool and create the objects
  2. Lambda which execute the sql qurty on PostgreSQL Database

I'm wondering if there a way we can create objects via CLI or other way so we don't need to enable the Public Access for Database Cluster or Expose Port 5432 over the Internet.

1개 답변
0

As you say, you can use a Lambda to connect to the DB and execute SQL. If it's a VPC Lambda then you don't need your DB to be public or expose a port over the Internet.

You can integrate the Lambda tightly with CloudFormation as a Custom Resource or Resource Type.

For Custom Resources implemented in Python Lambdas, crhelper makes it really easy.

전문가
답변함 일 년 전
  • Hi,

    Thanks for your response.

    I'm looking options other then lambda as we do have very large functions, tables etc. which will be very difficult to manage in the code file.

    AWS document suggest we do have such API on earlier Serverless 1 Instance Type but this only support older version of PostgreSQL.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠