We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f0754 commit fa961c2Copy full SHA for fa961c2
packages/middleware-sdk-ec2/src/index.ts
@@ -81,7 +81,12 @@ export function copySnapshotPresignedUrlMiddleware(options: PreviouslyResolved):
81
host: resolvedEndpoint.hostname,
82
},
83
query: {
84
- ...input,
+ // Values must be string instead of e.g. boolean
85
+ // because we need to sign the serialized form.
86
+ ...Object.entries(input).reduce((acc, [k, v]) => {
87
+ acc[k] = String(v ?? "");
88
+ return acc;
89
+ }, {} as Record<string, string>),
90
Action: "CopySnapshot",
91
Version: version,
92
DestinationRegion: destinationRegion,
0 commit comments