diff --git a/packages/ec2-metadata-service/package.json b/packages/ec2-metadata-service/package.json index 988001c713a05..3b4f4cf398e85 100644 --- a/packages/ec2-metadata-service/package.json +++ b/packages/ec2-metadata-service/package.json @@ -21,7 +21,7 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@aws-sdk/protocol-http": "*", + "@smithy/protocol-http": "^3.3.0", "@aws-sdk/types": "*", "@smithy/node-config-provider": "^2.3.0", "@smithy/node-http-handler": "^2.5.0", diff --git a/packages/ec2-metadata-service/src/MetadataService.ts b/packages/ec2-metadata-service/src/MetadataService.ts index 5bb2035cdad8f..8a7b657c35dad 100644 --- a/packages/ec2-metadata-service/src/MetadataService.ts +++ b/packages/ec2-metadata-service/src/MetadataService.ts @@ -1,7 +1,7 @@ -import { HttpRequest } from "@aws-sdk/protocol-http"; import { HttpHandlerOptions } from "@aws-sdk/types"; import { loadConfig } from "@smithy/node-config-provider"; import { NodeHttpHandler } from "@smithy/node-http-handler"; +import { HttpRequest } from "@smithy/protocol-http"; import { sdkStreamMixin } from "@smithy/util-stream"; import { ENDPOINT_SELECTORS, IMDSv1_DISABLED_SELECTORS } from "./ConfigLoaders";