-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add client_ip_preservation_enabled to global accelerator #11476
Conversation
Is there anything holding up this PR? |
@zsiddique Thanks for the contribution and apologies for the delay in getting to review.
If you don't have cycles to make the changes please reply and I can take over your commits and enhance. |
type = "list" | ||
} | ||
|
||
data "aws_availability_zones" "available" {} |
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 rebase or merge to the current HEAD
and change to
data "aws_availability_zones" "available" {
state = "available"
filter {
name = "opt-in-status"
values = ["opt-in-not-required"]
}
}
otherwise the acceptance tests may fail with attempting to use any enabled Local Zone in us-west-2
.
@@ -87,6 +87,10 @@ func resourceAwsGlobalAcceleratorEndpointGroup() *schema.Resource { | |||
Type: schema.TypeInt, | |||
Optional: true, | |||
}, | |||
"client_ip_preservation_enabled": { | |||
Type: schema.TypeBool, | |||
Optional: true, |
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.
I think we need to add Computed: true,
here as the flag is implicitly enabled for internal ALB or instances: https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.how-to-enable-preservation.html.
@ewbankkit your welcome to try and make those improvements, i will make best effort as well but if you have more freecycle you are welcome to make the fixes. |
@zsiddique Thanks for responding. I will include your commits in any PR that replaces this one so that you receive attribution. |
@zsiddique I have pulled over your commits into #14486 and am closing this PR. Thanks for your work on this. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #9940
Release note for CHANGELOG:
Output from acceptance testing:
Ok, a little bit about acceptance testing. The current acceptance testing for the global accelerator endpoint only checks if the endpoint configuration exists but not the values. I expanded the test to be more detailed but hit a major roadblock. It seems to check client ip I needed to setup a VPC, ALBs and etc. No problem, but, if its set to true it seems tearing down the VPC causes AWS to throw error
Error: errors during apply: Error deleting VPC: DependencyViolation: The vpc 'vpc-XXXX' has dependencies and cannot be deleted
. I cant for the life of me figure out why or how does it tie back to my changes. Some googling seems to show in general VPC deletion can be flaky and its possible AWS has a race of some kind as deleting the VPC from AWSs UI works fine. Open to ideas on how to fix this, or is it fine testing that setting the value (in this case false) is fine.