hello! i'm seeing an issue where I am unable to ca...
# aws
b
hello! i'm seeing an issue where I am unable to call aws.getAvailabilityZones with a custom aws provider without getting an AWS credentials validation error - i'll post more details into a thread 👇
code being run:
Copy code
const zones = await aws.getAvailabilityZones(null, {
    provider
  });
provider:
Copy code
const provider = return new aws.Provider("provider", {
    assumeRole: {
      roleArn,
      externalId,
    },
    region,
    profile,
  });
error:
Copy code
error: Error: invocation of aws:index/getAvailabilityZones:getAvailabilityZones returned an error: unable to validate AWS credentials. Make sure you have:
    
         • Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
         • Configured your AWS credentials as per <https://pulumi.io/install/aws.html>
         You can also set these via cli using `aws configure`
and for extra credit i've verified that credentials being passed into the provider using the STS CLI AND i've also called the ec2 CLI endpoint to describe availability zones
i'm using these dependencies:
Copy code
"@pulumi/aws": "^5.6.0",
    "@pulumi/awsx": "^0.40.0",
    "@pulumi/pulumi": "^3.24.1",
any help appreciated! 🙏
m
That's probably related to this issue: https://github.com/pulumi/pulumi-aws/issues/2144
@bland-byte-34481 fixed in latest
b
thank you @mysterious-byte-81865!