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
output "public-dns" {
value = ["${aws_spot_instance_request.aws_dl_custom_spot.*.public_dns}"]
}
output "ssh-cmd" {
value = ["${format("ssh -i %s%s.pem ubuntu@%s", var.ssh-key-dir, aws_spot_instance_request.aws_dl_custom_spot.*.key_name, aws_spot_instance_request.aws_dl_custom_spot.*.public_dns)}"]
}
Results in the following error when executing the command terraform apply:
* output.public-ip: Resource 'aws_spot_instance_request.aws_dl_custom_spot' does not have attribute 'public_dns'for variable 'aws_spot_instance_request.aws_dl_custom_spot.*.public_dns'* output.ssh-cmd: Resource 'aws_spot_instance_request.aws_dl_custom_spot' does not have attribute 'public_dns'for variable
I had the same issue. I added wait_for_fulfillment = true to the resource "aws_spot_instance_request" "aws_dl_custom_spot" section and it seems to have fixed it. Can you try adding that and let us know if it fixed it for you?
Adding the snippet below to the
outputs.tf
file:Results in the following error when executing the command
terraform apply
:This issue is linked to hashicorp/terraform-provider-aws#4313.
The text was updated successfully, but these errors were encountered: