kubernetes/kops · error
error modifying AAAA records: %w
Error message
error modifying AAAA records: %w
What it means
ModifySubnetAttribute failed while enabling the resource-name AAAA record on launch for a subnet that has an IPv6 CIDR; the wrapped error is the AWS EC2 API response.
Source
Thrown at upup/pkg/fi/cloudup/awstasks/subnet.go:353
} else {
request = &ec2.ModifySubnetAttributeInput{
SubnetId: e.ID,
EnableResourceNameDnsARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},
}
_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)
if err != nil {
return fmt.Errorf("error modifying A records: %w", err)
}
}
if fi.ValueOf(e.IPv6CIDR) != "" {
request = &ec2.ModifySubnetAttributeInput{
SubnetId: e.ID,
EnableResourceNameDnsAAAARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},
}
_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)
if err != nil {
return fmt.Errorf("error modifying AAAA records: %w", err)
}
}
}
return t.AddAWSTags(*e.ID, e.Tags)
}
func subnetSlicesEqualIgnoreOrder(l, r []*Subnet) bool {
var lIDs []string
for _, s := range l {
lIDs = append(lIDs, *s.ID)
}
var rIDs []string
for _, s := range r {
if s.ID == nil {
klog.V(4).Infof("Subnet ID not set; returning not-equal: %v", s)
return false
}View on GitHub (pinned to 4c8573c808)
Solutions
- Check ec2:ModifySubnetAttribute permissions
- Verify the subnet's IPv6 configuration, then retry the apply
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/awstasks/subnet.go:353 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/6d257e41432631e3.
Report an issue: GitHub.