Hello, I try to deploy an ECR on my <LocalStack>: ...
# aws
c
Hello, I try to deploy an ECR on my LocalStack:
Copy code
const repo = new awsx.ecr.Repository("my-ecr-repo");
but I got this message from Pulumi:
Copy code
Diagnostics:
  pulumi:providers:aws (default_6_32_0):
    error: pulumi:providers:aws resource 'default_6_32_0' has a problem: `aws:endpoints` is not a valid configuration key for the aws provider. If the referenced key is not intended for the provider, please choose a different namespace from `aws:`.
Any ideas of the problem ?
l
It reads to me like you have a
Pulumi.<stack>.yaml
with something like this in:
Copy code
config:
  aws:endpoints: ...
And
aws:endpoints
is not an option supported by the AWS provider (because you haven't specified one explicitly, a "default provider" has been made for you using the configuration in
Pulumi.<stack>.yaml
, hence the
default_6_32_0
output).
I'm not sure what you are trying to configure, but it should be the case that https://www.pulumi.com/registry/packages/aws/installation-configuration/#configuration-options has all the valid options for the AWS provider (hopefully).
e
We have some users running into this but on a different version. Are you using pulumi-local or configuring endpoints manually? What's your value for endpoints? Appreciate if you could add that info to the tracker as we've just been looking at this issue.
Copy code
pulumi-local  1.2.1
I have some updates on https://github.com/pulumi/pulumi-awsx/issues/1191 I believe I've isolated a problem enough, stay tuned for a new release
c
Copy code
❯ pulumilocal version
v3.116.1
and my Pulumi.lsdev.yaml:
Copy code
config:
  aws:accessKey: test
  aws:endpoints:
    - accessanalyzer: <http://localhost:4566>
    - account: <http://localhost:4566>
    - acm: <http://localhost:4566>
    - acmpca: <http://localhost:4566>
....
    - dynamodb: <http://localhost:4566>
    - ec2: <http://localhost:4566>
    - ecr: <http://localhost:4566>
    - ecrpublic: <http://localhost:4566>
    - ecs: <http://localhost:4566>
    - efs: <http://localhost:4566>
...
Copy code
❯ pip3 show pulumi-local
Name: pulumi-local
Version: 1.2.1
e
Thank you! I think we found the issue, I'll post here once the fix is released