Hey all! I am running some automation in golang th...
# aws
b
Hey all! I am running some automation in golang that involves retrieving AMIs that breaks on certain occasions but not on others. Specifically, the error message I'm getting is
rpc error: code = Unknown desc = invocation of aws:ec2/getAmi:getAmi returned an error: unrecognized data function (Invoke): aws:ec2/getAmi:getAmi
I am thinking the reason why is that there are two versions of
getAMI
as one is deprecated (https://www.pulumi.com/registry/packages/aws/api-docs/getami/ vs https://www.pulumi.com/registry/packages/aws/api-docs/ec2/getami/) I am running this automation on multiple versions of k8s, so is it possible that somehow the wrong implementation of getAMI is being called depending on the version?