import EC2 from './ec2';
import RDS from './rds';


export default class Jungle {

  constructor({accessKeyId, secretAccessKey, region} = {}) {
    this.region = region;
    this.accessKeyId = accessKeyId;
    this.secretAccessKey = secretAccessKey;
  }

  get ec2() {
    if (!this._ec2) {
      this._ec2 = new EC2({
        accessKeyId: this.accessKeyId,
        secretAccessKey: this.secretAccessKey,
        region: this.region
      });
    }
    return this._ec2;
  }

  get rds() {
    if (!this._rds) {
      this._rds = new RDS({
        accessKeyId: this.accessKeyId,
        secretAccessKey: this.secretAccessKey,
        region: this.region
      });
    }
    return this._rds;
  }
}

@@ -94,572 +94,271 @@
 tor(
-%7BaccessKeyId, secretAccessKey, region%7D = %7B%7D) %7B%0A    this.region = region;%0A    this.accessKeyId = accessKeyId;%0A    this.secretAccessKey = secretAccessKey;%0A  %7D%0A%0A  get ec2() %7B%0A    if (!this._ec2) %7B%0A      this._ec2 = new EC2(%7B%0A        accessKeyId: this.accessKeyId,%0A        secretAccessKey: this.secretAccessKey,%0A        region: this.region%0A      %7D);%0A    %7D%0A    return this._ec2;%0A  %7D%0A%0A  get rds() %7B%0A    if (!this._rds) %7B%0A      this._rds = new RDS(%7B%0A        accessKeyId: this.accessKeyId,%0A        secretAccessKey: this.secretAccessKey,%0A        region: this.region%0A      %7D
+sdkCommonOpts = %7B%7D) %7B%0A    this.sdkCommonOpts = sdkCommonOpts;%0A  %7D%0A%0A  get ec2() %7B%0A    if (!this._ec2) %7B%0A      this._ec2 = new EC2(this.sdkCommonOpts);%0A    %7D%0A    return this._ec2;%0A  %7D%0A%0A  get rds() %7B%0A    if (!this._rds) %7B%0A      this._rds = new RDS(this.sdkCommonOpts
 );%0A 

Change constructor arguments