Skip to content

Commit 856ac6b

Browse files
committed
Remove pass of AWS env vars from tox.ini
1 parent abbcfe5 commit 856ac6b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Recording calls
2+
3+
If you need to record calls you may need to export authentication variables and the default region as environment
4+
variables in order to have the code work properly.
5+
Since tox blocks environment variables by default you need to override its configuration to let them pass:
6+
7+
```
8+
export TOX_OVERRIDE=testenv.pass_env=AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN,AWS_DEFAULT_REGION
9+
```
10+
11+
We are not adding it to tox.ini because of security concerns.

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,6 @@ test_deps =
421421
opentelemetry-semantic-conventions@{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions
422422
opentelemetry-sdk@{env:CORE_REPO}\#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk
423423
opentelemetry-test-utils@{env:CORE_REPO}\#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils
424-
pass_env =
425-
AWS_ACCESS_KEY_ID
426-
AWS_SECRET_ACCESS_KEY
427-
AWS_SESSION_TOKEN
428-
AWS_DEFAULT_REGION
429424

430425
deps =
431426
lint: -r dev-requirements.txt

0 commit comments

Comments
 (0)