{"record":{"id":"6d257e41432631e3","repo":"kubernetes/kops","slug":"error-modifying-aaaa-records-w","errorCode":null,"errorMessage":"error modifying AAAA records: %w","messagePattern":"error modifying AAAA records: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/subnet.go","lineNumber":353,"sourceCode":"\t\t} else {\n\t\t\trequest = &ec2.ModifySubnetAttributeInput{\n\t\t\t\tSubnetId:                             e.ID,\n\t\t\t\tEnableResourceNameDnsARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},\n\t\t\t}\n\t\t\t_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error modifying A records: %w\", err)\n\t\t\t}\n\t\t}\n\n\t\tif fi.ValueOf(e.IPv6CIDR) != \"\" {\n\t\t\trequest = &ec2.ModifySubnetAttributeInput{\n\t\t\t\tSubnetId:                                e.ID,\n\t\t\t\tEnableResourceNameDnsAAAARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},\n\t\t\t}\n\t\t\t_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error modifying AAAA records: %w\", err)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn t.AddAWSTags(*e.ID, e.Tags)\n}\n\nfunc subnetSlicesEqualIgnoreOrder(l, r []*Subnet) bool {\n\tvar lIDs []string\n\tfor _, s := range l {\n\t\tlIDs = append(lIDs, *s.ID)\n\t}\n\tvar rIDs []string\n\tfor _, s := range r {\n\t\tif s.ID == nil {\n\t\t\tklog.V(4).Infof(\"Subnet ID not set; returning not-equal: %v\", s)\n\t\t\treturn false\n\t\t}","sourceCodeStart":335,"sourceCodeEnd":371,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/subnet.go#L335-L371","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/subnet.go:353 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check ec2:ModifySubnetAttribute permissions","Verify the subnet's IPv6 configuration, then retry the apply"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}