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

b/aws_route53_resolver_endpoint #25708

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

rnsc
Copy link
Contributor

@rnsc rnsc commented Jul 6, 2022

Adding the IP address to the hash to avoid deduplication when using multiple IPs in the same subnet.

The following code:

resource "aws_route53_resolver_endpoint" "test" {
  name      = "r53-resolver-inbound"
  direction = "INBOUND"

  security_group_ids = ["sg-12345"]

  ip_address {
    subnet_id = "subnet-12345"
    ip        = "172.31.64.13"
  }

  ip_address {
    subnet_id = "subnet-12345"
    ip        = "172.31.64.14"
  }

  tags = {
    Name = "route53resolver"
  }
}

Without the fix:

  # aws_route53_resolver_endpoint.test will be created
  + resource "aws_route53_resolver_endpoint" "test" {
      + arn                = (known after apply)
      + direction          = "INBOUND"
      + host_vpc_id        = (known after apply)
      + id                 = (known after apply)
      + name               = "r53-resolver-inbound"
      + security_group_ids = [
          + "sg-12345",
        ]
      + tags               = {
          + "Name" = "route53resolver"
        }
      + tags_all           = {
          + "Name" = "route53resolver"
        }

      + ip_address {
          + ip        = "172.31.64.14"
          + ip_id     = (known after apply)
          + subnet_id = "subnet-12345"
        }
    }

With the fix:

  # aws_route53_resolver_endpoint.test will be created
  + resource "aws_route53_resolver_endpoint" "test" {
      + arn                = (known after apply)
      + direction          = "INBOUND"
      + host_vpc_id        = (known after apply)
      + id                 = (known after apply)
      + name               = "r53-resolver-inbound"
      + security_group_ids = [
          + "sg-12345",
        ]
      + tags               = {
          + "Name" = "route53resolver"
        }
      + tags_all           = {
          + "Name" = "route53resolver"
        }

      + ip_address {
          + ip        = "172.31.64.13"
          + ip_id     = (known after apply)
          + subnet_id = "subnet-12345"
        }
      + ip_address {
          + ip        = "172.31.64.14"
          + ip_id     = (known after apply)
          + subnet_id = "subnet-12345"
        }
    }

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9626

Output from acceptance testing:

$ make testacc TESTS=TestAccRoute53ResolverEndpoint PKG=route53

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20 -run='TestAccRoute53ResolverEndpoint'  -timeout 180m
testing: warning: no tests to run
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	2.916s [no tests to run]

@github-actions github-actions bot added service/route53resolver Issues and PRs that pertain to the route53resolver service. size/XS Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. and removed service/route53resolver Issues and PRs that pertain to the route53resolver service. labels Jul 6, 2022
@rnsc rnsc changed the title b/aws_route53resolver_endpoint b/aws_route53_resolver_endpoint Jul 6, 2022
@rnsc rnsc closed this Jul 6, 2022
@rnsc rnsc deleted the b-aws_route53resolver_bugfix_9626 branch July 6, 2022 12:02
@github-actions github-actions bot removed the needs-triage Waiting for first response or review from a maintainer. label Jul 6, 2022
@rnsc rnsc restored the b-aws_route53resolver_bugfix_9626 branch July 6, 2022 12:03
@rnsc rnsc reopened this Jul 6, 2022
@rnsc
Copy link
Contributor Author

rnsc commented Jul 6, 2022

Small mistake on my end, I renamed the branch because of a typo, but of course that closes the PR 😓

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @rnsc 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@rnsc
Copy link
Contributor Author

rnsc commented Jul 19, 2022

Hello @ewbankkit ,
Is it possible to fix the label on this PR, I think it's wrong due to the branch name?
Thanks

@YakDriver YakDriver self-assigned this Nov 17, 2022
rnsc added 2 commits November 17, 2022 11:54
Adding the IP address to the hash to avoid deduplication when using multiple IPs in the same subnet.
@YakDriver YakDriver force-pushed the b-aws_route53resolver_bugfix_9626 branch from 1e35170 to 5961124 Compare November 17, 2022 17:03
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make testacc TESTS=TestAccRoute53ResolverEndpoint_ PKG=route53resolver
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53resolver/... -v -count 1 -parallel 20 -run='TestAccRoute53ResolverEndpoint_'  -timeout 180m
=== RUN   TestAccRoute53ResolverEndpoint_basic
=== PAUSE TestAccRoute53ResolverEndpoint_basic
=== RUN   TestAccRoute53ResolverEndpoint_disappears
=== PAUSE TestAccRoute53ResolverEndpoint_disappears
=== RUN   TestAccRoute53ResolverEndpoint_tags
=== PAUSE TestAccRoute53ResolverEndpoint_tags
=== RUN   TestAccRoute53ResolverEndpoint_updateOutbound
=== PAUSE TestAccRoute53ResolverEndpoint_updateOutbound
=== CONT  TestAccRoute53ResolverEndpoint_basic
=== CONT  TestAccRoute53ResolverEndpoint_tags
=== CONT  TestAccRoute53ResolverEndpoint_updateOutbound
=== CONT  TestAccRoute53ResolverEndpoint_disappears
--- PASS: TestAccRoute53ResolverEndpoint_basic (97.25s)
--- PASS: TestAccRoute53ResolverEndpoint_disappears (103.35s)
--- PASS: TestAccRoute53ResolverEndpoint_tags (139.26s)
--- PASS: TestAccRoute53ResolverEndpoint_updateOutbound (437.89s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53resolver	439.664s

@YakDriver YakDriver merged commit aa05244 into hashicorp:main Nov 17, 2022
@github-actions github-actions bot added this to the v4.40.0 milestone Nov 17, 2022
@github-actions
Copy link

This functionality has been released in v4.40.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
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 Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/route53resolver Issues and PRs that pertain to the route53resolver service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_route53_resolver_endpoint:
2 participants