helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

aws cli cache directory unwritable

Open ryan-dyer-sp opened this issue 9 months ago • 2 comments

The default aws cli cache directory (/home/atlantis/.aws/cli) is unwritable as the aws secret is mounted as as the entire /home/atlantis/.aws directory.

When dealing with lots of profiles, etc. it is nice to have the aws cli tool available in atlantis (we build our own image w/ additional toolsets installed). But the helm chart's existing method for managing the aws secret doesnt allow the aws cli to work out of the box.

I will submit a PR shortly to iterate through the aws objects and mount them individually as files within the .aws directory instead.

ryan-dyer-sp avatar Apr 29 '24 20:04 ryan-dyer-sp

Hi @ryan-dyer-sp, as replied on our Community Slack:

Hi Ryan, thanks in advance for the contribution :smile: . I’d say it’s best to send the PR and then we can review it. One important detail is to ensure there are no breaking changes, otherwise it needs to be explained with migration steps.

GMartinez-Sisti avatar May 04 '24 11:05 GMartinez-Sisti

Would a similar approach work for this? https://github.com/runatlantis/helm-charts/pull/384

GMartinez-Sisti avatar May 06 '24 12:05 GMartinez-Sisti