<p>When deploying Spinnaker to EKS via <code>hal deploy apply</code>, Spinnaker Clouddriver pod goes to <code>CrashLoopBackOff</code> with the following error,</p>

<blockquote>
  <p>Factory method 'awsProvider' threw exception; nested exception is java.lang.NullPointerException: Cannot get property 'name' on null object</p>
</blockquote>

<p>My Halyard config is like follows, </p>

<pre><code>currentDeployment: default
deploymentConfigurations:
- name: default
  version: 1.17.6
  providers:
    appengine:
      enabled: false
      accounts: []
    aws:
      enabled: true
      accounts:
      - name: my-account
        requiredGroupMembership: []
        providerVersion: V1
        permissions: {}
        accountId: '010101010101' # my account id here
        regions: []
        assumeRole: Spinnaker-Clouddriver-Role
        lifecycleHooks: []
      primaryAccount: my-account
      bakeryDefaults:
        baseImages: []
      defaultKeyPairTemplate: '{{name}}-keypair'
      defaultRegions:
      - name: us-east-1
      defaults:
        iamRole: BaseIAMRole
</code></pre>

<p>My <code>Spinnaker-Clouddriver-Role</code> IAM role has full permissions at the moment. How can I get this resolved?</p>

<hr>

<p>This is the full log <a href="https://gist.github.com/agentmilindu/cfbebffe46b93458df8158f9355e4041" rel="nofollow noreferrer">https://gist.github.com/agentmilindu/cfbebffe46b93458df8158f9355e4041</a></p>

Milindu Sanoj Kumarage
<p><em>This is more or less a guess, since you didn't include one iota of version information about your spinnaker setup, but...</em></p>

<p>According to <a href="https://gist.github.com/agentmilindu/cfbebffe46b93458df8158f9355e4041#file-spinnaker-error-log-L128" rel="nofollow noreferrer"><code>at com.netflix.spinnaker.clouddriver.aws.provider.agent.ReservationReportCachingAgent$_determineVpcOnlyAccounts_closure2.doCall(ReservationReportCachingAgent.groovy:117) ~[clouddriver-aws.jar:na]</code></a> in your gist, which corresponds to <a href="https://github.com/spinnaker/clouddriver/blob/version-6.5.2/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/provider/agent/ReservationReportCachingAgent.groovy#L117" rel="nofollow noreferrer"><code>getAmazonEC2(credentials, credentials.regions[0].name)</code> in version 6.5.2</a></p>

<p>it appears they do not tolerate having an empty <code>regions: []</code> like you do; thus:</p>

<pre><code>aws:
  enabled: true
  accounts:
  - name: my-account
    # ... snip ...
    # vvv-- update this list
    regions:
    - name: us-east-1
</code></pre>
