I happen to use direnv with an /Users/darren/Workspaces/current-client/.envrc containing source_upĮxport TF_DIR=/Users/darren/Workspaces/current-client/infrastructure-projectĪ possible workflow for AWS-endpoint overriding could entail cd'ing into a docker-env directory, where /Users/darren/Workspaces/current-client/app-project/docker-env/.envrc contains source_upĮxport AWS_ENDPOINT_OVERRIDE= where LocalStack is running in Docker, exposed on port 4566. Thought I'd share an alternative version of the alias alias aws='aws $ ' The SOME_CONFIG_FILE environment variable could point to a aws-endpoint-override file containing Original Answer Here is an alternative alias to address the OP's specific need and comments above alias aws='aws $( & sed "s,^,-endpoint-url ," $SOME_CONFIG_FILE) '
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |