Thursday 25 January 2018

AWS - Create Aurora Cluster using Ruby SDK

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

2 comments:

  1. Slots at Casinos - BCSJON.net
    There are lots of slot machines at 장원도메인 the casinos in the USA, but 검증 사이트 you can also 바카라분석법 find some mgm공식사이트 of the other great gambling sites marathon bet on the web.

    ReplyDelete