-
Notifications
You must be signed in to change notification settings - Fork 853
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
EC2 / modifySecurityGroupRules -> The request must contain the parameter groupId #5437
Comments
Can you generate the verbose wirelogs? Transferring to the Java SDK v2 repo. |
Sure - here is the wire-logging. Looks like the request-body is missing all the information.
|
I found the problem. I wasn't using the provided request-builder (initialized my own), which is wrong. The correct code is: // make the modify call
ec2Client.modifySecurityGroupRules { req ->
req
.groupId(securityGroup.groupId())
.securityGroupRules(SecurityGroupRuleUpdate.builder()
.securityGroupRuleId(toBeEdited.securityGroupRuleId())
.securityGroupRule(SecurityGroupRuleRequest.builder()
.cidrIpv4("1.2.3.4/32")
.ipProtocol("tcp")
.fromPort(22)
.toPort(22)
.build())
.build())
.build()
} Now it works. Thanks for the hint. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Upcoming End-of-Support
Describe the bug
I try to modify an existing ingress-rule in an existing security-group, but keep getting the error:
The request must contain the parameter groupId
Expected Behavior
I expect the rule to be update.
Current Behavior
The following exception is thrown:
Reproduction Steps
Example in kotlin:
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.26.25
JDK version used
17
Operating System and version
Mac
The text was updated successfully, but these errors were encountered: