Subject: | Usage of GET instead of POST limits UserData to 8kb |
The parameter UserData in run_instances may contain up to 16kb according to the EC2 spec.
However, if we send the request through GET, we run into a 8kb limit for the query string.
Thus getting a fatal server error on run_instances.
I easily fixed this by switching to HTTP POST.
See around line 156 of EC2.pm:
1) remove the line:
$uri->query_form(\%params);
- replace the line:
my $res = $ua->get($ur);
with:
my $res = $ua->post($ur, \%params);
That's all.