Use environment-resource, env-resource or er with a Volcengine account to manage a standalone EnvironmentResource for an agentkit or ark target. Create from a JSON or YAML specification and update with a patch. Supply the Ark Environment Key through an environment variable. Read the revision with show before updating. On conflict, reconcile against the latest state. Reuse the client token when retrying the same uncertain request.
Creation provisions cloud resources and may incur charges. For Ark, omitting role_name allows the CLI to select or create a runtime role. Deletion reclaims the resource and retains a deletion record.
For an Ark target, put its environment ID and service base URL in resource.yaml and supply the key in the ANTHROPIC_ENVIRONMENT_KEY environment variable.