Open pureiboi opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @pureiboi 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to reproduce this, can you supply a sample Terraform configuration that demonstrates the behavior?
are you referring this?
locals {
fleet_name = "fleet-${var.image_name}-${random_string.random.id}"
stack_name = "stack-${var.image_name}-${random_string.random.id}"
fleet_description = "fleet with ${var.fleet_instance_type}"
}
resource "random_string" "random" {
length = 10
special = false
}
resource "aws_appstream_fleet" "fleet_main" {
name = coalesce(var.fleet_name, local.fleet_name)
image_name = var.image_name
image_arn = var.image_arn
instance_type = var.fleet_instance_type
display_name = var.fleet_display_name
description = coalesce(var.fleet_description, local.fleet_description)
disconnect_timeout_in_seconds = var.disconnect_timeout_in_seconds
idle_disconnect_timeout_in_seconds = var.idle_disconnect_timeout_in_seconds
max_user_duration_in_seconds = var.max_user_duration_in_seconds
enable_default_internet_access = var.enable_default_internet_access
fleet_type = var.fleet_type
iam_role_arn = var.iam_role_arn
stream_view = var.stream_view
compute_capacity {
desired_instances = var.desired_instances
}
domain_join_info {
directory_name = var.directory_name
organizational_unit_distinguished_name = var.organizational_unit_distinguished_name
}
vpc_config {
subnet_ids = var.subnet_ids
security_group_ids = var.security_group_ids
}
tags = var.additional_tags
}
resource "aws_appstream_stack" "stack_main" {
name = coalesce(var.stack_name, local.stack_name)
display_name = var.stack_display_name
description = var.stack_description
embed_host_domains = var.embed_host_domains
redirect_url = var.redirect_url
feedback_url = var.feedback_url
access_endpoints {
endpoint_type = var.endpoint_type
vpce_id = var.vpce_id
}
application_settings {
enabled = var.enable_persist_setting
settings_group = var.settings_group
}
storage_connectors {
connector_type = var.connector_type
domains = var.domain
resource_identifier = var.resource_identifier
}
dynamic "user_settings" {
for_each = var.user_settings
content {
action = user_settings.key
permission = user_settings.value.permission
}
}
tags = var.additional_tags
}
resource "aws_appstream_fleet_stack_association" "fleet_stack_association" {
fleet_name = aws_appstream_fleet.fleet_main.name
stack_name = aws_appstream_stack.stack_main.name
depends_on = [aws_appstream_fleet.fleet_main, aws_appstream_stack.stack_main]
}
resource "aws_appstream_user_stack_association" "user_stack_association" {
for_each = var.users
authentication_type = each.value.authentication_type
stack_name = aws_appstream_stack.stack_main.name
send_email_notification = var.send_email_notification
user_name = each.key
depends_on = [aws_appstream_stack.stack_main]
}
Terraform Core Version
1.3.5
AWS Provider Version
4.45.0
Affected Resource(s)
aws_appstream_fleet
Expected Behavior
resource applied successfully or with some handled error
Actual Behavior
Relevant Error/Panic Output Snippet
Terraform Configuration Files
-
Steps to Reproduce
update and change subnet / security group associated to fleet
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None