freezing-van-87649
10/14/2021, 1:40 PMgreat-sunset-355
10/14/2021, 2:11 PMVCRpy
would worklittle-cartoon-10569
10/14/2021, 6:43 PMfreezing-van-87649
10/14/2021, 7:23 PMimport pulumi
class MyMocks(pulumi.runtime.Mocks):
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
return [args.name + '_id', args.inputs]
def call(self, args: pulumi.runtime.MockCallArgs):
return {}
pulumi.runtime.set_mocks(MyMocks())
VCRpy
would help withlittle-cartoon-10569
10/14/2021, 7:51 PMcall()
method.new PolicyDocument
. Ignore all that, sorry, I've completely mislead you.PolicyDocument
in call()
. Or maybe even throw an error and tell the user to stop using getPolicyDocument()
since it's never necessary 🙂freezing-van-87649
10/14/2021, 8:13 PMGetPolicyDocumentResult
little-cartoon-10569
10/14/2021, 8:43 PMgetPolicyDocument()
inline, using some javacript magic. I've been looking for the code, since it would be feasible to duplicate it in the call()
function and essentially re-implement getPolicyDocument()
locally, skipping the AWS SDK.freezing-van-87649
10/14/2021, 9:09 PMlittle-cartoon-10569
10/14/2021, 9:21 PMfreezing-van-87649
10/14/2021, 9:30 PMX
, policy should be read only.
For condition Y
, policy should be read/write.