<reponame>ayustae/spark-on-eks<filename>airflow/scripts/create_fernet_key.py
#!/usr/bin/env python

# Imports
from cryptography.fernet import Fernet
from json import dumps

# Create the Fernet key
fernet_key = Fernet.generate_key().decode()

# Print the output in JSON for Terraform
print(dumps({ "fernet_key": fernet_key }))

#!/usr/bin/env python

# Imports
from cryptography.fernet import Fernet
from json import dumps

# Create the Fernet key
fernet_key = Fernet.generate_key().decode()

# Print the output in JSON for Terraform
print(dumps({ "fernet_key": fernet_key }))
#!/usr/bin/env python # Imports # Create the Fernet key # Print the output in JSON for Terraform