terraform-aws-wireguard icon indicating copy to clipboard operation
terraform-aws-wireguard copied to clipboard

Get private key in user data

Open jordan-seemplicity opened this issue 3 years ago • 0 comments

  • Update AMI to use latest Ubuntu LTS (20.04)
  • Get SSM parameter in user-data script instead of using the Terraform data source. This avoids the security problem of storing the private key in TF state as plaintext. See note in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter#example-usage

jordan-seemplicity avatar Dec 24 '21 06:12 jordan-seemplicity