File tree 2 files changed +8
-0
lines changed
tensorflow_io/core/filesystems/s3
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,13 @@ static Aws::Client::ClientConfiguration& GetDefaultClientConfig() {
134
134
absl::MutexLock l (&cfg_lock);
135
135
136
136
if (!init) {
137
+ const char * verify_ssl = getenv (" S3_VERIFY_SSL" );
138
+ if (verify_ssl) {
139
+ if (verify_ssl[0 ] == ' 0' )
140
+ cfg.verifySSL = false ;
141
+ else
142
+ cfg.verifySSL = true ;
143
+ }
137
144
// if these timeouts are low, you may see an error when
138
145
// uploading/downloading large files: Unable to connect to endpoint
139
146
int64_t timeout;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def test_read_file():
51
51
response = client .get_object (Bucket = bucket_name , Key = key_name )
52
52
assert response ["Body" ].read () == body
53
53
54
+ os .environ ["S3_VERIFY_SSL" ] = "0"
54
55
os .environ ["S3_ENDPOINT" ] = "http://localhost:4566"
55
56
56
57
content = tf .io .read_file (f"s3://{ bucket_name } /{ key_name } " )
You can’t perform that action at this time.
0 commit comments