Hi all , i want to update aws iam policy through p...
# general
v
Hi all , i want to update aws iam policy through pulumi if it’s already present in aws how can i do it??? i tried using pulumi ai but didn’t work .
w
once you have written the code for aws iam policies, you can import existing policies into your stack and it will then manage that resource
v
No , my requirement is if policy already exists in aws , i want to make changes to policy document by getting the existing policy and deploy changes through pulumi
d
You can't do this with pulumi; however what you can do is create a new policy, then attach that policy to the roles needed either with pulumi or via the console
That way the role is made up of multiple policies; one which is managed with IaC, and one which you can directly modify
v
Thanks @dry-keyboard-94795 for your help
s
interesting. @dry-keyboard-94795 @victorious-air-19043 boto3 provides
create_policy_version
there is no equivalent in pulumi ?