Skip to content

Commit fb4e977

Browse files
committed
fix(middleware-sdk-ec2): fix presigning of boolean query param
1 parent a3f0754 commit fb4e977

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/middleware-sdk-ec2/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export function copySnapshotPresignedUrlMiddleware(options: PreviouslyResolved):
8585
Action: "CopySnapshot",
8686
Version: version,
8787
DestinationRegion: destinationRegion,
88+
// Encrypted must be string instead of boolean
89+
// because we need to sign the serialized form.
90+
Encrypted: input.Encrypted === true || input.Encrypted === "true" ? "true" : "false",
8891
},
8992
});
9093

0 commit comments

Comments
 (0)