AppStream fleet max user duration should be set to less than 10 hours¶
Ensure user maximum session duration is no longer than 10 hours. A session duration exceeding 10 hours is unnecessary and may offer malicious users an extended period of unauthorized usage beyond acceptable limits.
How to fix¶
Attribute max_user_duration_in_seconds of aws_appstream_fleet must be non-empty.
Implementation options¶
Choose the option that matches how you manage Terraform. All options satisfy this control.
Option 1: Terraform AWS provider resources¶
If you manage resources directly, configure the relevant Terraform AWS provider resources to meet this control. See docs for the resources involved: aws_appstream_fleet.
resource "aws_appstream_fleet" "this" {
compute_capacity {
desired_instances = 1
}
idle_disconnect_timeout_in_seconds = 600
instance_type = "stream.standard.small"
name = "pofix-example-fleet"
}
Which option should I choose?
- Compliance.tf module (recommended): controls enforced by default and mapped to frameworks.
- Open source module (
terraform-aws-modules): compatible by design with compliance.tf. Same variable names for an easy, low-change migration path when you are ready. - Terraform AWS provider resources: manage Terraform resources directly.
Tool mappings¶
Use these identifiers to cross-reference this control across tools, reports, and evidence.
Compliance.tf (CTF) Control:
appstream_fleet_max_user_duration_36000_secondsPowerpipe Control:
aws_compliance.control.appstream_fleet_max_user_duration_36000_seconds