sparse-intern-71089
03/26/2019, 12:06 AMcreamy-potato-29402
03/26/2019, 12:07 AMcluster.instanceRole.apply(ir => JSON.stringify(...))creamy-potato-29402
03/26/2019, 12:07 AMassumeRolePolicy goes.creamy-potato-29402
03/26/2019, 12:08 AMInput in there.creamy-potato-29402
03/26/2019, 12:08 AMdamp-book-35965
03/26/2019, 12:10 AMdamp-book-35965
03/26/2019, 12:11 AMcreamy-potato-29402
03/26/2019, 12:11 AMcreamy-potato-29402
03/26/2019, 12:12 AMassumeRolePolicy in the AWS API is actually type string right? So new aws.iam.Role actually converts the JSON you provide into`string`. It does this by calling toString, I believe.creamy-potato-29402
03/26/2019, 12:14 AMcreamy-potato-29402
03/26/2019, 12:15 AMcreamy-potato-29402
03/26/2019, 12:15 AMdamp-book-35965
03/26/2019, 12:16 AMcreamy-potato-29402
03/26/2019, 12:16 AMcluster.instanceRole doesn’t work inside JSON.stringify is actually because Output is basically a promise.creamy-potato-29402
03/26/2019, 12:16 AMJSON.stringfy has to be run inside the .apply —damp-book-35965
03/26/2019, 12:17 AMcreamy-potato-29402
03/26/2019, 12:17 AMdamp-book-35965
03/26/2019, 12:18 AMcreamy-potato-29402
03/26/2019, 12:19 AMcreamy-potato-29402
03/26/2019, 12:19 AMdamp-book-35965
03/26/2019, 12:19 AM