-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Correct validations for AWS Cloud Map service discovery information for App Mesh virtual nodes #9788
Conversation
Rebased. While re-running the acceptance tests I got: $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAppmesh/VirtualNode'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppmesh/VirtualNode -timeout 120m
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
=== RUN TestAccAWSAppmesh
=== RUN TestAccAWSAppmesh/VirtualNode
=== RUN TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery
=== RUN TestAccAWSAppmesh/VirtualNode/listenerHealthChecks
=== RUN TestAccAWSAppmesh/VirtualNode/logging
=== RUN TestAccAWSAppmesh/VirtualNode/tags
=== RUN TestAccAWSAppmesh/VirtualNode/basic
--- FAIL: TestAccAWSAppmesh (142.17s)
--- FAIL: TestAccAWSAppmesh/VirtualNode (142.17s)
--- FAIL: TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery (1.86s)
testing.go:569: Step 0 error: config is invalid: last character of "name" must be a letter
--- PASS: TestAccAWSAppmesh/VirtualNode/listenerHealthChecks (35.71s)
--- PASS: TestAccAWSAppmesh/VirtualNode/logging (34.57s)
--- PASS: TestAccAWSAppmesh/VirtualNode/tags (48.78s)
--- PASS: TestAccAWSAppmesh/VirtualNode/basic (21.25s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 142.194s
FAIL
GNUmakefile:24: recipe for target 'testacc' failed
make: *** [testacc] Error 1 which comes from Re-ran acceptance tests: $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAppmesh/VirtualNode'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppmesh/VirtualNode -timeout 120m
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
=== RUN TestAccAWSAppmesh
=== RUN TestAccAWSAppmesh/VirtualNode
=== RUN TestAccAWSAppmesh/VirtualNode/basic
=== RUN TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery
=== RUN TestAccAWSAppmesh/VirtualNode/listenerHealthChecks
=== RUN TestAccAWSAppmesh/VirtualNode/logging
=== RUN TestAccAWSAppmesh/VirtualNode/tags
--- PASS: TestAccAWSAppmesh (247.29s)
--- PASS: TestAccAWSAppmesh/VirtualNode (247.29s)
--- PASS: TestAccAWSAppmesh/VirtualNode/basic (21.80s)
--- PASS: TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery (106.85s)
--- PASS: TestAccAWSAppmesh/VirtualNode/listenerHealthChecks (34.98s)
--- PASS: TestAccAWSAppmesh/VirtualNode/logging (34.57s)
--- PASS: TestAccAWSAppmesh/VirtualNode/tags (49.09s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 247.356s
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSServiceDiscoveryService_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSServiceDiscoveryService_ -timeout 120m
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.1+incompatible
=== RUN TestAccAWSServiceDiscoveryService_private
=== PAUSE TestAccAWSServiceDiscoveryService_private
=== RUN TestAccAWSServiceDiscoveryService_public
=== PAUSE TestAccAWSServiceDiscoveryService_public
=== RUN TestAccAWSServiceDiscoveryService_http
=== PAUSE TestAccAWSServiceDiscoveryService_http
=== CONT TestAccAWSServiceDiscoveryService_private
=== CONT TestAccAWSServiceDiscoveryService_http
=== CONT TestAccAWSServiceDiscoveryService_public
--- PASS: TestAccAWSServiceDiscoveryService_http (90.99s)
--- PASS: TestAccAWSServiceDiscoveryService_public (113.10s)
--- PASS: TestAccAWSServiceDiscoveryService_private (143.51s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 143.543s |
…or App Mesh virtual nodes.
…for aws_service_discovery_http_namespace.
Rebased and verified that all the checks go green after #10460 was merged. $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAppmesh/VirtualNode'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAppmesh/VirtualNode -timeout 120m
=== RUN TestAccAWSAppmesh
=== RUN TestAccAWSAppmesh/VirtualNode
=== RUN TestAccAWSAppmesh/VirtualNode/tags
=== RUN TestAccAWSAppmesh/VirtualNode/basic
=== RUN TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery
=== RUN TestAccAWSAppmesh/VirtualNode/listenerHealthChecks
=== RUN TestAccAWSAppmesh/VirtualNode/logging
--- PASS: TestAccAWSAppmesh (253.86s)
--- PASS: TestAccAWSAppmesh/VirtualNode (253.86s)
--- PASS: TestAccAWSAppmesh/VirtualNode/tags (51.12s)
--- PASS: TestAccAWSAppmesh/VirtualNode/basic (22.22s)
--- PASS: TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery (108.34s)
--- PASS: TestAccAWSAppmesh/VirtualNode/listenerHealthChecks (35.81s)
--- PASS: TestAccAWSAppmesh/VirtualNode/logging (36.36s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 253.921s |
Any ETA on the merge? This is blocking people from using App Mesh with AWS Cloud Map(which is the most common usecase). :( |
@bflad @cgbaker @chrisarcand I really don't want to be rude, but this PR is essential to re-gain functionality. This PR should be merged asap. |
@MLDMoritz Fortunately, as long as you don't use any dots in your Route 53 Private Namespace name(so that your ECS Services are available at As soon as your name contains dots ( This is a "workaround" for now. |
@spaszek Thanks for the hint, however accepting FQDN should be working :-) |
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.
Looks good according to the AppMesh API Reference, sorry for the delayed review/merge, @ewbankkit 🚀
Output from acceptance testing:
--- PASS: TestAccAWSAppmesh (243.64s)
--- PASS: TestAccAWSAppmesh/VirtualNode (243.64s)
--- PASS: TestAccAWSAppmesh/VirtualNode/basic (21.29s)
--- PASS: TestAccAWSAppmesh/VirtualNode/cloudMapServiceDiscovery (105.57s)
--- PASS: TestAccAWSAppmesh/VirtualNode/listenerHealthChecks (35.61s)
--- PASS: TestAccAWSAppmesh/VirtualNode/logging (34.10s)
--- PASS: TestAccAWSAppmesh/VirtualNode/tags (47.07s)
This has been released in version 2.39.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 for triage. Thanks! |
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 #9764.
Release note for CHANGELOG:
Output from acceptance testing: