message: fix(nextjs-component): image lambda role should also use inputs.roleArn if it exists
diff: @@ -523,7 +523,11 @@ class NextjsComponent extends Component {
  : "Image Lambda@Edge for Next CloudFront distribution",
  handler: inputs.handler || "index.handler",
  code: join(nextConfigPath, IMAGE_LAMBDA_CODE_DIR),
  - role: {
  + role: inputs.roleArn
  + ? {
  + arn: inputs.roleArn
  + }
  + : {
  service: ["lambda.amazonaws.com", "edgelambda.amazonaws.com"],
  policy
  },
  