-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
policyArns in RoleWithPolicyArgs should be input #1197
Comments
You're absolutely right @dhilgarth. Feel free to submit a PR if we don't get to it first! |
Previously the policyArns attribute in RoleWithPolicyArgs only accepted plain types as inputs. This forced users to use workarounds like using `apply` in order to configure policies created in the same pulumi program. Fixes #1197
Changing I’m thinking about adding a new parameter (e.g. @t0yv0 @corymhall what do you think? |
Given that adding a new parameter and deprecating the old one wouldn't really improve the usability here, we'd rather make a breaking change and are planning this for the next major version upgrade. |
What happened?
Right now, the
policyArns
property ofRoleWithPolicyArgs
is a simple string: https://github.com/pulumi/pulumi-awsx/blob/master/sdk/nodejs/types/input.ts#L309This forces us to create the service within
apply
, if we want to use a policy that we also create in the same program.Example
What I would expect to work:
What I have to do instead:
Output of
pulumi about
CLI
Version 3.99.0
Go Version go1.21.5
Go Compiler gc
Plugins
NAME VERSION
aws 6.18.0
awsx 2.4.0
docker 4.5.0
docker 3.6.1
nodejs unknown
Host
OS Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in nodejs: executable='C:\Program Files\nodejs\node.exe' version='v20.9.0'
Backend
Name laptop-dh
URL file://~
User AzureAD\DanielHilgarth
Organizations
Token type personal
Pulumi locates its logs in C:\Users\DANIEL~1\AppData\Local\Temp by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: