This message was deleted.
# general
s
This message was deleted.
b
sorry I appear to have missed this, what's been deprecated?
b
@high-morning-17948 ☝️
h
I changed the variable from
ManagedPolicies
to
ManagedPolicy
and it removed the deprecated message. I updated to the following versions:
Copy code
{
  "@pulumi/aws": "^3.10.1",
  "@pulumi/awsx": "^0.22.0",
  "@pulumi/pulumi": "^2.12.1",
}
And I now get the deprecated warning from the
@pulumi/aws/iam/managedPolicies.d.ts
module
b
@red-match-15116 can you help here - this is the new enums work
r
Ah yes, I see what’s happening. You are using the correct form @high-morning-17948, I need to fix up those deprecation messages. Is there an open issue for this?
The contents of that file are surprising. The deprecation messages shouldn’t be there but the contents of your file don’t match mine. Note the difference between
export declare module ManagedPolicies
vs
export declare module ManagedPolicy
h
@red-match-15116 I haven't created an Issue. Do I need to create one?
r
@high-morning-17948 that’s alright, I’ve gone ahead and made the fix. I am still curious about the contents of your file though. I am pulling down the same version and have the module named differently. Essentially, even with the deprecation messages as they are your usage is correct and should not be showing a deprecation. It appears the contents of your
managedPolicies.d.ts
file are incorrect.
h
@red-match-15116 let me clean my node_modules and install to make sure is not a cache issue.
🙏 1
Looks like it was a caching issue. Clearing the cache and reinstalling everything fixed the issue.
r
🙌 awesome thanks for following up on this @high-morning-17948
l
Is there a cost to having more of those constants? I've just learned about them, and I see that there's one managed policy that I use that isn't in the list. I could submit an issue+PR for it, it would only take 5 minutes...
(It's arnawsiam:awspolicy/AmazonSSMDirectoryServiceAccess)
b
@little-cartoon-10569 please submit a PR for any you see that are missing - they sit in provider/resources.go These are / will be used to autogenerate the enums for all the languages we support
👍 1
l
Yep, there are 9 "AmazonSSM..." managed policies, but only 5 in that file. I'll have a go at adding the other 4.
b
👍
ping me if you need help 🙂