title: AWS retrieve parameter store value , CredentialsError: Missing credentials in config
body: <p>On Angular/Typescript trying to retrieve the value from Parameter Store on AWS based on its name.</p>
  <p>Error message:</p>
  <pre><code> ERROR Error: Uncaught (in promise): CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
      CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
  </code></pre>
  <p>The code inplemented:</p>
  <pre><code>import { SSM } from &quot;aws-sdk&quot;;
  
  
  const getParameterWorker = async (name:string, decrypt:boolean) : Promise&lt;string&gt; =&gt; {
    const ssm = new SSM();
    const result = await ssm
    .getParameter({ Name: name, WithDecryption: decrypt })
    .promise();
    return result.Parameter.Value;
  }
  
  export const getParameter = async (name:string) : Promise&lt;string&gt; =&gt; {
     return getParameterWorker(name,false);
  }
  
  async ngOnInit() {
    const records = await getParameter(&quot;parameter_path_name&quot;);
     .
     .
     .
  }
  </code></pre>
  <p>However, the AWS_SDK_LOAD_CONFIG=1 has been set already, what other reasons could cause this issue?</p>