Hello guys. Can somebody help me here.
At some point of time maybe 3 -4 weeks ago sceptre delete command stopped work for all the templates that we have.
The first problem was with this: /home/github-actions/.local/lib/python3.10/site-packages/sceptre/stack.py:465: DeprecatedWarning: template_path is deprecated as of 4.0.0. Use the template Stack Config key instead. 58 setattr(self, deprecated_attribute_name, deprecated_value)
This problem was fixed by changing template_path to template: path: common/ecr.yaml
as mentioned in the documentation.
And now still not possible to delete the template with the sceptre delete command and I got this error
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/bin/sceptre", line 8, in <module>
sys.exit(cli())
~~~^^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/cli/helpers.py", line 46, in decorated
return func(*args, **kwargs)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/cli/delete.py", line 41, in delete_command
plan = SceptrePlan(context)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/plan/plan.py", line 50, in __init__
all_stacks, command_stacks = self.config_reader.construct_stacks()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/config/reader.py", line 273, in construct_stacks
stack = self._construct_stack(rel_path, stack_group_config)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/config/reader.py", line 639, in _construct_stack
stack = Stack(
name=stack_name,
...<29 lines>...
config=config,
)
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/stack.py", line 256, in __init__
self._set_field_with_deprecated_alias(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"template_handler_config",
^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
preferred_config_name="template",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/stack.py", line 467, in _set_field_with_deprecated_alias
raise InvalidConfigFileError(
f"{preferred_config_name} is a required Stack Config."
)
sceptre.exceptions.InvalidConfigFileError: template is a required Stack Config.```