AWS ec2 documentation change
Summary
Added SAP ABAP SDK code example for AuthorizeSecurityGroupIngress showing SSH port 22 configuration
Security assessment
The change adds documentation about configuring security group ingress rules (specifically SSH access), which is a security-related feature. However, there is no evidence of addressing a specific vulnerability or security incident.
Diff
diff --git a/ec2/latest/devguide/example_ec2_AuthorizeSecurityGroupIngress_section.md b/ec2/latest/devguide/example_ec2_AuthorizeSecurityGroupIngress_section.md index cf8e27751..2c386f881 100644 --- a//ec2/latest/devguide/example_ec2_AuthorizeSecurityGroupIngress_section.md +++ b//ec2/latest/devguide/example_ec2_AuthorizeSecurityGroupIngress_section.md @@ -1106,0 +1107,41 @@ There's more on GitHub. Find the complete example and learn how to set up and ru +SAP ABAP + + +**SDK for SAP ABAP** + + +###### Note + +There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/ec2#code-examples). + + + " Create IP permissions for SSH access (port 22) + " iv_cidr_ip = '192.0.2.0/24' + DATA lt_ip_permissions TYPE /aws1/cl_ec2ippermission=>tt_ippermissionlist. + DATA(lo_ip_permission) = NEW /aws1/cl_ec2ippermission( + iv_ipprotocol = 'tcp' + iv_fromport = 22 + iv_toport = 22 + it_ipranges = VALUE /aws1/cl_ec2iprange=>tt_iprangelist( + ( NEW /aws1/cl_ec2iprange( iv_cidrip = iv_cidr_ip ) ) + ) + ). + APPEND lo_ip_permission TO lt_ip_permissions. + + TRY. + oo_result = lo_ec2->authsecuritygroupingress( " oo_result is returned for testing purposes. " + iv_groupid = iv_group_id + it_ippermissions = lt_ip_permissions ). + MESSAGE 'Authorized ingress rule for security group.' TYPE 'I'. + CATCH /aws1/cx_rt_service_generic INTO DATA(lo_exception). + DATA(lv_error) = |"{ lo_exception->av_err_code }" - { lo_exception->av_err_msg }|. + MESSAGE lv_error TYPE 'E'. + ENDTRY. + + + + * For API details, see [AuthorizeSecurityGroupIngress](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +