aws-cloudformation / aws-cloudformation/cloudformation-cli-typescript-plugin

Provide stackId in ResourceHandlerRequest

Đang mở
#59 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
46
Fork
18
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It would be really useful to have the `stackId` in the `ResourceHandlerRequest` alongside the `logicalResourceIdentifier`. This also allows us to track where a resource is created so that if someone in a different stack tries to create the same resource we can provide an error saying that a different stack has it, and which one.

The ARN is available on create and update events in the `systemTags`, but not delete events. We need to tidy up our resource ownership registry when a resource is deleted so also need it at that point.

We've worked around its absence by copying chunks of this library into our own project and switching out the BaseResource for our own copy but it would be much easier if it were in the base library.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách lần theo ResourceHandlerRequest và BaseResource trong plugin, sau đó so sánh cách danh tính của stack được cung cấp trong các sự kiện create, update và delete. Kiểm tra đường dẫn systemTags để xem cách xử lý ARN hiện có. Được xem là hoàn tất khi ResourceHandlerRequest cung cấp stackId, kể cả trong quá trình xóa, mà không yêu cầu consumer sao chép thư viện cơ sở.

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

Đánh giá

Công nghệ
aws, node.js, typescript
Lĩnh vực
backend-api-design
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.