-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Adding external ENIs #159
Adding external ENIs #159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found errors in this PR ⬇️
/terratest |
/terratest |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamengual thanks for the PR, please see comments.
Also, in the file https://github.com/cloudposse/terraform-aws-ec2-instance/blob/main/test/src/Makefile
we have
## Run tests
test: init
go mod download
go test -v -timeout 60m -run TestExamplesComplete
this will run only one test TestExamplesComplete
and will not run the test that you added.
To run the test that you added, please do the following:
- Add your test here https://github.com/cloudposse/terraform-aws-ec2-instance/blob/main/test/src/examples_complete_test.go as a separate Go function
- Update this
## Run tests
test: init
go mod download
go test -v -timeout 60m -run TestExamplesComplete
to this
## Run tests
test: init
go mod download
go test -v -timeout 60m
This will run all the Go tests.
Thanks you
Co-authored-by: Andriy Knysh <[email protected]>
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
outputs.tf
Outdated
@@ -73,7 +73,7 @@ output "additional_eni_ids" { | |||
|
|||
output "ebs_ids" { | |||
description = "IDs of EBSs" | |||
value = aws_ebs_volume.default[*].id | |||
value = one(aws_ebs_volume.default[*].id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this aws_ebs_volume.default[*].id
was correct since the output name is ebs_ids
and we want a list of EIPs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see comments
/terratest |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
/terratest |
…s-ec2-instance into add_external_eni
/terratest |
I can't see the bridecrew issue but I though they were all addressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @jamengual
what
Add the ability to add external ENIs to the instance
why
For ec2 instances deployments clusters where the IPs are required to be unique and not change it is necessary to create ENIs outside of this module so that the instance termination does not change the ENI and IP attached.
references