Presigned S3 upload url expires before expiration time

Issue I have a lambda to generate pre-signed upload URL. Here is the code I use to get URL: urlExpiresAt := time.Duration(10) * time.Second s3Session := s3.New(awsSession) request, _ := s3Session.PutObjectRequest(&s3.PutObjectInput{ Bucket: aws.String(awssettings.FileStorageBucketName), Key: aws.String(fmt.Sprintf("%s/%s", *cognitoUser.Username, filename)), ContentType: aws.String(uploadContentType), })

Continue reading