lib/rds/right_rds_interface.rb
# Create a database security group so that ingress to an RDS Instance can be controlled.
# A new security group cannot have the same name as an existing group.
#
# Options: :vpc_id
#
#  ds.create_db_security_group('kd3', 'kd') #=>
#    {:ec2_security_groups=>[],
#     :description=>"kd",
#     :ip_ranges=>[],
#     :name=>"kd3",
#     :owner_id=>"82...25"}
#
Create a database security group so that ingress to an RDS Instance can be controlled.
A new security group cannot have the same name as an existing group.




Create a database security group so that ingress to an RDS Instance can be controlled . A new security group cannot have the same name as an existing group .
def create_db_security_group(db_security_group_name, db_security_group_description, params={})
      request_hash = { 'DBSecurityGroupName'        => db_security_group_name,
                       'DBSecurityGroupDescription' => db_security_group_description }
      request_hash['EC2VpcId'] = params[:vpc_id] unless params[:vpc_id].right_blank?
      link = generate_request('CreateDBSecurityGroup', request_hash)
      request_info(link, DescribeDbSecurityGroupsParser.new(:logger => @logger))[:db_security_groups].first
    end
def create_db_security_group ( db_security_group_name , db_security_group_description , params = { } ) request_hash = { 'DBSecurityGroupName' => db_security_group_name , 'DBSecurityGroupDescription' => db_security_group_description } request_hash [ 'EC2VpcId' ] = params [ :vpc_id ] unless params [ :vpc_id ] . right_blank? link = generate_request ( 'CreateDBSecurityGroup' , request_hash ) request_info ( link , DescribeDbSecurityGroupsParser . new ( :logger => @logger ) ) [ :db_security_groups ] . first end
Create a database security group so that ingress to an RDS Instance can be controlled.
Create a database security group so that ingress to an RDS Instance can be controlled .
db_security_group_name
<not_specific>
db_security_group_description
<not_specific>
params
<not_specific>