Terraform and AWS Provider Version
Provider version >5.2.0
aws_connect_instance.connect.id outputs just the ID
But with newer versions it outputs the ARN which is now breaking my TF code references where the ID is used/required.
Affected Resource(s) or Data Source(s)
No response
Expected Behavior
.id should return the ID not the ARN
Actual Behavior
Getting ARN with both .arn and .id
Sample Terraform Configuration
when using any of the instance storage resource types that require the ID as an input we get an error. e.g.
resource "aws_connect_instance_storage_config" "CTR" {
instance_id = aws_connect_instance.connect.id
resource_type = "CONTACT_TRACE_RECORDS"
storage_config {
kinesis_stream_config {
stream_arn = aws_kinesis_stream.contact_trace_record.arn
}
storage_type = "KINESIS_STREAM"
}
}
this results in the error:
Error: reading Connect Instance Storage Config (ARN REDACTED:CONTACT_TRACE_RECORDS): operation error Connect: DescribeInstanceStorageConfig, https response error StatusCode: 400, RequestID: , InvalidRequestException: Invalid input for field InstanceId
instance_id = regex("instance/(.*)", aws_connect_instance.connect.id)[0] will help, but less than ideall
Steps to Reproduce
Run plan/apply with my code and it now wants to change all references of an ID to the ARN.
Terraform and AWS Provider Version
Provider version >5.2.0
aws_connect_instance.connect.id outputs just the ID
But with newer versions it outputs the ARN which is now breaking my TF code references where the ID is used/required.
Affected Resource(s) or Data Source(s)
No response
Expected Behavior
.id should return the ID not the ARN
Actual Behavior
Getting ARN with both .arn and .id
Sample Terraform Configuration
when using any of the instance storage resource types that require the ID as an input we get an error. e.g.
this results in the error:
Error: reading Connect Instance Storage Config (ARN REDACTED:CONTACT_TRACE_RECORDS): operation error Connect: DescribeInstanceStorageConfig, https response error StatusCode: 400, RequestID: , InvalidRequestException: Invalid input for field InstanceIdinstance_id = regex("instance/(.*)", aws_connect_instance.connect.id)[0] will help, but less than ideall
Steps to Reproduce
Run plan/apply with my code and it now wants to change all references of an ID to the ARN.