Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opentofu 1.7.3 and aws provider 5.59.0 state file error #1

Open
ReXtrem opened this issue Jul 30, 2024 · 0 comments
Open

Opentofu 1.7.3 and aws provider 5.59.0 state file error #1

ReXtrem opened this issue Jul 30, 2024 · 0 comments

Comments

@ReXtrem
Copy link

ReXtrem commented Jul 30, 2024

aws-security-group-diagram-from-terraform % python3 main.py -f dev.json         
Warning: format_version 'None' is not tested. Tested: ['1.0']
Traceback (most recent call last):
  File "/Users/gfuchs/Projects/OpenSource/aws-security-group-diagram-from-terraform/schema_terraform_state_file.py", line 16, in check_state_file_against_schema
    state_file_dict_schema.validate(data)
  File "/Users/gfuchs/Library/Python/3.12/lib/python/site-packages/schema.py", line 508, in validate
    raise SchemaMissingKeyError(message, e.format(data) if e else None)
schema.SchemaMissingKeyError: Missing keys: 'format_version', 'values'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/gfuchs/Projects/OpenSource/aws-security-group-diagram-from-terraform/main.py", line 51, in <module>
    preprocessed_json = process_json(input_json)
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gfuchs/Projects/OpenSource/aws-security-group-diagram-from-terraform/convert_state_file_to_diagram_generator_input.py", line 15, in process_json
    check_state_file_against_schema(data)
  File "/Users/gfuchs/Projects/OpenSource/aws-security-group-diagram-from-terraform/schema_terraform_state_file.py", line 18, in check_state_file_against_schema
    raise Exception("State File Validation failed!", e)
Exception: ('State File Validation failed!', SchemaMissingKeyError("Missing keys: 'format_version', 'values'"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant