는 기본적으로 나는 100 % 확실하지 않다 AWS 데이터 파이프 라인을 사용하여 S3 내 RDS 데이터베이스,AWS Data Pipeline을 사용하여 RDS 데이터베이스를 S3에 덤프 할 수 있습니까? 이 내가 <code>SqlDataNode</code>가 <code>selectQuery</code> 궁금하고있는 시점에서 원하는 단계까지있어 가능한 경우
을 pg_dump
싶은 할 것. 난 당신이 테이블 만이 아니라 pg_dump에와 같이 전체 DB를 덤프 수 있다고 생각
AWSTemplateFormatVersion: "2010-05-15"
Description: RDS to S3 Dump
Parameters:
RDSInstanceID:
Description: "Instance ID of RDS to Dump from"
DatabaseName:
Description: "Name of the Database to Dump"
Type: String
Username:
Description: "Database Username"
Type: String
Password:
Description: "Database password"
Type: String
NoEcho: true
RDSToS3Dump:
Type: "AWS::DataPipeline::Pipeline"
Properties:
Name: "RDSToS3Dump"
Description: "Pipeline to backup RDS data to S3"
Activate: true
ParameterObjects:
-
name: "SourceRDSTable"
type: "SqlDataNode"
Database: !Ref DatabaseName
-
name: !Ref DatabaseName
type: "RdsDatabase"
databaseName: !Ref DatabaseName
username: !Ref Username
password: !Ref Password
rdsInstanceId: !Ref RDSInstanceID
-
name: "S3OutputLocation"
type: "S3DataNode"
filePath: #TODO: S3 Bucket here parameterized? Will actually need to create one.
-
name: "RDStoS3CopyActivity"
type: "CopyActivity"
input: "SourceRDSTable"
output: "S3OutputLocation"
#TODO: do we need a runsOn?