Skip to content

Connect AWS ​

Connect an AWS account so an agent can use the AWS CLI for the work you delegate. Pulumi ESC supplies temporary credentials for the IAM role you choose when the task runs.

Choose the AWS role ​

Choose an IAM role with permissions for the agent's work. For example, checking versioning on a known S3 bucket in your account requires s3:GetBucketVersioning on that bucket. It doesn't require access to its objects or permission to change versioning.

If you reuse a deployment role, check for permissions the agent's assignment does not require. See Choose integration permissions to choose which permissions to grant.

Prepare an ESC environment ​

Use an ESC environment that supplies credentials for the role, or configure OpenID Connect for AWS to create one.

Use the AWS login provider's OIDC configuration to expose temporary credentials as AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN. Set AWS_REGION to the region you want the agent to use.

Grant the agent's Pulumi Cloud role permission to open the environment, so ESC can supply credentials to the AWS CLI.

Connect the environment ​

With permission to manage organization integrations (org_integrations:update):

For example, name the connection production-aws-investigation and include the AWS account ID in its notes.

Use the connection ​

Include the connection name, AWS account, region, and target resources in the assignment.

Content from the official Pulumi documentation (github.com/pulumi/docs).