Skip to content

Instantly share code, notes, and snippets.

@lfn3
Created August 4, 2016 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfn3/d3231da6550e61e1cb6e7fa66311cd1e to your computer and use it in GitHub Desktop.
Save lfn3/d3231da6550e61e1cb6e7fa66311cd1e to your computer and use it in GitHub Desktop.
Error in eulalie contains a little much.
{:response {:headers {:content-type "application/json",
:date "Thu, 04 Aug 2016 08:28:17 GMT",
:x-amzn-errortype "ValidationException",
:x-amzn-requestid "64b16f71-5a1d-11e6-8833-23d2071f4882",
:content-length "237",
:connection "Close"},
:status 400,
:body "{\"message\":\"1 validation error detected: Value '23d2071f4882/bad-arn'
at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern:
arn:aws:iam::\\\\d{12}:role/?[a-zA-Z_0-9+=,.@\\\\-_/]+\"}",
:request {:service :lambda,
:creds {:access-key "...", :secret-key "..."},
:service-name "lambda",
:method :post,
:headers {:content-length 164},
:max-retries 3,
:target :create-function,
:body "{\"Role\":\"23d2071f4882/bad-arn\",
\"Runtime\":\"nodejs4.3\",
\"Code\":{\"ZipFile\":\"abcd\"},
\"Handler\":\"nodewheel.handler\",
\"FunctionName\":\"a-function\"}",
:endpoint #cemerick.url.URL{:protocol "https",
:username nil,
:password nil,
:host "lambda.us-east-1.amazonaws.com",
:port 443,
:path "/2015-03-31/functions",
:query nil,
:anchor nil}}},
:request {:service :lambda,
:date #object[Object 1470299295394],
:creds {:access-key "...", :secret-key "..."},
:service-name "lambda",
:method :post,
:headers {:content-length 164,
:x-amz-date "20160804T082815Z",
:host "lambda.us-east-1.amazonaws.com",
:authorization "...",
:x-amz-content-sha256 "..."},
:max-retries 3,
:target :create-function,
:body "{\"Role\":\"23d2071f4882/bad-arn\",
\"Runtime\":\"nodejs4.3\",
\"Code\":{\"ZipFile\":\"abcd\"},
\"Handler\":\"nodewheel.handler\",
\"FunctionName\":\"a-function\"}",
:endpoint #cemerick.url.URL{:protocol "https",
:username nil,
:password nil,
:host "lambda.us-east-1.amazonaws.com",
:port 443,
:path "/2015-03-31/functions",
:query nil,
:anchor nil}},
:retries 0,
:error {:type :validation-exception,
:message "1 validation error detected: Value '23d2071f4882/bad-arn'
at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern:
arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment