(cdk): can't use hotswap when Custom::AWS is present in template

Đang mở
#1,456 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, typescript
Lĩnh vực
cli, cloud, infrastructure

Hướng nghiên cứu

Bắt đầu với đường dẫn deployment --hotswap dùng để phân giải template CloudFormation, sử dụng trường hợp tái hiện đã được báo cáo: một stack có AwsCustomResource và một hàm Lambda có mã thay đổi. Xác minh hành vi khi Custom::AWS hiện diện nhưng không thay đổi, đồng thời xem xét kết quả mong đợi của issue: cho phép bỏ qua kiểm tra hotswap hoặc tiếp tục một cách an toàn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

effort/medium feature-request p2
Describe the bug

Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'Custom::AWS' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose.

The template i have does contain a Custom::AWS resource but cdk diff does not detect any changes to it.

[~] AWS::CloudFormation::Stack a.NestedStack/a.NestedStackResource aNaNREEA7D805
 └─ [~] TemplateURL
     └─ [~] .Fn::Join:
         └─ @@ -5,6 +5,6 @@
            [ ]     {
            [ ]       "Ref": "AWS::URLSuffix"
            [ ]     },
            [-]     "/cdk-hnb659fds-assets-<account>-<region>/<hash>.json"
            [+]     "/cdk-hnb659fds-assets-<account>-<region>/<hash>.json"
            [ ]   ]
            [ ] ]

Stack stack-bNbNRE1B71636-1XZCJ7DPIISJG
There were no differences
Stack stack-aNaNREEA7D805-VZ5MPHGEVZF3
Resources
[~] AWS::Lambda::Function a/fn fn588520B7
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-]<hash>.zip
 │       └─ [+] <hash>.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.<hash>
         └─ [+] asset.<hash>
Regression Issue
  • Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version

No response

Expected Behavior

If possible it should be possible for this check to be bypassed.

Current Behavior

Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'Custom::AWS' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose.

Reproduction Steps

Create a simple stack with an AwsCustomResource and a lambda function. Update code in lambda function and attempt to deploy with --hotswap.

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.218.0

AWS CDK CLI version

2.1031.0 (build 3d7b09b)

Node.js Version

v22.18.0

OS

MacOS 26

Language

TypeScript

Language Version

No response

Other information

No response

Ngôn ngữ chính
TypeScript
Star
110
Fork
138
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/aws-cdk-cli

Tất cả issue của aws/aws-cdk-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.