Below is the script which can used to create Aurora Cluster using Ruby SDK
ec2-user@ip-172-31-46-131 .aws]$ cat create.rb
require 'aws-sdk-rds' # v2: require 'aws-sdk'
rds = Aws::RDS::Client.new(region: 'us-east-1')
dbcluster = rds.create_db_cluster({
db_cluster_identifier: "apg-cluster3",
vpc_security_group_ids: ["sg-52630c23"],
db_subnet_group_name: "newsubnetgroup",
engine: "aurora-postgresql",
master_username: "master",
master_user_password: "password",
})
Below is the command which is used to run the ruby script.
[ec2-user@ip-172-31-46-131 .aws]$ ruby reate.rb
ec2-user@ip-172-31-46-131 .aws]$ cat create.rb
require 'aws-sdk-rds' # v2: require 'aws-sdk'
rds = Aws::RDS::Client.new(region: 'us-east-1')
dbcluster = rds.create_db_cluster({
db_cluster_identifier: "apg-cluster3",
vpc_security_group_ids: ["sg-52630c23"],
db_subnet_group_name: "newsubnetgroup",
engine: "aurora-postgresql",
master_username: "master",
master_user_password: "password",
})
Below is the command which is used to run the ruby script.
[ec2-user@ip-172-31-46-131 .aws]$ ruby reate.rb