polite-iron-99873
03/10/2020, 7:46 PMsome_other_resource = foo.resource("foores", s3_bucket_id = bucket1.id, ...)
...
bucket1 = s3.bucket("bucket1", ...args)
This would be likened to Interpolation in terraform. Or tropospheres ability to use Ref('<resource_name>').faint-table-42725
03/10/2020, 7:54 PMbucket1 = s3.bucket("bucket1", ...args)
...
some_other_resource = foo.resource("foores", s3_bucket_id = bucket1.id, ...)
polite-iron-99873
03/10/2020, 8:08 PMsome_other_resource = foo.resource("foores", s3_bucket_id = bucket1.id, ...)
...
bucket1 = s3.bucket("bucket1", ...args)
faint-table-42725
03/10/2020, 8:57 PMpolite-iron-99873
03/10/2020, 9:11 PMUnboundLocalError: local variable 'bucket1' referenced before assignment
error: an unhandled error occurred: Program exited with non-zero exit code: 1
some_other_resource = foo.resource("foores", s3_bucket_id = "bucketResourceName".id, ...)
...
bucket1 = s3.bucket("bucketResourceName", ...args)
faint-table-42725
03/10/2020, 9:54 PMbucket1 = s3.bucket("bucketResourceName", ...args)
...
some_other_resource = foo.resource("foores", s3_bucket_id = "bucketResourceName".id, ...)
polite-iron-99873
03/11/2020, 12:33 PMfaint-table-42725
03/11/2020, 5:20 PM