Skip to content

Conversation

@troyready
Copy link

This allows SSH authorized_key files to be populated based on an existing remote server's public key.

This still needs some DRY editing and test updates, but opening as a PR early to get my proof of concept code in place for some feedback on attribute naming, etc, first.

This allows the data source to be used like:

data "tls_public_key" "codecommit" {
  ssh_server_uri = "git-codecommit.${var.region}.amazonaws.com"
}

...

  data = {
    known_hosts = "git-codecommit.${var.region}.amazonaws.com ${data.tls_public_key.codecommit.public_key_openssh}"
  }

...

This allows SSH authorized_key files to be populated based on an
existing remote server's public key.
@ghost ghost added the size/M label Jan 8, 2021
Base automatically changed from master to main February 1, 2021 17:28
troyready added a commit to troyready/terraform-provider-tls that referenced this pull request Nov 14, 2021
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants