Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support executing a function across all targets of a binding #6

Open
OlafConijn opened this issue Jan 9, 2021 · 0 comments
Open

Support executing a function across all targets of a binding #6

OlafConijn opened this issue Jan 9, 2021 · 0 comments

Comments

@OlafConijn
Copy link
Member

would be great to support executing a typescript function across all targets of a binding:

const moreComplexBinding: IOrganizationBinding = { 
  Region: ['us-east-1', 'us-west-1'], 
  IncludeMasterAccount: true, 
  Account: '*', 
  ExcludeAccount: [ { Ref: 'AccountB' } ] 
};

await orgClient.performFunction( async credentials => {
 //credentials can be used to
 const s3client = new S3({credentials}); // <-- create an s3 client in all accounts
});

might make sense to support setting concurrent executions & failure tolerance. much like the cli alows you.

concrete use-cases include any out of band stuff like ad hoc checking for failed stacks or tweaking resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant