Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for the list of private_ips #103

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

antonbabenko
Copy link
Member

Fixes #102

@antonbabenko antonbabenko merged commit 9d31a73 into master Jun 14, 2019
@antonbabenko antonbabenko deleted the added-list-of-privateips branch June 14, 2019 19:11
@dermyrddin
Copy link

But it seem to break single node creation without specifying private_ip:

Error: Error in function call

  on .terraform/modules/mongo_1/terraform-aws-modules-terraform-aws-ec2-instance-f03dffe/main.tf line 27, in resource "aws_instance" "this":
  27:   private_ip = element(
  28:
  29:
  30:
    |----------------
    | count.index is 0
    | var.private_ip is ""
    | var.private_ips is empty list of string

Call to function "element" failed: cannot use element function with an empty
list.

antonbabenko added a commit that referenced this pull request Jun 15, 2019
@antonbabenko
Copy link
Member Author

My bad, I was too fast, fixed in bc0a43c which is part of v2.3.0.

Sebor pushed a commit to Sebor/terraform-aws-ec2-instance that referenced this pull request Aug 6, 2020
Sebor pushed a commit to Sebor/terraform-aws-ec2-instance that referenced this pull request Aug 6, 2020
@github-actions
Copy link

github-actions bot commented Nov 9, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to assign private_ip to instance (multiple)
2 participants