(cli): cdk import requires SetIdentifier for AWS::Route53::RecordSet and skips import if omitted
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws, typescript
Rechercherichtung
Start with the linked reproduction and the cdk import flow for AWS::Route53::RecordSet, focusing on the SetIdentifier prompt. Verify behavior with a standard record that leaves SetIdentifier blank. Done means the prompt no longer skips the resource and change set creation succeeds without an arbitrary SetIdentifier.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
When attempting to import an existing AWS::Route53::RecordSet (e.g., A record or CNAME record) using cdk import, the interactive CLI prompt requires the SetIdentifier attribute to be specified.
Because SetIdentifier only exists for advanced routing policies and is not applicable to standard routing, it is an optional attribute. Despite this, leaving SetIdentifier empty during the prompt causes CDK to skip importing the resource entirely.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
SetIdentifier should be treated as optional. Leaving SetIdentifier blank should still allow change set creation (similar to the way Cloudformation imports via AWS Console work).
Current Behavior
SetIdentifier is non optional. If omitted, the resource import is skipped.
This is output from running cdk import and accepting all default values. (Some parts of the output are redacted)
👾 cdk:import | cdk import
start: Building aws-cdk-recreate-dev Template
success: Built aws-cdk-recreate-dev Template
start: Publishing aws-cdk-recreate-dev Template (******)
success: Published aws-cdk-recreate-dev Template ((******)
aws-cdk-recreate-dev/ImportedARecord/Resource (AWS::Route53::RecordSet): enter Name (******)
aws-cdk-recreate-dev/ImportedARecord/Resource (AWS::Route53::RecordSet): enter HostedZoneId (******)
aws-cdk-recreate-dev/ImportedARecord/Resource (AWS::Route53::RecordSet): enter Type (A)
aws-cdk-recreate-dev/ImportedARecord/Resource (AWS::Route53::RecordSet): enter SetIdentifier (empty to skip)
Skipping import of aws-cdk-recreate-dev/ImportedARecord/Resource
No resources selected for import.
If an arbitrary value is passed for SetIdentifier, change set creation fails since there is no matching Route 53 record with that SetIdentifier.
Reproduction Steps
https://github.com/ykageyama-mondo/aws-cdk-cli-import-issue-recreate
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1143.0 (build 9c6bd0e)
Framework Version
No response
Node.js Version
v24.11.1
OS
EndeavourOS x86_64
Language
TypeScript
Language Version
6.0.3
Other information
No response
- Vorherrschende Sprache
- TypeScript
- Sterne
- 110
- Forks
- 138
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 55
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aws/aws-cdk-cli
-
aws-cdk bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aws/aws-cdk-cli#2179 ·
Maintainer antworten meist innerhalb von 1 Tag
-
(cli): deploy waits forever when an AWS API call gets no response, because requestTimeout only logs a warningEvtl. vergeben @abhiramshaji-cyber hat das vor 27 Tagen übernommen. Offenaws-cdk bug p2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aws/aws-cdk-cli#2097 ·
Maintainer antworten meist innerhalb von 1 Tag
-
(bootstrap) FilePublishingRoleDefaultPolicy permission incorrect when FileAssetsBucketKmsKeyId is an ARN valueEvtl. vergeben @lemon0333 hat das vor 95 Tagen übernommen. Offenbug p2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
aws/aws-cdk-cli#921 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
(garbage-collection): cdk gc takes hours on a large bootstrap bucketEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
aws/aws-cdk-cli#2165 ·
Maintainer antworten meist innerhalb von 1 Tag
-
(cli): cdk flags --set always reports no template differences before applying flagsEvtl. vergeben @go-to-k hat das vor 10 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
aws/aws-cdk-cli#2153 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aws/aws-cdk-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
siyuan-note/siyuan#21692 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
GetStream/stream-chat-react#3467 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
resend/resend-node#1206 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
cloudflare/cloudflare-typescript#2821 ·