Skip to content

https_proxy support #169

@matiu2

Description

@matiu2

Bug Report

Though the readme says that you can set the environment variables: http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY and the SDK will use them, it completely ignores them.

Version

my-cli2 v0.1.0 (/Users/sherbomd/projects/my-cli2)
├── anyhow v1.0.42
├── aws-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   ├── bytes v1.0.1
│   │   ├── bytes-utils v0.1.1
│   │   │   ├── bytes v1.0.1
│   │   │   └── either v1.6.1
│   │   ├── futures-core v0.3.16
│   │   ├── http v0.2.4
│   │   │   ├── bytes v1.0.1
│   │   │   ├── fnv v1.0.7
│   │   │   └── itoa v0.4.7
│   │   ├── http-body v0.4.2
│   │   │   ├── bytes v1.0.1
│   │   │   ├── http v0.2.4 (*)
│   │   │   └── pin-project-lite v0.2.7
│   │   ├── hyper v0.14.11
│   │   │   ├── bytes v1.0.1
│   │   │   ├── futures-channel v0.3.16
│   │   │   │   └── futures-core v0.3.16
│   │   │   ├── futures-core v0.3.16
│   │   │   ├── futures-util v0.3.16
│   │   │   │   ├── futures-core v0.3.16
│   │   │   │   ├── futures-macro v0.3.16 (proc-macro)
│   │   │   │   │   ├── proc-macro-hack v0.5.19 (proc-macro)
│   │   │   │   │   ├── proc-macro2 v1.0.28
│   │   │   │   │   │   └── unicode-xid v0.2.2
│   │   │   │   │   ├── quote v1.0.9
│   │   │   │   │   │   └── proc-macro2 v1.0.28 (*)
│   │   │   │   │   └── syn v1.0.74
│   │   │   │   │       ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │       ├── quote v1.0.9 (*)
│   │   │   │   │       └── unicode-xid v0.2.2
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── autocfg v1.0.1
│   │   │   │   ├── futures-task v0.3.16
│   │   │   │   ├── pin-project-lite v0.2.7
│   │   │   │   ├── pin-utils v0.1.0
│   │   │   │   ├── proc-macro-hack v0.5.19 (proc-macro)
│   │   │   │   ├── proc-macro-nested v0.1.7
│   │   │   │   └── slab v0.4.3
│   │   │   │   [build-dependencies]
│   │   │   │   └── autocfg v1.0.1
│   │   │   ├── h2 v0.3.3
│   │   │   │   ├── bytes v1.0.1
│   │   │   │   ├── fnv v1.0.7
│   │   │   │   ├── futures-core v0.3.16
│   │   │   │   ├── futures-sink v0.3.16
│   │   │   │   ├── futures-util v0.3.16 (*)
│   │   │   │   ├── http v0.2.4 (*)
│   │   │   │   ├── indexmap v1.7.0
│   │   │   │   │   └── hashbrown v0.11.2
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── autocfg v1.0.1
│   │   │   │   ├── slab v0.4.3
│   │   │   │   ├── tokio v1.9.0
│   │   │   │   │   ├── bytes v1.0.1
│   │   │   │   │   ├── libc v0.2.98
│   │   │   │   │   ├── memchr v2.4.0
│   │   │   │   │   ├── mio v0.7.13
│   │   │   │   │   │   ├── libc v0.2.98
│   │   │   │   │   │   └── log v0.4.14
│   │   │   │   │   │       └── cfg-if v1.0.0
│   │   │   │   │   ├── num_cpus v1.13.0
│   │   │   │   │   │   └── libc v0.2.98
│   │   │   │   │   ├── once_cell v1.8.0
│   │   │   │   │   ├── parking_lot v0.11.1
│   │   │   │   │   │   ├── instant v0.1.10
│   │   │   │   │   │   │   └── cfg-if v1.0.0
│   │   │   │   │   │   ├── lock_api v0.4.4
│   │   │   │   │   │   │   └── scopeguard v1.1.0
│   │   │   │   │   │   └── parking_lot_core v0.8.3
│   │   │   │   │   │       ├── cfg-if v1.0.0
│   │   │   │   │   │       ├── instant v0.1.10 (*)
│   │   │   │   │   │       ├── libc v0.2.98
│   │   │   │   │   │       └── smallvec v1.6.1
│   │   │   │   │   ├── pin-project-lite v0.2.7
│   │   │   │   │   ├── signal-hook-registry v1.4.0
│   │   │   │   │   │   └── libc v0.2.98
│   │   │   │   │   └── tokio-macros v1.3.0 (proc-macro)
│   │   │   │   │       ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │       ├── quote v1.0.9 (*)
│   │   │   │   │       └── syn v1.0.74 (*)
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── autocfg v1.0.1
│   │   │   │   ├── tokio-util v0.6.7
│   │   │   │   │   ├── bytes v1.0.1
│   │   │   │   │   ├── futures-core v0.3.16
│   │   │   │   │   ├── futures-sink v0.3.16
│   │   │   │   │   ├── log v0.4.14 (*)
│   │   │   │   │   ├── pin-project-lite v0.2.7
│   │   │   │   │   └── tokio v1.9.0 (*)
│   │   │   │   └── tracing v0.1.26
│   │   │   │       ├── cfg-if v1.0.0
│   │   │   │       ├── log v0.4.14 (*)
│   │   │   │       ├── pin-project-lite v0.2.7
│   │   │   │       ├── tracing-attributes v0.1.15 (proc-macro)
│   │   │   │       │   ├── proc-macro2 v1.0.28 (*)
│   │   │   │       │   ├── quote v1.0.9 (*)
│   │   │   │       │   └── syn v1.0.74 (*)
│   │   │   │       └── tracing-core v0.1.18
│   │   │   │           └── lazy_static v1.4.0
│   │   │   ├── http v0.2.4 (*)
│   │   │   ├── http-body v0.4.2 (*)
│   │   │   ├── httparse v1.4.1
│   │   │   ├── httpdate v1.0.1
│   │   │   ├── itoa v0.4.7
│   │   │   ├── pin-project-lite v0.2.7
│   │   │   ├── socket2 v0.4.0
│   │   │   │   └── libc v0.2.98
│   │   │   ├── tokio v1.9.0 (*)
│   │   │   ├── tower-service v0.3.1
│   │   │   ├── tracing v0.1.26 (*)
│   │   │   └── want v0.3.0
│   │   │       ├── log v0.4.14 (*)
│   │   │       └── try-lock v0.2.3
│   │   ├── percent-encoding v2.1.0
│   │   ├── pin-project v1.0.8
│   │   │   └── pin-project-internal v1.0.8 (proc-macro)
│   │   │       ├── proc-macro2 v1.0.28 (*)
│   │   │       ├── quote v1.0.9 (*)
│   │   │       └── syn v1.0.74 (*)
│   │   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   │   └── chrono v0.4.19
│   │   │       ├── libc v0.2.98
│   │   │       ├── num-integer v0.1.44
│   │   │       │   └── num-traits v0.2.14
│   │   │       │       [build-dependencies]
│   │   │       │       └── autocfg v1.0.1
│   │   │       │   [build-dependencies]
│   │   │       │   └── autocfg v1.0.1
│   │   │       └── num-traits v0.2.14 (*)
│   │   ├── thiserror v1.0.26
│   │   │   └── thiserror-impl v1.0.26 (proc-macro)
│   │   │       ├── proc-macro2 v1.0.28 (*)
│   │   │       ├── quote v1.0.9 (*)
│   │   │       └── syn v1.0.74 (*)
│   │   ├── tokio v1.9.0 (*)
│   │   ├── tokio-util v0.6.7 (*)
│   │   └── tracing v0.1.26 (*)
│   └── zeroize v1.4.1
├── aws-endpoint v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   ├── aws-types v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   └── lazy_static v1.4.0
│   │   [build-dependencies]
│   │   └── rustc_version v0.3.3
│   │       └── semver v0.11.0
│   │           └── semver-parser v0.10.2
│   │               └── pest v2.1.3
│   │                   └── ucd-trie v0.1.3
│   ├── http v0.2.4 (*)
│   ├── regex v1.5.4
│   │   ├── aho-corasick v0.7.18
│   │   │   └── memchr v2.4.0
│   │   ├── memchr v2.4.0
│   │   └── regex-syntax v0.6.25
│   └── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
├── aws-sdk-sts v0.0.12-alpha (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   ├── aws-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   ├── aws-endpoint v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   ├── aws-http v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   ├── aws-types v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── http v0.2.4 (*)
│   │   ├── lazy_static v1.4.0
│   │   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   └── thiserror v1.0.26 (*)
│   ├── aws-hyper v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   ├── aws-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── aws-endpoint v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── aws-http v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── aws-sig-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   │   ├── aws-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   ├── aws-sigv4 v0.1.0 (https://github.com/rcoh/sigv4?rev=66b1646a7ab119c73be966ca70ee5f556bd8379b#66b1646a)
│   │   │   │   ├── bytes v1.0.1
│   │   │   │   ├── chrono v0.4.19 (*)
│   │   │   │   ├── hex v0.4.3
│   │   │   │   ├── http v0.2.4 (*)
│   │   │   │   ├── http-body v0.4.2 (*)
│   │   │   │   ├── percent-encoding v2.1.0
│   │   │   │   ├── ring v0.16.20
│   │   │   │   │   ├── spin v0.5.2
│   │   │   │   │   └── untrusted v0.7.1
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── cc v1.0.69
│   │   │   │   ├── serde v1.0.126
│   │   │   │   │   └── serde_derive v1.0.126 (proc-macro)
│   │   │   │   │       ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │       ├── quote v1.0.9 (*)
│   │   │   │   │       └── syn v1.0.74 (*)
│   │   │   │   └── serde_urlencoded v0.7.0
│   │   │   │       ├── form_urlencoded v1.0.1
│   │   │   │       │   ├── matches v0.1.8
│   │   │   │       │   └── percent-encoding v2.1.0
│   │   │   │       ├── itoa v0.4.7
│   │   │   │       ├── ryu v1.0.5
│   │   │   │       └── serde v1.0.126 (*)
│   │   │   ├── aws-types v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   ├── http v0.2.4 (*)
│   │   │   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   └── thiserror v1.0.26 (*)
│   │   ├── bytes v1.0.1
│   │   ├── fastrand v1.5.0
│   │   ├── http v0.2.4 (*)
│   │   ├── http-body v0.4.2 (*)
│   │   ├── hyper v0.14.11 (*)
│   │   ├── hyper-rustls v0.22.1
│   │   │   ├── ct-logs v0.8.0
│   │   │   │   └── sct v0.6.1
│   │   │   │       ├── ring v0.16.20 (*)
│   │   │   │       └── untrusted v0.7.1
│   │   │   ├── futures-util v0.3.16 (*)
│   │   │   ├── hyper v0.14.11 (*)
│   │   │   ├── log v0.4.14 (*)
│   │   │   ├── rustls v0.19.1
│   │   │   │   ├── base64 v0.13.0
│   │   │   │   ├── log v0.4.14 (*)
│   │   │   │   ├── ring v0.16.20 (*)
│   │   │   │   ├── sct v0.6.1 (*)
│   │   │   │   └── webpki v0.21.4
│   │   │   │       ├── ring v0.16.20 (*)
│   │   │   │       └── untrusted v0.7.1
│   │   │   ├── rustls-native-certs v0.5.0
│   │   │   │   ├── rustls v0.19.1 (*)
│   │   │   │   └── security-framework v2.3.1
│   │   │   │       ├── bitflags v1.2.1
│   │   │   │       ├── core-foundation v0.9.1
│   │   │   │       │   ├── core-foundation-sys v0.8.2
│   │   │   │       │   └── libc v0.2.98
│   │   │   │       ├── core-foundation-sys v0.8.2
│   │   │   │       ├── libc v0.2.98
│   │   │   │       └── security-framework-sys v2.3.0
│   │   │   │           ├── core-foundation-sys v0.8.2
│   │   │   │           └── libc v0.2.98
│   │   │   ├── tokio v1.9.0 (*)
│   │   │   ├── tokio-rustls v0.22.0
│   │   │   │   ├── rustls v0.19.1 (*)
│   │   │   │   ├── tokio v1.9.0 (*)
│   │   │   │   └── webpki v0.21.4 (*)
│   │   │   └── webpki v0.21.4 (*)
│   │   ├── pin-project v1.0.8 (*)
│   │   ├── protocol-test-helpers v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   │   ├── assert-json-diff v1.1.0
│   │   │   │   ├── extend v0.1.2 (proc-macro)
│   │   │   │   │   ├── proc-macro-error v1.0.4
│   │   │   │   │   │   ├── proc-macro-error-attr v1.0.4 (proc-macro)
│   │   │   │   │   │   │   ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │   │   │   └── quote v1.0.9 (*)
│   │   │   │   │   │   │   [build-dependencies]
│   │   │   │   │   │   │   └── version_check v0.9.3
│   │   │   │   │   │   ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │   │   ├── quote v1.0.9 (*)
│   │   │   │   │   │   └── syn v1.0.74 (*)
│   │   │   │   │   │   [build-dependencies]
│   │   │   │   │   │   └── version_check v0.9.3
│   │   │   │   │   ├── proc-macro2 v1.0.28 (*)
│   │   │   │   │   ├── quote v1.0.9 (*)
│   │   │   │   │   └── syn v1.0.74 (*)
│   │   │   │   ├── serde v1.0.126 (*)
│   │   │   │   └── serde_json v1.0.64
│   │   │   │       ├── itoa v0.4.7
│   │   │   │       ├── ryu v1.0.5
│   │   │   │       └── serde v1.0.126 (*)
│   │   │   ├── http v0.2.4 (*)
│   │   │   ├── pretty_assertions v0.7.2
│   │   │   │   ├── ansi_term v0.12.1
│   │   │   │   └── diff v0.1.12
│   │   │   ├── regex v1.5.4 (*)
│   │   │   ├── roxmltree v0.14.1
│   │   │   │   └── xmlparser v0.13.3
│   │   │   ├── serde_json v1.0.64 (*)
│   │   │   └── thiserror v1.0.26 (*)
│   │   ├── smithy-client v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   │   ├── bytes v1.0.1
│   │   │   ├── fastrand v1.5.0
│   │   │   ├── http v0.2.4 (*)
│   │   │   ├── http-body v0.4.2 (*)
│   │   │   ├── hyper v0.14.11 (*)
│   │   │   ├── hyper-rustls v0.22.1 (*)
│   │   │   ├── pin-project v1.0.8 (*)
│   │   │   ├── protocol-test-helpers v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   ├── smithy-http-tower v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   │   │   ├── bytes v1.0.1
│   │   │   │   ├── http v0.2.4 (*)
│   │   │   │   ├── http-body v0.4.2 (*)
│   │   │   │   ├── pin-project v1.0.8 (*)
│   │   │   │   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   │   ├── tower v0.4.8
│   │   │   │   │   ├── futures-core v0.3.16
│   │   │   │   │   ├── futures-util v0.3.16 (*)
│   │   │   │   │   ├── pin-project v1.0.8 (*)
│   │   │   │   │   ├── tokio v1.9.0 (*)
│   │   │   │   │   ├── tower-layer v0.3.1
│   │   │   │   │   ├── tower-service v0.3.1
│   │   │   │   │   └── tracing v0.1.26 (*)
│   │   │   │   └── tracing v0.1.26 (*)
│   │   │   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   │   ├── tokio v1.9.0 (*)
│   │   │   ├── tower v0.4.8 (*)
│   │   │   └── tracing v0.1.26 (*)
│   │   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── smithy-http-tower v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   ├── tokio v1.9.0 (*)
│   │   ├── tower v0.4.8 (*)
│   │   └── tracing v0.1.26 (*)
│   ├── aws-sig-auth v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   ├── aws-types v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   ├── bytes v1.0.1
│   ├── http v0.2.4 (*)
│   ├── smithy-http v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   ├── smithy-query v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│   │   ├── itoa v0.4.7
│   │   ├── ryu v1.0.5
│   │   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   │   └── urlencoding v1.3.3
│   ├── smithy-types v0.0.1 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
│   └── smithy-xml v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957)
│       ├── thiserror v1.0.26 (*)
│       └── xmlparser v0.13.3
├── aws-types v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.12-alpha#d61aa957) (*)
├── dotenv v0.15.0
├── http v0.2.4 (*)
├── log v0.4.14 (*)
├── pretty_env_logger v0.4.0
│   ├── env_logger v0.7.1
│   │   ├── atty v0.2.14
│   │   │   └── libc v0.2.98
│   │   ├── humantime v1.3.0
│   │   │   └── quick-error v1.2.3
│   │   ├── log v0.4.14 (*)
│   │   ├── regex v1.5.4 (*)
│   │   └── termcolor v1.1.2
│   └── log v0.4.14 (*)
└── tokio v1.9.0 (*)

Platform

Darwin C02FV07DMD6R 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 22 19:49:55 PDT 2021; root:xnu-6153.141.35~1/RELEASE_X86_64 x86_64

AWS Services

STS

Description

When providing https_proxy et. al environment variables, I expect it to use them, but it tries to connect directly instead:

$ https_proxy=http://localhost:3128 http_proxy=http://localhost:3128 HTTPS_PROXY=http://localhost:3128 HTTP_PROXY=http://localhost:3128 RUST_LOG=debug cargo run
  ...
 INFO  cba_cli2 > Getting token
 INFO  smithy_http_tower::parse_response > send_operation
 INFO  smithy_http_tower::parse_response > send_operation; operation="GetSessionToken"
 INFO  smithy_http_tower::parse_response > send_operation; service="sts"
 DEBUG hyper::client::connect::dns       > resolving host="sts.ap-southeast-2.amazonaws.com"
 DEBUG hyper::client::connect::http      > connecting to 99.82.187.15:443
 ... timeout ...

instead, it tries to connect directly.

I used this code (Just trying to get an sts session_token):

let creds = Credentials::from_keys(access_key, secret_key, None);
let region = Region::from_static("ap-southeast-2");
let config = Config::builder()
    .credentials_provider(creds)
    //.endpoint_resolver(endpoint)
    .region(&region)
    .build();
let client = Client::from_conf(config);
let serial_number = format!("arn:aws:iam::{}:mfa/{}", account_number, user);
log::info!("Getting token");
let token = client
    .get_session_token()
    .set_serial_number(Some(serial_number))
    .set_token_code(Some(mfa_token))
    .set_duration_seconds(Some(43_200))
    .send()
    .await;
log::info!("Token: {:?}", token);

When running with (the http_proxy et. al are already in the env):

RUST_LOG='smithy_http_tower::dispatch=trace,smithy_http::middleware=trace' cargo run

I get:

TRACE smithy_http_tower::dispatch > request=Request { method: POST, uri: https://sts.ap-southeast-2.amazonaws.com/, version: HTTP/1.1, headers: {"content-type": "application/x-www-form-urlencoded", "content-length": "139", "host": "sts.ap-southeast-2.amazonaws.com", "user-agent": "aws-sdk-rust/0.1.0 os/macos lang/rust/1.53.0", "x-amz-user-agent": "aws-sdk-rust/0.1.0 api/sts/0.0.12-alpha os/macos lang/rust/1.53.0", "authorization": Sensitive, "x-amz-date": "20210728T115347Z"}, body: SdkBody { inner: Once(Some(b"Action=GetSessionToken&Version=2011-06-15&DurationSeconds=43200&SerialNumber=arn%3Aaws%3Aiam%3A%3XXXXXXX%3Amfa%2FXXXXXX&TokenCode=a")), retryable: true } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions