• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » How to Include AWS CloudFormation Parameters in Step Functions

How to Include AWS CloudFormation Parameters in Step Functions

Emily Smith by Emily Smith
December 24, 2025
in How To
Reading Time: 1 min read
A A
AWS Security: Handling Sophisticated Attacks & Collaborating with Authorities
ADVERTISEMENT

Select Language:

If you’re trying to use CloudFormation parameters with Step Functions and run into errors, here’s a simple way to fix it. The problem typically happens because the JSON in the step function definition isn’t properly formatted or the parameter substitution isn’t working as expected.

ADVERTISEMENT

First, look at the error message. It says that there’s an unrecognized token like ‘TestBucket’ in the JSON, which suggests that the parameter isn’t being inserted correctly into your definition string. To fix this, you need to make sure your parameter is properly referenced within the JSON.

Here’s a helpful approach:

  1. Define your parameters at the top, like ‘DestinationBucket’ and ‘StepFunctionName’.
  2. When building your state machine, use ‘DefinitionString’ with the correct JSON format.
  3. Substitute your parameters properly inside the JSON, making sure to format strings correctly. Use ${ParameterName} inside the JSON string.

For example:

ADVERTISEMENT

DefinitionString: |-
{
“StartAt”: “Init”,
“TimeoutSeconds”: 4800,
“States”: {
“Init”: {
“Type”: “Pass”,
“Parameters”: {
“bucket.$”: “$.DestinationBucket”,
“LogGroups”: [],
“NextToken”: null,
“YesterdayStartTime”: “{% $toMillis($substring($fromMillis($toMillis($now()) – 86400000), 0, 10) & ‘T00:00:00.000Z’) %}”,
“YesterdayEndTime”: “{% $toMillis($substring($fromMillis($toMillis($now()) – 86400000), 0, 10) & ‘T23:59:59.999Z’) %}”,
“date_prefix”: “{% $fromMillis($toMillis($now()) – 86400000, \”[Y0001]/[M01]/[D01]\”, \”Z\”) %}”
},
“End”: true
}
},
“QueryLanguage”: “JSONata”
}

Notice the use of .Parameters with "$": "$.DestinationBucket" for string parameters, which ensures proper substitution. Also, avoid missing commas between JSON entries—it’s a common mistake.

Double-check your JSON syntax, and ensure that the parameter reference matches the way your template handles substitutions. This should fix the ‘Invalid JSON description’ error and let your state machine accept the parameterized bucket name successfully.

ChatGPT ChatGPT Perplexity AI Perplexity Gemini AI Logo Gemini AI Grok AI Logo Grok AI
Google Banner
ADVERTISEMENT
Emily Smith

Emily Smith

Emily is a digital marketer in Austin, Texas. She enjoys gaming, playing guitar, and dreams of traveling to Japan with her golden retriever, Max.

Related Posts

Complete Cooking Recipe List for Hytale: Solving and Completing
Gaming

Complete Cooking Recipe List for Hytale: Solving and Completing

January 21, 2026
New Zealand's Landmark Vote Scheduled for November 7
News

New Zealand’s Landmark Vote Scheduled for November 7

January 21, 2026
Infotainment

Top Countries by Average IQ with Japan Rank 3

January 21, 2026
Barcelona commuter train crashes; driver killed, four hurt badly
News

Barcelona commuter train crashes; driver killed, four hurt badly

January 21, 2026
Next Post
industry 2738407 960 720.jpg

WPS Adds Smart AI Analysis Brain

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2026 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2026 Digital Phablet