grn, in one region.
Prerequisites
- Access to GreenNode IAM with permission to create a service account.
- The GreenNode region that holds your resources: HCM-3 (Ho Chi Minh City) or HAN (Hanoi).
- For vServer work, the Project ID of the project you want agents to use, and your numeric Account ID. GreenNode does not pick a project for you.
- The Admin role in your CloudThinker workspace, which can add and edit connections. See Roles.
Setup
Create a GreenNode service account
- Click Create a Service account.
- Enter a name, such as
cloudthinker. - In the scope picker, select only the scopes for the services you want agents to use. See Required permissions.
- Click Create Service account.
- Copy the Client ID and Client secret.
vServer only: copy your Project ID and Account ID
- In the GreenNode dashboard, open vServer → Limit and copy User Project ID for the project you want agents to use.
- Click your avatar in the upper-right corner and hover over the Currently signed in as card. Copy the numeric Account ID, such as
123456. Do not use the account email. The CloudThinker form calls this value Portal user ID.
Add the connection in CloudThinker
Connection details
The form has these five fields and no others.Required permissions
The service account’s scopes decide everything agents can see and change. CloudThinker adds no access of its own.- Required for the connection test: the scope that lets the service account read its own IAM identity. CloudThinker runs
grn iam whoamito test the connection, and it fails without that scope. - For each service you want agents to inspect, grant its read scopes only.
- Add write scopes for a service only when you want agents to change it, for example starting or stopping vServer instances.
Agent capabilities
Agents use the GreenNode CLI and read its built-in help before each command, so they only run operations the CLI actually offers. The CLI covers 13 service groups:Verify the connection
Example prompts
Troubleshooting
GreenNode requires GRN_ACCESS_KEY_ID and GRN_SECRET_ACCESS_KEY
GreenNode requires GRN_ACCESS_KEY_ID and GRN_SECRET_ACCESS_KEY
GRN_ACCESS_KEY_ID is the Client ID field and GRN_SECRET_ACCESS_KEY is the Client secret field. One of them is empty. Enter both values from the service account, then test again.GreenNode region must be HCM-3 or HAN
GreenNode region must be HCM-3 or HAN
GreenNode portal user ID must be a positive numeric value
GreenNode portal user ID must be a positive numeric value
GreenNode project ID contains unsupported characters
GreenNode project ID contains unsupported characters
GreenNode rejected the credentials or they lack the required read permission
GreenNode rejected the credentials or they lack the required read permission
GreenNode did not answer before the connection test timeout
GreenNode did not answer before the connection test timeout
Connection 'greennode' already exists. Only one instance is allowed.
Connection 'greennode' already exists. Only one instance is allowed.
vServer questions fail but VKS works
vServer questions fail but VKS works
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Credentials stay out of commands: CloudThinker passes the client ID and secret to the CLI as environment values, and agents cannot print them, override the GreenNode endpoint, or turn off certificate checks.
- Rotate the secret: to swap in a new client ID and secret, follow Rotate a credential.
- Revoke at the source: delete the service account in GreenNode IAM to stop all access through this connection at once.