diff --git a/library/cloud/rds b/library/cloud/rds index 77746026d3..cf937ef57a 100644 --- a/library/cloud/rds +++ b/library/cloud/rds @@ -438,7 +438,10 @@ def main(): params["iops"] = iops if security_groups: - params["security_groups"] = security_groups.split(',') + if subnet: + params["vpc_security_groups"] = security_groups.split(',') + else: + params["security_groups"] = security_groups.split(',') try: if command == 'create':