(hotswap): Support for skipping resources in hotswap

Đang mở
#895 9 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ 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 bằng cách lần theo điểm vào của hotswap và cách cdk diff cùng cdk deploy chọn các tài nguyên. So sánh hành vi được yêu cầu với luồng phát triển hotswap hiện có, sử dụng AWS::Lambda::Function và Custom::CDKBucketDeployment làm các ví dụ trong whitelist. Hoàn thành khi hotswap có thể loại trừ tất cả các tài nguyên khác mà không thay đổi hệ thống triển khai CloudFormation hiện có.

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

Mô tả

aws-cdk effort/medium feature-request p2
Maintainer's note

We are not planning to force this feature into the existing CloudFormation deployment system. However it is a perfectly fine addition to the hotswap development feature.

Treating this as a hotswap feature request.


Describe the feature

I'd like to see a CDK equivalent of this Pulumi feature.

Use Case

When managing both infrastructure and application code within the same stack and deploying through a single pipeline, certain challenges arise. For example, consider a monorepo where the CDK code is stored in a /cdk folder and the application code in a /app folder. If a developer modifies only the /app folder, the pipeline still triggers a cdk diff command. What's needed is a way to exclude all resources except for:

  • AWS::Lambda::Function
  • Custom::CDKBucketDeployment

This would allow developers to make application changes without affecting unrelated parts of the infrastructure. It also relieves them from the responsibility of managing infrastructure code directly. Even if configuration drift occurs in other resources, the deployment would only act on the whitelisted resources and ignore the rest. In a separate pipeline, the platform team could then run a full cdk diff and cdk deploy to reconcile and apply changes across the entire stack.

Proposed Solution

No response

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
CDK version used

2.1029.3

Environment details (OS name and version, etc.)

Ubuntu 24.04

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.