Skip to content

Aws::EC2::RouteTable#create_route raises on creating IPv6 route, after successfull API call. #3202

@oskgu360

Description

@oskgu360

Describe the bug

Creating an IPv6 route on a route table fails internally in client cause it expects a IPv4 CIDR to be provided, but EC2 api expects only the IPv6 argument, so API call is made successfully before raising internal ArgumentError.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Expected is that https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-ec2/lib/aws-sdk-ec2/route_table.rb#L299-L303 would pass the destination_ipv_6_cidr_block to the Route class, which in its turn should be able to handle that argument instead of the IPv4 correspondent (destination_cidr_block).

Current Behavior

Currenty raises on https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-ec2/lib/aws-sdk-ec2/route.rb#L413 due to missing the IPv4 CIDR argument.

Reproduction Steps

Create a VPC, an internet gateway and route table on that VPC. Try to add any IPv6 route to that internet gateway on the routing table via the Aws::EC2::RouteTable#create_route method.

Possible Solution

No response

Additional Information/Context

No response

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

aws-sdk-ec2 (1.506.0)

Environment details (Version of Ruby, OS environment)

Ruby 3.3.7, MacOS 15.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions