Policy Packs
Enforce AWS EC2 Instances Are Not Older Than 90 Days

Policy Setting: AWS > EC2 > Instance > Active > Age

Policies

This policy setting is dependent on the following policy types:

Source

resource "turbot_policy_setting" "aws_ec2_instance_active_age" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/aws-ec2#/policy/types/instanceActiveAge"
value = "Force inactive if age > 90 days"
}