-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using service_registries with py in ecs.Service #77
Comments
Hi @caffeinate. I'm sorry you're hitting that. It's definitely confusing. The correct type for Could you provide the line number for the assertion error? If that's coming from Pulumi code, we would like to fix the error. |
Hey, sorry about that - it looks like in this case we need to improve our retrieval augmented generation for Pulumi AI. I'll move this to the AI repo, though I think we won't have an immediate fix for this. @iwahbe is correct, the right code should be |
Just to confirm- If I use a list as per the example I get the assertion error which originates from-
If I use a single error: 1 error occurred: The ARN is from this-
Which is pretty close to the example. Thanks for looking into this. |
@caffeinate We've just shipped some improvements here to the prompting for list types. Due to the search issues mentioned before, though, I'm not confident it would result in better code generation here. We're tracking an issue for improving resource retrieval and grounding results. |
Thanks @AaronFriel , I can confirm that this hasn't yet solved it for me. |
using
ecs.Service(..)
This arg-
service_registries=[ecs.ServiceServiceRegistriesArgs(registry_arn=http_namespace.arn)],
causes-
AssertionError: Unexpected type. Expected 'list' got '<class 'pulumi_aws.ecs._inputs.ServiceServiceRegistriesArgs'>'
The service_registries are being supplied as a list.
Expected behavior
This code was used as a starting point-
https://www.pulumi.com/ai/answers/1eTQsUEuD7z6y4iEJWxa3d/implementing-service-discovery-for-ai-workloads-on-aws-ecs
I've reduced the original plan to used exactly the same servicediscovery.HttpNamespace as in the example code.
Current behavior
Throws an exception.
Steps to reproduce
I'm using Pulumi 3.109.0 and pulumi_aws 6.25.0
pulumi up
Context (Environment)
Make the IP addresses (ideally using
PrivateDnsNamespace
available to another ECS service).Affected feature
The text was updated successfully, but these errors were encountered: