Update AWS account
Patches the connected AWS account record. Most of the time you'll only set
roleArn (and optionally stackId) once after CloudFormation finishes
deploying the Buckt IAM role. After updating, call
Validate to flip the account to active.
Path parameters
| Name | Type | Default | Description |
|---|---|---|---|
| idrequired | string | — | The AWS account record ID. |
Body parameters
All fields are optional. Send only the ones you want to change.
| Name | Type | Default | Description |
|---|---|---|---|
| roleArn | string | — | IAM role ARN Buckt assumes to access your AWS resources. Must match `arn:aws:iam::<account-id>:role/<role-name>`. |
| stackId | string | — | CloudFormation stack ARN you used to deploy the IAM role. Stored for reference. |
| label | string | — | Update the human-readable label. Max 100 characters. |
Example request
import { Buckt } from "@buckt/sdk";
const client = new Buckt({ apiKey: process.env.BUCKT_API_KEY });
await client.awsAccounts.update("acc_01J5AAAAAAAAAAAAAAAAAAAAAA", {
roleArn: "arn:aws:iam::123456789012:role/BucktAccess",
stackId:
"arn:aws:cloudformation:us-east-1:123456789012:stack/buckt-byoa/abc123",
});Responses
{
"data": {
"object": "aws_account",
"id": "acc_01J5AAAAAAAAAAAAAAAAAAAAAA"
},
"error": null,
"meta": null
}