question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloudformation service-2.js is missing valid ResourceStatus values

See original GitHub issue

It appears that data/cloudformation/2010-05-15/service-2.json is missing the following enum values in the ResourceStatus type:

"ROLLBACK_COMPLETE"
"ROLLBACK_FAILED"
"ROLLBACK_IN_PROGRESS"
"UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"
"UPDATE_ROLLBACK_COMPLETE"
"UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"
"UPDATE_ROLLBACK_FAILED"
"UPDATE_ROLLBACK_IN_PROGRESS"

Note that all of these are present in the StackStatus type.

But when DescribeStackEvents reports the status of the stack when the event resource is the stack itself: the stack status becomes the resource status.

I suspect this was not found so far as your internal generation of the service-2.json only consults the resource statuses, excluding the stack statuses. And many downstream libraries only expose the stack / resource status as strings. So it could slip through for a long time.

To reproduce the missing ResourceStatus enum values: Run the stack into any of the states missing from ResourceStatus and call DescribeStackEvents.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mbjcommented, Jun 10, 2021

Sorry to be so snarky earlier. Thanks for taking a look.

2reactions
kdailycommented, Jun 10, 2021

@ITProKyle, @mbj,

Checking in here - I’ve requested an update from the CloudFormation team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parameters - AWS CloudFormation
Use parameters to pass values to your template when creating or updating a stack so that you can customize each stack deployment.
Read more >
AWS CloudFormation template - Required values
Each parameter must be assigned a value at runtime for AWS CloudFormation to successfully provision the stack.
Read more >
10 Solutions to Common CloudFormation Errors - Medium
When you finally uploaded your stack, you ran into a “missing required property” error. These errors often occur when a resource has several ......
Read more >
cfn-lint - npm
A more friendly CloudFormation JSON and YAML Validator. ... Properties Message: Required property Value missing for type Tag Documentation: ...
Read more >
Amazon CloudFormation template for setting up the Route 53 ...
Amazon CloudFormation template for defining a Route 53 health check; CloudWatch alarm ... Valid values: breaching , notBreaching , ignore , and missing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found