createAwsAssumeRoleProvider

createAwsAssumeRoleProvider( args: CreateAwsAssumeRoleProviderArgs, ): Provider

Creates an AWS provider that assumes a JobCloud deployment role.

Remarks

Use this helper instead of directly constructing aws.Provider when consumer infrastructure needs a provider scoped to another JobCloud account or an external role. The returned value is an aws.Provider and can be passed directly as provider in component or resource options.

Parameters

Returns

  • Provider

Example

CODE
import { createAwsAssumeRoleProvider } from '@jobcloud/pulumi-helpers';

const deploymentProvider = createAwsAssumeRoleProvider({
  identity: 'externalDeployment',
  roleArn: 'arn:aws:iam::000000000000:role/pulumiDeployment',
  region: 'eu-west-1',
});