You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that i am unable to use aws_launch_configuration (aka ALC) with an imported aws keypair and i have no issue importing the key only using it with ALC.
1) Successful import
terraform import aws_key_pair.imported_key imported_key
aws_key_pair.imported_key: Importing from ID "imported_key"...
aws_key_pair.imported_key: Import complete!
Imported aws_key_pair (ID: imported_key)
aws_key_pair.imported_key: Refreshing state... (ID: imported_key)
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
2) It then fails on terraform plan
terraform plan
Error: aws_key_pair.imported_key: "public_key": required field is not set
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Affected Resource(s)
aws 2.8.0
terraform 0.11.13
Terraform Configuration Files
Have excluded the rest of the terraform manifest, only included the parts used.
Hi folks 👋 Sorry for this frustrating issue. We are tracking this problem in the earlier #1092, which you can follow for updates. As a workaround for imported key pairs you can setup your configuration similar to the below:
Hi
It appears that i am unable to use aws_launch_configuration (aka ALC) with an imported aws keypair and i have no issue importing the key only using it with ALC.
1) Successful import
2) It then fails on terraform plan
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Have excluded the rest of the terraform manifest, only included the parts used.
Debug Output
Panic Output
Expected Behavior
I expect to be able to use the import keypair
When importing, terraform asks to define the keypair meaning:
Actual Behavior
I complaints due to the lack of public key.
Steps to Reproduce
terraform init
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: