aws / aws-toolkit-eclipse

(End of life: May 31, 2023) AWS Toolkit for Eclipse
http://aws.amazon.com/eclipse
Apache License 2.0
275 stars 179 forks source link

Work ARound: Add CAPABILITY_AUTO_EXPAND to CFN Create Stack Action #184

Open dxciberaws opened 4 years ago

dxciberaws commented 4 years ago

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 commented 4 years ago

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.