terraform-aws-wireguard
terraform-aws-wireguard copied to clipboard
Get private key in user data
- 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