Skip to content

Amazon connect instance ID now outputting ARN #43356

Description

@jfarchergamma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/connectIssues and PRs that pertain to the connect service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions