Skip to content

Commit 8b32dee

Browse files
authored
Revert version 2.1 of the IMDS credentials provider (#4187)
## Motivation and Context We released the feature [in this release](https://github.com/awslabs/aws-sdk-rust/releases/tag/release-2025-06-12), but till the infrastructure is fully ready, we'll temporarily revert the functionality. ## Testing - CI ## Checklist - [x] For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "aws-sdk-rust" in the `applies_to` key. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 71c40d1 commit 8b32dee

File tree

12 files changed

+117
-928
lines changed

12 files changed

+117
-928
lines changed

.changelog/1750789932.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
applies_to:
3+
- aws-sdk-rust
4+
authors:
5+
- ysaito1001
6+
references:
7+
- smithy-rs#4187
8+
breaking: false
9+
new_feature: false
10+
bug_fix: false
11+
---
12+
Temporarily disable fetching account ID from IMDS credentials on EC2.

aws/rust-runtime/aws-config/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aws/rust-runtime/aws-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-config"
3-
version = "1.8.0"
3+
version = "1.8.1"
44
authors = [
55
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
66
"Russell Cohen <rcoh@amazon.com>",

aws/rust-runtime/aws-config/src/imds/client.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -733,17 +733,8 @@ pub(crate) mod test {
733733
.unwrap()
734734
}
735735

736-
pub(crate) fn imds_response_404() -> HttpResponse {
737-
HttpResponse::try_from(
738-
http::Response::builder()
739-
.status(404)
740-
.body(SdkBody::empty())
741-
.unwrap(),
742-
)
743-
.unwrap()
744-
}
745-
746736
pub(crate) fn make_imds_client(http_client: &StaticReplayClient) -> super::Client {
737+
tokio::time::pause();
747738
super::Client::builder()
748739
.configure(
749740
&ProviderConfig::no_configuration()

0 commit comments

Comments
 (0)