My application's deployed across 2 regions, and calling generate_presigned_post from the two regions returns different response shapes. The first returns:
{
"url": "https://app-1-test-uploads.s3.amazonaws.com/",
"key": "boo",
"fields": {
"key": "boo",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "ASIA.../20240424/eu-west-3/s3/aws4_request",
"x-amz-date": "20240424T131803Z",
"x-amz-security-token": "...",
"policy": "...",
"x-amz-signature": "..."
}
}
The other returns:
{
"url": "https://app-2-test-uploads.s3.amazonaws.com/",
"key": "boo",
"fields": {
"key": "boo",
"AWSAccessKeyId": "ASI...XU",
"x-amz-security-token": "...",
"policy": "...",
"signature": "..."
}
}
Why would these be different? Is there a way to keep them constant? The docs seem to indicate that just about anything can be returned for fields
, and don't explain how this is controlled.