aws/copilot-cli

Surface better error message when the stackset instance is not created successfully

开放

#4,126 创建于 2022年10月28日

 (0 条评论) (0 个反应) (0 位负责人)Go (441 个派生)auto 404
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.

贡献者指南