bitter-island-28909
05/12/2021, 3:46 PMdefaultTags
property on an aws.Provider
, like so:
new aws.Provider(`my-provider`, {
...
defaultTags: {
"foo": "bar"
}
});
I’m getting a type error on defaultTags
, stating that Object literal may only specify known properties, and '"foo"' does not exist in type 'Input<ProviderDefaultTags>'.
A type option for Input<T>
is T
, and the signature of ProviderDefaultTags
is {[key: string]: string}
So using an arbitrary string such as “foo”:“bar” should work.
What am I missing?rich-farmer-40546
05/12/2021, 3:46 PMbored-oyster-3147
05/12/2021, 3:47 PMbitter-island-28909
05/12/2021, 3:49 PMnew 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>'.
rich-farmer-40546
05/12/2021, 3:54 PMbored-oyster-3147
05/12/2021, 3:55 PMdefaultTags: {
tags: {
foo: "bar"
},
}
bitter-island-28909
05/12/2021, 4:01 PM