Skip to main content

πŸ›‘οΈ AWS WorkSpace is unused🟒

Logic​

Description​

Open File

Description​

This policy identifies AWS WorkSpaces that are considered unused. A WorkSpace is considered unused if it remains in an AVAILABLE or STOPPED state without any user connections for 30 days or more.

Rationale​

Amazon WorkSpaces incur costs whether they are actively used or stopped, which still generates a stopped-instance fee. Maintaining idle WorkSpaces increases expenses. In addition, unused but running WorkSpaces may not be regularly patched or monitored, creating potential security risks and expanding the attack surface.

Audit​

This policy flags an AWS WorkSpaces as INCOMPLIANT if it is in either the AVAILABLE or STOPPED State and the Last Known User Connection Timestamp is empty or older than 30 days.

Remediation​

Open File

Remediation​

Terminate unused AWS WorkSpaces to reduce costs and minimize security risks. Before proceeding, ensure that any important data is backed up, as termination is irreversible.

Terminate a WorkSpace​

Warning​

Terminating a WorkSpace is a permanent action. All associated user data will be destroyed and cannot be recovered. Ensure user data is backed up before termination. For help with backing up user data, contact AWS Support.

From AWS CLI​
aws workspaces terminate-workspaces \
--terminate-workspace-requests {{workspace-ids}}

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Waste Reduction28no data