Jason Hamilton
10/06/2023, 6:38 PMJason Hamilton
10/06/2023, 6:39 PM________ __
/ ____/ /__ ____ ___ ___ ____ / /_____ ________ __
/ __/ / / _ \/ __ `__ \/ _ \/ __ \/ __/ __ `/ ___/ / / /
/ /___/ / __/ / / / / / __/ / / / /_/ /_/ / / / /_/ /
/_____/_/\___/_/ /_/ /_/\___/_/ /_/\__/\__,_/_/ \__, /
/____/
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 27, in get_log_path
target_path = ctx_args[ctx_args.index(target_path_flag) + 1]
ValueError: '--target-path' is not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/edr", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 60, in invoke
files_target_path = get_log_path(ctx)
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 29, in get_log_path
os.makedirs(os.path.abspath(target_path), exist_ok=True)
File "/usr/local/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/usr/app/edr_target'
________ __
/ ____/ /__ ____ ___ ___ ____ / /_____ ________ __
/ __/ / / _ \/ __ `__ \/ _ \/ __ \/ __/ __ `/ ___/ / / /
/ /___/ / __/ / / / / / __/ / / / /_/ /_/ / / / /_/ /
/_____/_/\___/_/ /_/ /_/\___/_/ /_/\__/\__,_/_/ \__, /
/____/
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 27, in get_log_path
target_path = ctx_args[ctx_args.index(target_path_flag) + 1]
ValueError: '--target-path' is not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/edr", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 60, in invoke
files_target_path = get_log_path(ctx)
File "/usr/local/lib/python3.10/site-packages/elementary/cli/cli.py", line 29, in get_log_path
os.makedirs(os.path.abspath(target_path), exist_ok=True)
File "/usr/local/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/usr/app/edr_target'
START RequestId: a6b154a4-4217-4b2a-8aac-1be29a0c40fa Version: $LATEST
RequestId: a6b154a4-4217-4b2a-8aac-1be29a0c40fa Error: Runtime exited with error: exit status 1
Runtime.ExitError
END RequestId: a6b154a4-4217-4b2a-8aac-1be29a0c40fa
REPORT RequestId: a6b154a4-4217-4b2a-8aac-1be29a0c40fa Duration: 16501.26 ms Billed Duration: 16502 ms Memory Size: 128 MB Max Memory Used: 67 MBItamar Hartstein
10/11/2023, 1:37 PM/tmp, where we write by default to other locations.
I think a possible workaround may be to override the following environment variables (I think this should be possible to set in the Lambda function):
DBT_LOG_PATH=/tmp/logs
DBT_TARGET_PATH=/tmp/target
If still relevant, will be great if you can try and write here if it works!Jason Hamilton
10/13/2023, 4:51 PMJason Hamilton
10/30/2023, 3:12 PM________ __
/ ____/ /__ ____ ___ ___ ____ / /_____ ________ __
/ __/ / / _ \/ __ `__ \/ _ \/ __ \/ __/ __ `/ ___/ / / /
/ /___/ / __/ / / / / / __/ / / / /_/ /_/ / / / /_/ /
/_____/_/\___/_/ /_/ /_/\___/_/ /_/\__/\__,_/_/ \__, /
/____/
Any feedback and suggestions are welcomed! join our community here - <https://bit.ly/slack-elementary>
2023-10-30 14:59:21 — INFO — Running with edr=0.12.0
Usage: edr [OPTIONS] COMMAND [ARGS]...
Try 'edr --help' for help.
Error: No such command 'send-report --aws-access-key-id MY_ACCESS_KEY --aws-secret-access-key MY_SECRET_ACCESS_KEY --s3-bucket-name MY_S3_BUCKET_NAME'.
It will recognize send-report as a command, but as soon as I add any arguments, I get no such command. I'm not sure what I'm missing. Is there any insight you can provide?