Skip to content

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

Open
@OlafConijn

Description

@OlafConijn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions