For `.get` methods, you always need to provide an ...
# general
w
For
.get
methods, you always need to provide an
id
, and sometimes need to provide additional property values. What is required here is ultimately based on what the semantics of the underlying Terraform AWS provider
Read
method, which is unfortunately not documented robustly. Most of the AWS resources don't require anything beyond the
id
, but some do. In particular,
aws_lambda_function
in Terraform does use the
name
and optionally the
qualifier
to look up the function instead of using the
id
. That error message doesn't look great though - and I suspect we can report a better error message in this case.
I looked into this a little more - and I'm slightly optimistic that we may be able to solve this ourselves without having users worry about it. I've opened https://github.com/pulumi/pulumi-terraform/issues/266 to track what might be a fix for this. At the very least, it looks like it could solve the specific case you ran into, as well as a similar case in https://github.com/pulumi/pulumi-gcp/issues/48.