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

Add protocol_version to lb_target_group #17260

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

bill-rich
Copy link
Contributor

@bill-rich bill-rich commented Jan 23, 2021

Add protocol_version to lb_target_group resource and data source.

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

Output from acceptance testing:

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=AWSALBTargetGroup_ -timeout 120m
=== RUN   TestAccDataSourceAWSALBTargetGroup_basic
=== PAUSE TestAccDataSourceAWSALBTargetGroup_basic
=== RUN   TestAccAWSALBTargetGroup_basic
=== PAUSE TestAccAWSALBTargetGroup_basic
=== RUN   TestAccAWSALBTargetGroup_namePrefix
=== PAUSE TestAccAWSALBTargetGroup_namePrefix
=== RUN   TestAccAWSALBTargetGroup_generatedName
=== PAUSE TestAccAWSALBTargetGroup_generatedName
=== RUN   TestAccAWSALBTargetGroup_changeNameForceNew
=== PAUSE TestAccAWSALBTargetGroup_changeNameForceNew
=== RUN   TestAccAWSALBTargetGroup_changeProtocolForceNew
=== PAUSE TestAccAWSALBTargetGroup_changeProtocolForceNew
=== RUN   TestAccAWSALBTargetGroup_changePortForceNew
=== PAUSE TestAccAWSALBTargetGroup_changePortForceNew
=== RUN   TestAccAWSALBTargetGroup_changeVpcForceNew
=== PAUSE TestAccAWSALBTargetGroup_changeVpcForceNew
=== RUN   TestAccAWSALBTargetGroup_tags
=== PAUSE TestAccAWSALBTargetGroup_tags
=== RUN   TestAccAWSALBTargetGroup_updateHealthCheck
=== PAUSE TestAccAWSALBTargetGroup_updateHealthCheck
=== RUN   TestAccAWSALBTargetGroup_updateSticknessEnabled
=== PAUSE TestAccAWSALBTargetGroup_updateSticknessEnabled
=== RUN   TestAccAWSALBTargetGroup_setAndUpdateSlowStart
=== PAUSE TestAccAWSALBTargetGroup_setAndUpdateSlowStart
=== RUN   TestAccAWSALBTargetGroup_updateLoadBalancingAlgorithmType
=== PAUSE TestAccAWSALBTargetGroup_updateLoadBalancingAlgorithmType
=== RUN   TestAccAWSALBTargetGroup_lambda
=== PAUSE TestAccAWSALBTargetGroup_lambda
=== RUN   TestAccAWSALBTargetGroup_lambdaMultiValueHeadersEnabled
=== PAUSE TestAccAWSALBTargetGroup_lambdaMultiValueHeadersEnabled
=== RUN   TestAccAWSALBTargetGroup_missingPortProtocolVpc
=== PAUSE TestAccAWSALBTargetGroup_missingPortProtocolVpc
=== CONT  TestAccDataSourceAWSALBTargetGroup_basic
=== CONT  TestAccAWSALBTargetGroup_updateLoadBalancingAlgorithmType
=== CONT  TestAccAWSALBTargetGroup_generatedName
=== CONT  TestAccAWSALBTargetGroup_tags
=== CONT  TestAccAWSALBTargetGroup_updateSticknessEnabled
=== CONT  TestAccAWSALBTargetGroup_updateHealthCheck
=== CONT  TestAccAWSALBTargetGroup_changeNameForceNew
=== CONT  TestAccAWSALBTargetGroup_setAndUpdateSlowStart
=== CONT  TestAccAWSALBTargetGroup_changeProtocolForceNew
=== CONT  TestAccAWSALBTargetGroup_namePrefix
=== CONT  TestAccAWSALBTargetGroup_changeVpcForceNew
=== CONT  TestAccAWSALBTargetGroup_basic
=== CONT  TestAccAWSALBTargetGroup_lambdaMultiValueHeadersEnabled
=== CONT  TestAccAWSALBTargetGroup_missingPortProtocolVpc
=== CONT  TestAccAWSALBTargetGroup_changePortForceNew
=== CONT  TestAccAWSALBTargetGroup_lambda
--- PASS: TestAccAWSALBTargetGroup_lambda (37.39s)
--- PASS: TestAccAWSALBTargetGroup_missingPortProtocolVpc (39.46s)
--- PASS: TestAccAWSALBTargetGroup_generatedName (41.43s)
--- PASS: TestAccAWSALBTargetGroup_namePrefix (41.88s)
--- PASS: TestAccAWSALBTargetGroup_basic (47.14s)
--- PASS: TestAccAWSALBTargetGroup_lambdaMultiValueHeadersEnabled (55.49s)
--- PASS: TestAccAWSALBTargetGroup_setAndUpdateSlowStart (58.53s)
--- PASS: TestAccAWSALBTargetGroup_changeVpcForceNew (58.62s)
--- PASS: TestAccAWSALBTargetGroup_changePortForceNew (61.12s)
--- PASS: TestAccAWSALBTargetGroup_tags (61.15s)
--- PASS: TestAccAWSALBTargetGroup_updateHealthCheck (62.69s)
--- PASS: TestAccAWSALBTargetGroup_changeProtocolForceNew (64.50s)
--- PASS: TestAccAWSALBTargetGroup_changeNameForceNew (66.91s)
--- PASS: TestAccAWSALBTargetGroup_updateLoadBalancingAlgorithmType (71.04s)
--- PASS: TestAccAWSALBTargetGroup_updateSticknessEnabled (73.57s)
--- PASS: TestAccDataSourceAWSALBTargetGroup_basic (194.17s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	194.211s

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLBTargetGroup -timeout 120m
=== RUN   TestAccAWSLBTargetGroupAttachment_basic
=== PAUSE TestAccAWSLBTargetGroupAttachment_basic
=== RUN   TestAccAWSLBTargetGroupAttachment_disappears
=== PAUSE TestAccAWSLBTargetGroupAttachment_disappears
=== RUN   TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility
=== PAUSE TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility
=== RUN   TestAccAWSLBTargetGroupAttachment_Port
=== PAUSE TestAccAWSLBTargetGroupAttachment_Port
=== RUN   TestAccAWSLBTargetGroupAttachment_ipAddress
=== PAUSE TestAccAWSLBTargetGroupAttachment_ipAddress
=== RUN   TestAccAWSLBTargetGroupAttachment_lambda
=== PAUSE TestAccAWSLBTargetGroupAttachment_lambda
=== RUN   TestAccAWSLBTargetGroup_basic
=== PAUSE TestAccAWSLBTargetGroup_basic
=== RUN   TestAccAWSLBTargetGroup_basicUdp
=== PAUSE TestAccAWSLBTargetGroup_basicUdp
=== RUN   TestAccAWSLBTargetGroup_ProtocolVersion
=== PAUSE TestAccAWSLBTargetGroup_ProtocolVersion
=== RUN   TestAccAWSLBTargetGroup_withoutHealthcheck
=== PAUSE TestAccAWSLBTargetGroup_withoutHealthcheck
=== RUN   TestAccAWSLBTargetGroup_networkLB_TargetGroup
=== PAUSE TestAccAWSLBTargetGroup_networkLB_TargetGroup
=== RUN   TestAccAWSLBTargetGroup_Protocol_Geneve
=== PAUSE TestAccAWSLBTargetGroup_Protocol_Geneve
=== RUN   TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol
=== PAUSE TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol
=== RUN   TestAccAWSLBTargetGroup_Protocol_Tls
=== PAUSE TestAccAWSLBTargetGroup_Protocol_Tls
=== RUN   TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy
=== PAUSE TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy
=== RUN   TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck
=== PAUSE TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck
=== RUN   TestAccAWSLBTargetGroup_BackwardsCompatibility
=== PAUSE TestAccAWSLBTargetGroup_BackwardsCompatibility
=== RUN   TestAccAWSLBTargetGroup_namePrefix
=== PAUSE TestAccAWSLBTargetGroup_namePrefix
=== RUN   TestAccAWSLBTargetGroup_generatedName
=== PAUSE TestAccAWSLBTargetGroup_generatedName
=== RUN   TestAccAWSLBTargetGroup_changeNameForceNew
=== PAUSE TestAccAWSLBTargetGroup_changeNameForceNew
=== RUN   TestAccAWSLBTargetGroup_changeProtocolForceNew
=== PAUSE TestAccAWSLBTargetGroup_changeProtocolForceNew
=== RUN   TestAccAWSLBTargetGroup_changePortForceNew
=== PAUSE TestAccAWSLBTargetGroup_changePortForceNew
=== RUN   TestAccAWSLBTargetGroup_changeVpcForceNew
=== PAUSE TestAccAWSLBTargetGroup_changeVpcForceNew
=== RUN   TestAccAWSLBTargetGroup_tags
=== PAUSE TestAccAWSLBTargetGroup_tags
=== RUN   TestAccAWSLBTargetGroup_enableHealthCheck
=== PAUSE TestAccAWSLBTargetGroup_enableHealthCheck
=== RUN   TestAccAWSLBTargetGroup_updateHealthCheck
=== PAUSE TestAccAWSLBTargetGroup_updateHealthCheck
=== RUN   TestAccAWSLBTargetGroup_updateSticknessEnabled
=== PAUSE TestAccAWSLBTargetGroup_updateSticknessEnabled
=== RUN   TestAccAWSLBTargetGroup_defaults_application
=== PAUSE TestAccAWSLBTargetGroup_defaults_application
=== RUN   TestAccAWSLBTargetGroup_defaults_network
=== PAUSE TestAccAWSLBTargetGroup_defaults_network
=== RUN   TestAccAWSLBTargetGroup_stickinessDefaultNLB
=== PAUSE TestAccAWSLBTargetGroup_stickinessDefaultNLB
=== RUN   TestAccAWSLBTargetGroup_stickinessDefaultALB
=== PAUSE TestAccAWSLBTargetGroup_stickinessDefaultALB
=== RUN   TestAccAWSLBTargetGroup_stickinessValidNLB
=== PAUSE TestAccAWSLBTargetGroup_stickinessValidNLB
=== RUN   TestAccAWSLBTargetGroup_stickinessValidALB
=== PAUSE TestAccAWSLBTargetGroup_stickinessValidALB
=== RUN   TestAccAWSLBTargetGroup_stickinessInvalidNLB
=== PAUSE TestAccAWSLBTargetGroup_stickinessInvalidNLB
=== RUN   TestAccAWSLBTargetGroup_stickinessInvalidALB
=== PAUSE TestAccAWSLBTargetGroup_stickinessInvalidALB
=== CONT  TestAccAWSLBTargetGroupAttachment_basic
=== CONT  TestAccAWSLBTargetGroup_generatedName
=== CONT  TestAccAWSLBTargetGroup_defaults_application
=== CONT  TestAccAWSLBTargetGroup_stickinessValidNLB
=== CONT  TestAccAWSLBTargetGroup_stickinessDefaultALB
=== CONT  TestAccAWSLBTargetGroup_stickinessDefaultNLB
=== CONT  TestAccAWSLBTargetGroup_defaults_network
=== CONT  TestAccAWSLBTargetGroup_stickinessInvalidALB
=== CONT  TestAccAWSLBTargetGroup_stickinessInvalidNLB
=== CONT  TestAccAWSLBTargetGroup_stickinessValidALB
=== CONT  TestAccAWSLBTargetGroup_updateHealthCheck
=== CONT  TestAccAWSLBTargetGroup_tags
=== CONT  TestAccAWSLBTargetGroup_withoutHealthcheck
=== CONT  TestAccAWSLBTargetGroup_namePrefix
=== CONT  TestAccAWSLBTargetGroup_updateSticknessEnabled
=== CONT  TestAccAWSLBTargetGroup_BackwardsCompatibility
=== CONT  TestAccAWSLBTargetGroup_basicUdp
=== CONT  TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck
=== CONT  TestAccAWSLBTargetGroup_enableHealthCheck
=== CONT  TestAccAWSLBTargetGroup_ProtocolVersion
--- PASS: TestAccAWSLBTargetGroup_withoutHealthcheck (19.28s)
=== CONT  TestAccAWSLBTargetGroupAttachment_lambda
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultALB (27.57s)
=== CONT  TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy
--- PASS: TestAccAWSLBTargetGroup_namePrefix (27.58s)
=== CONT  TestAccAWSLBTargetGroupAttachment_Port
--- PASS: TestAccAWSLBTargetGroup_generatedName (28.89s)
=== CONT  TestAccAWSLBTargetGroup_Protocol_Tls
--- PASS: TestAccAWSLBTargetGroup_enableHealthCheck (30.40s)
=== CONT  TestAccAWSLBTargetGroup_basic
--- PASS: TestAccAWSLBTargetGroup_defaults_network (31.98s)
=== CONT  TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol
--- PASS: TestAccAWSLBTargetGroup_basicUdp (33.13s)
=== CONT  TestAccAWSLBTargetGroup_Protocol_Geneve
--- PASS: TestAccAWSLBTargetGroup_BackwardsCompatibility (35.03s)
=== CONT  TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion (35.92s)
=== CONT  TestAccAWSLBTargetGroup_networkLB_TargetGroup
--- PASS: TestAccAWSLBTargetGroup_defaults_application (40.90s)
=== CONT  TestAccAWSLBTargetGroupAttachment_disappears
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidNLB (43.07s)
=== CONT  TestAccAWSLBTargetGroup_changePortForceNew
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tls (15.42s)
=== CONT  TestAccAWSLBTargetGroupAttachment_ipAddress
--- PASS: TestAccAWSLBTargetGroup_stickinessValidALB (47.32s)
=== CONT  TestAccAWSLBTargetGroup_changeVpcForceNew
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidALB (50.07s)
=== CONT  TestAccAWSLBTargetGroup_changeNameForceNew
--- PASS: TestAccAWSLBTargetGroup_Protocol_Geneve (24.50s)
=== CONT  TestAccAWSLBTargetGroup_changeProtocolForceNew
--- PASS: TestAccAWSLBTargetGroupAttachment_lambda (39.40s)
--- PASS: TestAccAWSLBTargetGroup_updateHealthCheck (64.29s)
--- PASS: TestAccAWSLBTargetGroup_tags (68.58s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultNLB (70.88s)
--- PASS: TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck (72.51s)
--- PASS: TestAccAWSLBTargetGroup_updateSticknessEnabled (75.58s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy (51.33s)
--- PASS: TestAccAWSLBTargetGroup_changePortForceNew (45.55s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol (59.87s)
--- PASS: TestAccAWSLBTargetGroup_changeNameForceNew (45.45s)
--- PASS: TestAccAWSLBTargetGroup_changeVpcForceNew (50.00s)
--- PASS: TestAccAWSLBTargetGroupAttachment_basic (97.42s)
--- PASS: TestAccAWSLBTargetGroup_changeProtocolForceNew (46.22s)
--- PASS: TestAccAWSLBTargetGroup_basic (75.59s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroup (74.94s)
--- PASS: TestAccAWSLBTargetGroupAttachment_Port (91.40s)
--- PASS: TestAccAWSLBTargetGroupAttachment_ipAddress (80.33s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidNLB (126.58s)
--- PASS: TestAccAWSLBTargetGroupAttachment_disappears (93.99s)
--- PASS: TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility (193.67s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	228.745s

@bill-rich bill-rich requested a review from a team as a code owner January 23, 2021 01:09
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 23, 2021
@bill-rich bill-rich added service/elb Issues and PRs that pertain to the elb service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 23, 2021
@YakDriver YakDriver self-assigned this Jan 29, 2021
Add `protocol_version` to `lb_target_group` resource and data source.
@YakDriver YakDriver force-pushed the f_lb-target-group-protocol_version branch from 11e70c8 to 29ba172 Compare January 29, 2021 18:17
@ghost ghost added documentation Introduces or discusses updates to documentation. service/elbv2 Issues and PRs that pertain to the elbv2 service. labels Jan 29, 2021
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.

Looks good 🎉

GovCloud:


    resource_aws_lb_test.go:1236: skipping acceptance testing: region does not support ELBv2 Gateway Load Balancers
--- PASS: TestAccAWSLBTargetGroup_BackwardsCompatibility (56.54s)
--- PASS: TestAccAWSLBTargetGroup_basic (40.43s)
--- PASS: TestAccAWSLBTargetGroup_basicUdp (46.21s)
--- PASS: TestAccAWSLBTargetGroup_changeNameForceNew (90.92s)
--- PASS: TestAccAWSLBTargetGroup_changePortForceNew (117.35s)
--- PASS: TestAccAWSLBTargetGroup_changeProtocolForceNew (99.21s)
--- PASS: TestAccAWSLBTargetGroup_changeVpcForceNew (101.07s)
--- PASS: TestAccAWSLBTargetGroup_defaults_application (75.92s)
--- PASS: TestAccAWSLBTargetGroup_defaults_network (63.80s)
--- PASS: TestAccAWSLBTargetGroup_enableHealthCheck (56.77s)
--- PASS: TestAccAWSLBTargetGroup_generatedName (50.27s)
--- PASS: TestAccAWSLBTargetGroup_namePrefix (51.28s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroup (134.29s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy (105.27s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol (89.92s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tls (39.86s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion (47.01s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultALB (149.95s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultNLB (126.28s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidALB (70.69s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidNLB (48.36s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidALB (97.44s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidNLB (191.75s)
--- PASS: TestAccAWSLBTargetGroup_tags (145.03s)
--- PASS: TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck (110.31s)
--- PASS: TestAccAWSLBTargetGroup_updateHealthCheck (131.94s)
--- PASS: TestAccAWSLBTargetGroup_updateSticknessEnabled (185.76s)
--- PASS: TestAccAWSLBTargetGroup_withoutHealthcheck (22.87s)
--- PASS: TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility (105.42s)
--- PASS: TestAccAWSLBTargetGroupAttachment_basic (121.10s)
--- PASS: TestAccAWSLBTargetGroupAttachment_disappears (98.57s)
--- PASS: TestAccAWSLBTargetGroupAttachment_ipAddress (97.38s)
--- PASS: TestAccAWSLBTargetGroupAttachment_lambda (42.92s)
--- PASS: TestAccAWSLBTargetGroupAttachment_Port (94.73s)
--- SKIP: TestAccAWSLBTargetGroup_Protocol_Geneve (0.34s)

us-west-2:

--- PASS: TestAccAWSLBTargetGroup_BackwardsCompatibility (39.40s)
--- PASS: TestAccAWSLBTargetGroup_basic (51.82s)
--- PASS: TestAccAWSLBTargetGroup_basicUdp (81.91s)
--- PASS: TestAccAWSLBTargetGroup_changeNameForceNew (108.65s)
--- PASS: TestAccAWSLBTargetGroup_changePortForceNew (112.60s)
--- PASS: TestAccAWSLBTargetGroup_changeProtocolForceNew (104.21s)
--- PASS: TestAccAWSLBTargetGroup_changeVpcForceNew (109.53s)
--- PASS: TestAccAWSLBTargetGroup_defaults_application (58.73s)
--- PASS: TestAccAWSLBTargetGroup_defaults_network (57.31s)
--- PASS: TestAccAWSLBTargetGroup_enableHealthCheck (72.86s)
--- PASS: TestAccAWSLBTargetGroup_generatedName (53.18s)
--- PASS: TestAccAWSLBTargetGroup_namePrefix (41.12s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroup (97.84s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy (59.74s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Geneve (35.15s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol (73.36s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tls (34.92s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion (59.72s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultALB (57.54s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultNLB (131.41s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidALB (89.38s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidNLB (83.36s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidALB (119.94s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidNLB (121.50s)
--- PASS: TestAccAWSLBTargetGroup_tags (136.20s)
--- PASS: TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck (68.39s)
--- PASS: TestAccAWSLBTargetGroup_updateHealthCheck (109.77s)
--- PASS: TestAccAWSLBTargetGroup_updateSticknessEnabled (128.11s)
--- PASS: TestAccAWSLBTargetGroup_withoutHealthcheck (20.47s)
--- PASS: TestAccAWSLBTargetGroupAttachment_BackwardsCompatibility (101.78s)
--- PASS: TestAccAWSLBTargetGroupAttachment_basic (116.08s)
--- PASS: TestAccAWSLBTargetGroupAttachment_disappears (101.74s)
--- PASS: TestAccAWSLBTargetGroupAttachment_ipAddress (112.30s)
--- PASS: TestAccAWSLBTargetGroupAttachment_lambda (52.70s)
--- PASS: TestAccAWSLBTargetGroupAttachment_Port (99.45s)

@@ -40,6 +40,11 @@ func dataSourceAwsLbTargetGroup() *schema.Resource {
Computed: true,
},

"protocol_version": {
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch! I've heard from a friend that it's really bad to add an attribute to the resource but not the data source.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I almost missed it.

@@ -294,6 +308,10 @@ func resourceAwsLbTargetGroupCreate(d *schema.ResourceData, meta interface{}) er
}
params.Port = aws.Int64(int64(d.Get("port").(int)))
params.Protocol = aws.String(d.Get("protocol").(string))
switch d.Get("protocol").(string) {
case elbv2.ProtocolEnumHttp, elbv2.ProtocolEnumHttps:
Copy link
Member

Choose a reason for hiding this comment

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

I personally like switch even in simple logic since it's so clean. Some suggest if is better here but I like it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here. I forget sometimes when I'm deep in what I'm doing though.

@bill-rich bill-rich added this to the v3.27.0 milestone Feb 4, 2021
@bill-rich bill-rich merged commit b0d8f72 into main Feb 4, 2021
@bill-rich bill-rich deleted the f_lb-target-group-protocol_version branch February 4, 2021 00:42
@kevincantu
Copy link

I suspect you'll also want to do something about gRPC matchers, as this community pull request attempted, @bill-rich: #16132

@ghost
Copy link

ghost commented Feb 5, 2021

This has been released in version 3.27.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!

@ghost
Copy link

ghost commented Mar 6, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 6, 2021
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. service/elb Issues and PRs that pertain to the elb service. service/elbv2 Issues and PRs that pertain to the elbv2 service. size/M 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.

Support the new Application Load Balancer gRPC workload & HTTP/2 protocol versions
3 participants