This message was deleted.
# general
s
This message was deleted.
r
Remove that quotes on “foo”
b
^, it's a JS object declaration
b
Copy code
new aws.Provider(`my-provider`, {
    ...
    defaultTags: {
        foo: "bar"
    }
});
No, that’s not it: this returns a similar error:
Object literal may only specify known properties, and 'foo' does not exist in type 'Input<ProviderDefaultTags>'.
r
b
oh it wants the tags property maybe? so:
Copy code
defaultTags: {
   tags: {
       foo: "bar"
   },
}
👏 1
b
That was it. Thank you! This makes sense when reading the source code for the Provider DefaultTags type… it wasn’t clear that there was an additional layer of structure from the error message or the in-browser type hints.
👍 2