Set

Update settings for an existing EC2 instance

tapit set ec2 name=instance-name [size|open_ports|allowed_ip_ranges|storage|disabled|delete_protection]='...'

Required

  • name

Parameters

  • name: Name of the EC2 instance to update (required)
  • size: EC2 instance type (default: t3.micro)
  • open_ports: Ports to open (e.g., ‘22,80,443’)
  • allowed_ip_ranges: IP address, CIDR ranges, or special values app/vpc/all, that are allowed to access the instance, separated by commas
  • storage: Root volume size in GB (default: 10)
  • disabled: Stop (true) or start (false) the EC2 instance
  • delete_protection: Enable (true) delete protection for the instance (cannot be disabled once enabled)