File provisioner ssh can't read private_key from parameter store #1628
Labels
bug
Addresses a defect in current functionality.
service/ssm
Issues and PRs that pertain to the ssm service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
upstream-terraform
Addresses functionality related to the Terraform core binary.
Hi,
I'm trying to create an
aws_instance
with a few file provisioners. These provisioners have the following form:When trying to create (and provision) the instance, terraform throws the following error:
Where it says <ACTUAL_PRIVATE_KEY>, I can see the contents of my private key that reside in the parameter store, so it seems terraform is able to retrieve it. When I put the private key in a file and use the built-in
file
method to refer to it, everything works fine.Terraform Version
v0.10.3
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The file provisioner should have been able to ssh into the machine
Actual Behavior
Terraform could not read the private key and throws the error:
The text was updated successfully, but these errors were encountered: