aws/copilot-cli
Surface better error message when the stackset instance is not created successfully
開放
#4,126 建立於 2022年10月28日
good first issuesize/Stype/enhancement
倉庫指標
- 星標
- (3,737 顆星)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
When users do copilot env init and if the stackset instance was not created successfully when adding the env to the stackset, we won't know this until deploying the env stack when this error occurs
✘ get app resources: describing application resources: getting outputs for stack in region eu-north-1: describe stack : ValidationError: 2 validation errors detected: Value '' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*; Value '' at 'stackName' failed to satisfy constraint: Member must have length greater than or equal to 1
status code: 400, request id: 3e07d746-06bc-4a7f-b781-6e8e3e07913d
which makes no sense to the users. Ideally after adding the env to the stackset, we need to do something to make sure the stackset instance is created successfully before we deploy the env stack.