EC2: ModifySecurityGroupRules, InvalidGroupId.Malformed: Invalid id: "<aws-account-id>/<sg-id>" #4776
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
kind/bug
Some behavior is incorrect or out of spec
Describe what happened
I'm able to create this security group rule with cross-account security group reference(under the context of VPC Peering, here, root account sg needs to add an ingress rule to reference a member account's sg_id by
<aws-account-id>/<sg-id>
):But having this unexpected error when update this rule to add a description:
Error:
I spent a little bit time to trace down to this issue, root cause might be an AWS API issue:
AuthorizeSecurityGroupIngress -> IpPermission -> UserIdGroupPair allows ingress rule creation to reference cross-account security group id. However, ModifySecurityGroupRules doesn't seem to support this reference???
I also thought about work around using
delete_before_replace
, the idea is to force theupdate
action to delete the rule first and then recreate in order to update, but I got the same error.Is there any work-around?
Sample program
Log output
No response
Affected Resource(s)
No response
Output of
pulumi about
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: