How to supply non-alphanumeric parameter type to AWS CloudFormation

跟風遠走 提交于 2021-01-28 13:52:54

问题


Hi I'm creating a CloudFormation stack from CLI and trying to supply a url parameter. I have given the type as String as I couldn't find anything specific for URL's HERE

The problem is, when I give it as Type: String, I get this error:

An error occurred (ValidationError) when calling the CreateStack operation: Template format error: Parameter name TELEPHONY_URL is non alphanumeric.

This is my parameter json:

{ "ParameterKey": "TELEPHONY_URL", "ParameterValue": "https://telephony.crm4b2c.com/1/api/Telephony/LogCallComplete/" }

Please help me out.


回答1:


The issue is that the parameter name TELEPHONY_URL must be alphanumeric, no special characters.

So try updating it for example TELEPHONYURL or TelephonyURL




回答2:


Rather than running into these errors one-by-one at deployment time, the CloudFormation Linter and the CloudFormation Linter Visual Studio Code extension can show these errors inline while working on CloudFormation templates:

E2003 Parameter TELEPHONY_URL has invalid name.  Name has to be alphanumeric.



来源:https://stackoverflow.com/questions/62304925/how-to-supply-non-alphanumeric-parameter-type-to-aws-cloudformation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!