aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

Work ARound: Add CAPABILITY_AUTO_EXPAND to CFN Create Stack Action

Open dxciberaws opened this issue 4 years ago • 1 comments

Hi

As reported to the corresponding AWS CLI And AWS SDK Projects, the API is not returning the capabilities in the result of the ValidateTemplate action. Consecquence being that when creating stacks with templates that use macros and require CAPABILITY_AUTO_EXPAND, the operation fails. The issue has been reported five months ago now. Can I suggest that as a work-around the capabilities are not retrieved from the ValidateTemplate action, but directly added by the toolkit for the create stack action?

https://github.com/aws/aws-cli/issues/4747 aws/aws-sdk#250

dxciberaws avatar Apr 27 '20 13:04 dxciberaws

As confirmed by AWS support, the issue is in the AWS ValidateTemplate API, that does not return any capabilities result when teplates contain macros. There is also not another automated way to determine the required capabilities (except performing out own inspection of the template code). I insist in my suggestion to either: Hard code all capabilities, or add UI check boxes for the user to acknowledge them (wether the template requires them or not). The mere existence of capabilities being questionable, IMHO, I'd opt for the first.

dxciberaws avatar Apr 29 '20 14:04 dxciberaws