Skip to content

Commit 7ff9f23

Browse files
author
Emanuele Palazzetti
authored
[ci] add AWS credential so that they are not required in forks (#329)
1 parent 975510a commit 7ff9f23

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/contrib/aiobotocore/utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ def aiobotocore_client(service, tracer):
2121
"""
2222
session = aiobotocore.session.get_session()
2323
endpoint = LOCALSTACK_ENDPOINT_URL[service]
24-
client = session.create_client(service, region_name='us-west-2', endpoint_url=endpoint)
24+
client = session.create_client(
25+
service,
26+
region_name='us-west-2',
27+
endpoint_url=endpoint,
28+
aws_access_key_id='aws',
29+
aws_secret_access_key='aws',
30+
aws_session_token='aws',
31+
)
2532
Pin.override(client, tracer=tracer)
2633
try:
2734
yield client

0 commit comments

Comments
 (0)