Skip to content

feat: Added parameter to attach aws_eip #391

New issue

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

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

Already on GitHub? # to your account

Merged

Conversation

tokarev-artem
Copy link
Contributor

Description

Added parameter to create an attach aws_eip resource to ec2 instance

Motivation and Context

It allows to attach public static IP address which will not be changed after ec2 instance stop/start

Breaking Changes

How Has This Been Tested?

  • [*] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [*] I have tested and validated these changes using one or more of the provided examples/* projects
  • [*] I have executed pre-commit run -a on my pull request

@tokarev-artem tokarev-artem changed the title added parameter to attach aws_eip feat: added parameter to attach aws_eip May 4, 2024
@tokarev-artem tokarev-artem changed the title feat: added parameter to attach aws_eip Feat: added parameter to attach aws_eip May 4, 2024
@tokarev-artem tokarev-artem changed the title Feat: added parameter to attach aws_eip Added parameter to attach aws_eip May 4, 2024
@tokarev-artem tokarev-artem changed the title Added parameter to attach aws_eip feat: Added parameter to attach aws_eip May 4, 2024
Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor comments.

@bryantbiggs WDYT?

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me - although, I am curious why you are using an EIP on a standalone instance in 2024 😅

@tokarev-artem
Copy link
Contributor Author

Hi @antonbabenko is there anything else required to add/change/edit?

@mikecook
Copy link

mikecook commented Jun 5, 2024

looks good to me - although, I am curious why you are using an EIP on a standalone instance in 2024 😅

@bryantbiggs @antonbabenko I'd like this feature for a bastion server for a reporting tool that doesn't need high availability.

@bryantbiggs
Copy link
Member

I'd like this feature for a bastion server for a reporting tool that doesn't need high availability.

And SSM session manager doesn't work for that? (I've approved the PR from my end, more of a pet peeve of this behavior over more modern practices really)

@mikecook
Copy link

mikecook commented Jun 5, 2024

I'd like this feature for a bastion server for a reporting tool that doesn't need high availability.

And SSM session manager doesn't work for that? (I've approved the PR from my end, more of a pet peeve of this behavior over more modern practices really)

I understand. No way to use SSM in this case, to my knowledge. I'm limited by 3rd party configuration options. The reporting tool is 3rd party automation that uses ssh-key to pass through bastion via SSH tunnel. It doesn't do anything on the ec2 instance.

@mikecook
Copy link

@antonbabenko Heads up, this PR is approved but is blocked by your acceptance of your requested changes.

Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Jul 26, 2024
@mikecook
Copy link

@antonbabenko Heads up, this PR is approved but is blocked by your acceptance of your requested changes.

@antonbabenko This is ready. A user has done the work. Please respond to your blocking review feedback that has been addressed. This was marked stale while awaiting your response. It is otherwise ready to merge.

CC: @bryantbiggs

@github-actions github-actions bot removed the stale label Jul 27, 2024
Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Aug 26, 2024
@mikecook
Copy link

@apparentlymart @shawnsavour @bryantbiggs Can anyone unblock this?

@bryantbiggs
Copy link
Member

I cannot remove a review that requests changes - we'll need to wait for Anton to review and update

@antonbabenko antonbabenko merged commit 57cdd5d into terraform-aws-modules:master Aug 26, 2024
8 checks passed
antonbabenko pushed a commit that referenced this pull request Aug 26, 2024
## [5.7.0](v5.6.1...v5.7.0) (2024-08-26)

### Features

* Added parameter to attach aws_eip ([#391](#391)) ([57cdd5d](57cdd5d))
@antonbabenko
Copy link
Member

This PR is included in version 5.7.0 🎉

@carnei-ro
Copy link

i'm facing this problem now:

Error: Value for unconfigurable attribute

  with module.ec2_instance.aws_eip.this,
  on .terraform/modules/ec2_instance/main.tf line 619, in resource "aws_eip" "this":
 619:   domain = var.eip_domain

Can't configure a value for "domain": its value will be decided automatically

@bryantbiggs
Copy link
Member

ugh, the EIP resource brought in a v5.0 argument hashicorp/terraform-provider-aws#31567

Looks like we'll have to take a breaking change

Copy link

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 Sep 28, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants