Skip to content

boundary_alias_target does not propagate authorize_session_host_id #621

@the-maldridge

Description

@the-maldridge

Terraform Version

$ terraform version
Terraform v1.9.4-dev
on linux_amd64
+ provider registry.terraform.io/hashicorp/boundary v1.1.15
+ provider registry.terraform.io/hashicorp/http v3.4.3

Affected Resource(s)

  • boundary_alias_target

Terraform Configuration Files

resource "boundary_alias_target" "example_ssh" {
  for_each = boundary_host_static.example_all

  name                      = "ssh_alias_${each.key}"
  description               = ""
  scope_id                  = "global"
  value                     = "${each.key}.boundary"
  destination_id            = boundary_target.example_ssh.id
  authorize_session_host_id = each.value.id
}

Debug Output

https://gist.github.com/the-maldridge/c0ef3c88a0a235d2680077315d206128

Panic Output

N/A

Expected Behavior

Terraform should have reconciled the authorize_session_id for each alias in the set.

Actual Behavior

Terraform did not reconcile the host ID and instead the ID was left blank.

Steps to Reproduce

  1. Prepare a boundary environment. My test environment is currently v0.17.0+ent.
  2. Apply terraform to create scopes, host catalogs, host sets, and targets.
  3. Attempt to create aliases that are pinned to specific host IDs.

Important Factoids

My host sources are being dynamically interpolated to terraform via an API call to a remote DCIM provider, but are otherwise static.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions