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.

Bug: Malformed condition causes module type registration to hang

See original GitHub issue

I tried making a simple module which had a typo in the condition section. When I ran validate it passed but when I went to submit the module the registration hung for a few hours before failing.

Template Fragment that triggers the Error (in YAML for readability actual template was in JSON)

AWSTemplateFormatVersion: '2010-09-09'

Parameters:
  MyParameter:
    Type: String
    Default: "NOT_SET"

Conditions:
  MyCondition:
    Fn::Not:
    - Fn::Equal: # Should be Fn::Equals
      - Ref: MyParameter
      - "NOT_SET"
  
Resources:
  TestResource:
     Condition: MyCondition
     Type: AWS::CloudFormation::WaitConditionHandle
      Properties: {}

During registration the process hangs. Inspecting the registration token via describe-type-registration yields the following:

{
    "ProgressStatus": "IN_PROGRESS",
    "Description": "Deployment is currently in VALIDATION_STAGE of status IN_PROGRESS; Next is DEPLOY_STAGE with status PENDING"
}

It seems that this template has caused the VALIDATION_STAGE to hang in some manner.

This locks out updating the module for several hours until it fails.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
travbalecommented, Jan 8, 2021

I will attempt to reproduce myself and if I am able to will share more detailed steps. Will report back with my findings and thank you for taking a look.

0reactions
travbalecommented, Mar 23, 2021

Yep happy to close. I have not been able to make it happen since.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn link doesn't work · Issue #1297 · yarnpkg/yarn - GitHub
After linking and install the package I got: yarn yarn install v0.23.2 [1/4] Resolving packages... error Received malformed response from ...
Read more >
Missing bundle property on entity of type file. in ... - Drupal
I believe this error is caused by a conflict between file_entity and entity_uuid. After installing entity_uuid the schema object for File ...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to ... mount as read/write" status:RESOLVED resolution:OBSOLETE severity:normal ...
Read more >
Troubleshoot ASP.NET Core on Azure App Service and IIS
The cause of a process startup failure can usually be determined from entries in the Application Event Log and the ASP.NET Core Module...
Read more >
Troubleshoot Terraform - HashiCorp Developer
Starting from the type of error closest to the user: Language errors: The primary interface for Terraform is the HashiCorp Configuration Language (HCL),...
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