Attach Policy

iam.attach_user_policy
ActionAmazon Web Servicesconnection required

Calls the AWS iam API (SigV4).

Attach a managed policy to a user.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
AWS IAM
Secret shape
{"access_key_id", "secret_access_key"}
Config it needs
region
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides the connection).
stringNo———
user_name
Name of the user to act on, from iam.list_users.
stringYes———
policy_arn
Managed policy ARN.
stringYes———

Output

One shape.

result

FieldTypeExample
ok
boolean—
user_name
string—
policy_arn
string—
{
  "ok": false,
  "policy_arn": "",
  "user_name": ""
}

Related AWS IAM nodes

See Attach Policy run in a workflow.

In a technical demo we add the AWS IAM connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.