aws-cloudformation / aws-cloudformation/cloudformation-cli-typescript-plugin
Provide stackId in ResourceHandlerRequest
- 主要语言
- TypeScript
- 星标
- 46
- 派生
- 18
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
调研方向
首先跟踪 ResourceHandlerRequest 和 BaseResource 在插件中的流程,然后比较 stack 标识在 create、update 和 delete 事件中是如何暴露的。检查 systemTags 路径中现有的 ARN 处理方式。当 ResourceHandlerRequest 提供 stackId(包括删除期间),且不要求消费者复制基础库时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, node.js, typescript
- 领域
- backend-api-design
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100