Red Bottle
Red Bottle

Reputation: 3090

How to supply non-alphanumeric parameter type to AWS CloudFormation

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.

Upvotes: 2

Views: 3402

Answers (2)

Pat Myron
Pat Myron

Reputation: 4648

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.

CloudFormation Linter Visual Studio Code extension screenshot

Upvotes: 1

Chris Williams
Chris Williams

Reputation: 35258

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

So try updating it for example TELEPHONYURL or TelephonyURL

Upvotes: 3

Related Questions