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

resource/aws_service_discovery_instance: new implementation #17498

Merged
merged 24 commits into from
Sep 2, 2021

Conversation

dirk39
Copy link
Contributor

@dirk39 dirk39 commented Feb 6, 2021

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 #8568

The output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSServiceDiscoveryInstance'

...

This is the implementation of the APIs to Register/Deregister instances into the AWS CloudMap service. Link to the doc here

@dirk39 dirk39 requested a review from a team as a code owner February 6, 2021 22:04
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicediscovery Issues and PRs that pertain to the servicediscovery service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 6, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 6, 2021
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 @dirk39 👋

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! 😃

@ghost ghost added the documentation Introduces or discusses updates to documentation. label Feb 6, 2021
@dirk39 dirk39 force-pushed the f-aws_service_discovery_instance branch 2 times, most recently from 567bc8d to 70c4865 Compare February 7, 2021 19:28
@alexanderj1988
Copy link

alexanderj1988 commented Apr 6, 2021

exactly what we need, too!!!

@ghost
Copy link

ghost commented Jun 14, 2021

Any chance this can be merged?

@dirk39 dirk39 force-pushed the f-aws_service_discovery_instance branch from 70c4865 to 01ccb77 Compare June 14, 2021 16:00
@JeromeErasmus
Copy link

can we get this merged?

@denzhel
Copy link

denzhel commented Jul 22, 2021

Any chance this will get merged ?

@barakharyati
Copy link

Hi, any updates about that PR ?

@ghost
Copy link

ghost commented Aug 24, 2021

any reason not to push the button? Seems like someone has done quite some work to get this far and it would be a shame to let that effort go to waste - plus I could really use this feature that was inexplicably left out in the first place

@cageyv
Copy link
Contributor

cageyv commented Aug 25, 2021

This resource also helps to solve this problem with AWS App Mesh
"Your application is unable to resolve the DNS name of a virtual service that it is attempting to connect to."
https://docs.aws.amazon.com/app-mesh/latest/userguide/troubleshoot-connectivity.html#ts-connectivity-dns-resolution-virtual-service

@ewbankkit ewbankkit added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 31, 2021
@ewbankkit ewbankkit force-pushed the f-aws_service_discovery_instance branch from 01ccb77 to 6265e73 Compare September 2, 2021 12:37
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSServiceDiscoveryInstance_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSServiceDiscoveryInstance_ -timeout 180m
=== RUN   TestAccAWSServiceDiscoveryInstance_private
=== PAUSE TestAccAWSServiceDiscoveryInstance_private
=== RUN   TestAccAWSServiceDiscoveryInstance_public
=== PAUSE TestAccAWSServiceDiscoveryInstance_public
=== RUN   TestAccAWSServiceDiscoveryInstance_http
=== PAUSE TestAccAWSServiceDiscoveryInstance_http
=== CONT  TestAccAWSServiceDiscoveryInstance_private
=== CONT  TestAccAWSServiceDiscoveryInstance_http
=== CONT  TestAccAWSServiceDiscoveryInstance_public
--- PASS: TestAccAWSServiceDiscoveryInstance_public (139.99s)
--- PASS: TestAccAWSServiceDiscoveryInstance_private (163.20s)
--- PASS: TestAccAWSServiceDiscoveryInstance_http (163.49s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	166.883s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSServiceDiscoveryInstance_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSServiceDiscoveryInstance_ -timeout 180m
=== RUN   TestAccAWSServiceDiscoveryInstance_private
=== PAUSE TestAccAWSServiceDiscoveryInstance_private
=== RUN   TestAccAWSServiceDiscoveryInstance_public
=== PAUSE TestAccAWSServiceDiscoveryInstance_public
=== RUN   TestAccAWSServiceDiscoveryInstance_http
=== PAUSE TestAccAWSServiceDiscoveryInstance_http
=== CONT  TestAccAWSServiceDiscoveryInstance_private
=== CONT  TestAccAWSServiceDiscoveryInstance_http
=== CONT  TestAccAWSServiceDiscoveryInstance_public
=== CONT  TestAccAWSServiceDiscoveryInstance_private
    provider_test.go:735: skipping tests; partition aws-us-gov does not support servicediscovery service
=== CONT  TestAccAWSServiceDiscoveryInstance_http
    provider_test.go:735: skipping tests; partition aws-us-gov does not support servicediscovery service
=== CONT  TestAccAWSServiceDiscoveryInstance_public
    provider_test.go:735: skipping tests; partition aws-us-gov does not support servicediscovery service
--- SKIP: TestAccAWSServiceDiscoveryInstance_public (1.34s)
--- SKIP: TestAccAWSServiceDiscoveryInstance_private (1.34s)
--- SKIP: TestAccAWSServiceDiscoveryInstance_http (1.34s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	4.889s

@ewbankkit ewbankkit merged commit debf9ff into hashicorp:main Sep 2, 2021
@github-actions github-actions bot added this to the v3.57.0 milestone Sep 2, 2021
@dirk39 dirk39 deleted the f-aws_service_discovery_instance branch September 2, 2021 14:58
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This functionality has been released in v3.57.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 Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicediscovery Issues and PRs that pertain to the servicediscovery service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an aws_service_discovery_instance resource
7 participants