hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Bug]: appstream_stack#user_settings - Error on AUTO_TIME_ZONE_REDIRECTION #40362

Open thebriankeys opened 3 days ago

thebriankeys commented 3 days ago

Terraform Core Version

1.5.7

AWS Provider Version

5.30.0,5.78.0

Affected Resource(s)

aws_appstream_stack

Expected Behavior

Configure AUTO_TIME_ZONE_REDIRECTION user setting action within resource "aws_appstream_stack" "stack"

Actual Behavior

On terraform plan/apply the following is seen: Error: expected user_settings.0.action to be one of ["CLIPBOARD_COPY_FROM_LOCAL_DEVICE" "CLIPBOARD_COPY_TO_LOCAL_DEVICE" "FILE_UPLOAD" "FILE_DOWNLOAD" "PRINTING_TO_LOCAL_DEVICE" "DOMAIN_PASSWORD_SIGNIN" "DOMAIN_SMART_CARD_SIGNIN"], got AUTO_TIME_ZONE_REDIRECTION

Relevant Error/Panic Output Snippet

The issue is that although this is a valid option for aws - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html

...it is not yet supported by the hashicorp terraform aws provider - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appstream_stack#user_settings

Terraform Configuration Files

`resource "aws_appstream_stack" "stack" { name = "example-stack" description = "example stack" display_name = "example stack" feedback_url = "" redirect_url = ""

storage_connectors { connector_type = "HOMEFOLDERS" }

user_settings { action = "AUTO_TIME_ZONE_REDIRECTION" permission = "DISABLED" } user_settings { action = "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" permission = "ENABLED" } user_settings { action = "CLIPBOARD_COPY_TO_LOCAL_DEVICE" permission = "ENABLED" } user_settings { action = "DOMAIN_PASSWORD_SIGNIN" permission = "ENABLED" } user_settings { action = "DOMAIN_SMART_CARD_SIGNIN" permission = "DISABLED" } user_settings { action = "FILE_DOWNLOAD" permission = "ENABLED" } user_settings { action = "FILE_UPLOAD" permission = "ENABLED" } user_settings { action = "PRINTING_TO_LOCAL_DEVICE" permission = "ENABLED" } application_settings { enabled = false } }`

Steps to Reproduce

Define terraform iac for an AWS AppStream Stack were the user setting 'AUTO_TIME_ZONE_REDIRECTION' is configured in terraformcode.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 3 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue