This guide explains how to delete an EC2 instance that was created manually outside the DuploCloud platform. By default, the DuploCloud admin IAM ( duplomaster ) role only allows termination of EC2 instances that have a TENANT_NAME tag. Prerequisites: You must have Just-In-Time (JIT) admin access to the AWS Console. See: Just-in-Time (JIT) Access in the DuploCloud docs for full details. Steps:
Get JIT Access to AWS Console Use DuploCloud’s CLI to launch an admin session in the AWS console: duplo-jit aws --admin --host "https://.duplocloud.net" --interactive | jq -r .ConsoleUrl | pbcopy Open the copied URL in your browser.
Find the EC2 instance In the AWS Console:
Go to EC2 > Instances
Identify the instance you want to delete
Tag the instance Select the instance Click “Tags” then “Manage Tags” Add the following tag: Key: TENANT_NAME Value: deleteme
Terminate the instance
With the tag in place, select the instance
Click “Instance state” → “Terminate instance”
Confirm Once the TENANT_NAME tag is present, the DuploCloud IAM policy allows deletion.