lib/plugins/aws/configCredentials/awsConfigCredentials.js/AwsConfigCredentials/updateProfile
class AwsConfigCredentials:  updateProfile(profileBoundries) {
    let currentLine = profileBoundries.start;
    let endLine = profileBoundries.end;

    // Remove existing 'aws_access_key_id' and 'aws_secret_access_key' properties
    while (currentLine < endLine) {
      const line = this.credentials[currentLine];
      if (
        line.indexOf('aws_access_key_id') > -1 ||
        line.indexOf('aws_secret_access_key') > -1
      ) {
        this.credentials.splice(currentLine, 1);
        endLine--;
      } else {
        currentLine++;
      }
    }

    // Add the key and the secret to the beginning of the section
    const keyLine = `aws_access_key_id = ${this.options.key}`;
    const secretLine = `aws_secret_access_key = ${this.options.secret}`;

    this.credentials.splice(profileBoundries.start + 1, 0, secretLine);
    this.credentials.splice(profileBoundries.start + 1, 0, keyLine);
  }