问题
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