Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to set idle_disconnect_timeout_in_seconds to 0 (disable) #24014

Closed
murataksoy83 opened this issue Apr 4, 2022 · 5 comments · Fixed by #38274
Closed

Not able to set idle_disconnect_timeout_in_seconds to 0 (disable) #24014

murataksoy83 opened this issue Apr 4, 2022 · 5 comments · Fixed by #38274
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/appstream Issues and PRs that pertain to the appstream service.
Milestone

Comments

@murataksoy83
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Affected Resource(s)

aws_appstream_fleet

Terraform Configuration Files

resource "aws_appstream_fleet" "test_fleet" {
  name = "test-fleet"

  compute_capacity {
    desired_instances = 1
  }

  description                        = "test fleet"
  idle_disconnect_timeout_in_seconds = 0
  display_name                       = "test-fleet"
  enable_default_internet_access     = false
  fleet_type                         = "ON_DEMAND"
  image_name                         = "Amazon-AppStream2-Sample-Image-02-04-2019"
  instance_type                      = "stream.standard.large"
  max_user_duration_in_seconds       = 600

  vpc_config {
    subnet_ids = ["subnet-06e9b13400c225127"]
  }

  tags = {
    TagName = "tag-value"
  }
}

Debug Output

Error: expected idle_disconnect_timeout_in_seconds to be in the range (60 - 3600), got 0
on appstream/appstream.tf line xx, in resource "aws_appstream_fleet" "appstream_fleet":
58: idle_disconnect_timeout_in_seconds = 0

Expected Behavior

It should allow to set the value to 0 as this disables the idle timeout.

Actual Behavior

It expects a value within the range 60 - 3600. So it is not possible to disable the idle timeout

Steps to Reproduce

  1. Try the create aws_appstream_fleet with idle_disconnect_timeout_in_seconds set to 0

Important Factoids

References

AWS documentation:
https://docs.aws.amazon.com/appstream2/latest/developerguide/set-up-stacks-fleets.html#set-up-stacks-fleets-create

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/appstream Issues and PRs that pertain to the appstream service. labels Apr 4, 2022
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 4, 2022
@swoeste
Copy link

swoeste commented Apr 13, 2023

Hi,

we were facing the same problem since we recently moved from arnvid/appstream to the official AWS terraform provider, but today we found some sort of a workaround to disable the idle_disconnect_timeout_in_seconds, we just need to set it to null.

So in our terraform module we have something like this now:

resource "aws_appstream_fleet" "this" {

  idle_disconnect_timeout_in_seconds = var.fleet_idle_disconnect_timeout == 0 ? null : var.fleet_idle_disconnect_timeout
 
}

kind regards
Sebastian

ewbankkit added a commit to Jgeissler14/terraform-provider-aws that referenced this issue Jan 10, 2024
@ewbankkit
Copy link
Contributor

Relates #34453.
Relates #35173.

Copy link

github-actions bot commented Jul 8, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.58.0 milestone Jul 8, 2024
Copy link

This functionality has been released in v5.58.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/appstream Issues and PRs that pertain to the appstream service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants