Lars Kinder

Results 7 comments of Lars Kinder

Hi @sam701, thanks for the quick response. I am using` zsh 5.8 (x86_64-apple-darwin19.6.0)` I defined the `assume_role()` function in` .bash_profiles` and added `source /Users/lars/.bash_profile` to my `.zshenv file` Cheers, Lars

Was a typo, sorry about that. Added the `aws_assume() `to `.zshenv` now `assume_role zsh: command not found: assume_role`

Thanks a lot for the help. :) Sadly even when sourcing, the function still does not get detected. Any other idea why this could happen?

@sam701 , got the function `assume_role` to work. Somehow it was not able to detect my `config.toml` so. ` aws_assume ACCOUNT ROLE 2021/04/30 11:05:45 ERROR open /Users/lars/.config/awstools/awstools.toml: no such file...

Hi @sam701, I removed the assume_role from my zshenv and now only using the helper script function. `function aws_assume() { config_file="${config_dir}/awstools.toml" creds_file=$(mktemp) awstools --config ${config_file} assume --export ${creds_file} $@; source...

@sam701 : Sorry about it, forgot that the export with `awstools assume` was the original problem. That is still not working, therefore I re-opened the ticket.

Thanks for getting back. I noticed, that it is possible to exclude a single file via the pre-commit config directly so. ``` hooks: - id: yamlfix alias: lint exclude: project_root/dir/sub_dir/example.yml...