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.

Template file without parameters fails in v2

See original GitHub issue

The resource.paramter_file is passing Null value when there is no parameter file for a given template. The manifest.yaml is inherited from version 1 repo.

This forces the template files to have a parameter.

2021-03-23T23:49:48.883-07:00	parameters = self._load_params_from_file(resource.parameter_file)
2021-03-23T23:49:48.883-07:00	File "/codebuild/output/src377331526/src/manifest/manifest_parser.py", line 373, in _load_params_from_file
2021-03-23T23:49:48.883-07:00	with open(parameter_file, 'r') as content_file:
2021-03-23T23:49:48.883-07:00	IsADirectoryError: [Errno 21] Is a directory: '/codebuild/output/src377331526/src/'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
groverlalitcommented, Mar 25, 2021

One of the properties parameter_files or parameters is required for the pipeline to generate an event with the parameters for the state machine. We can add this as a feature request to make these properties optional. I think this may add burden on the user to validate the template has default value for all the parameters in the template.

Please give a thumbs up this comment if this feature is applicable to you. Thanks.

1reaction
groverlalitcommented, May 14, 2021

Thanks @cabjas01 for confirming. The new manifest version supports deploying StackSet without parameters or parameter_file property.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template file without parameters fails in v2 · Issue #51 - GitHub
The resource.paramter_file is passing Null value when there is no parameter file for a given template. The manifest.yaml is inherited from ...
Read more >
Resolve template validation or template format errors in ...
I receive an error message when I try to create my AWS CloudFormation stack. Short description. Choose one of the following solutions based...
Read more >
There are no arguments that depend on a template parameter
I have to read all the contents from a file. Each field is separated by '\t' character, so I have to ignore the...
Read more >
1247676 – When a required parameter from an application ...
The 'parameters.source.git.uri' is not a template parameter, it is BuildConfig field. So the error you seen is a validation error coming from the...
Read more >
Tutorial: Use parameter files to deploy your ARM template
Use parameter files that contain the values to use for deploying your Azure Resource Manager template (ARM template).
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