Handling Failed `release` in `acquireUseRelease` for AWS SDK Resource Management
Is there a pattern or mechanism for handling a failed
So lets says accounts 1/2/3 are on fibers 1/2/3 respectively, and account#2 is the one that fails to detach. I have a log of the successful
So I figure theres probably 3 possibilities here. 1: My only option is to manually check my logs for this unlikely occurrence. 2: There is a pattern or tool to solve this. 3: Im just doing this all wrong and shouldn't be relying on acquireUseRelease.
release in acquireUseRelease? I am trying to use the aws-sdk on to update resources in multiple accounts. This means getting the creds for each account, attaching a permissions policy, and then detaching the permissions policy when Im done. Seems like a pretty straightforward acquireUseRelease situation. But I'd like more visibility beyond an error log if something fails in the detach permissions part, which happens in the release.So lets says accounts 1/2/3 are on fibers 1/2/3 respectively, and account#2 is the one that fails to detach. I have a log of the successful
doStuff on fiber 2. Then when it goes to detach ill get the logged error that it failed, but the rest of the pipe got the successful results from doStuff, which makes sense. So I figure theres probably 3 possibilities here. 1: My only option is to manually check my logs for this unlikely occurrence. 2: There is a pattern or tool to solve this. 3: Im just doing this all wrong and shouldn't be relying on acquireUseRelease.
