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

ALB Listener Priority #4813

Closed
ghost opened this issue Jun 11, 2018 · 2 comments
Closed

ALB Listener Priority #4813

ghost opened this issue Jun 11, 2018 · 2 comments
Labels
service/elbv2 Issues and PRs that pertain to the elbv2 service.

Comments

@ghost
Copy link

ghost commented Jun 11, 2018

This issue was originally opened by @aaron-ballard-530 as hashicorp/terraform#18230. It was migrated here as a result of the provider split. The original body of the issue is below.


The documentation says that the variable Priority is optional when creating a ALB Listener Rule. However if it's excluded an error is thrown.

Terraform Version

Terraform v0.11.7
+ provider.aws v1.9.0
...

Terraform Configuration Files

...

Debug Output

Crash Output

Expected Behavior

The priority would be set to the next highest value.

Actual Behavior

An error is produced

Steps to Reproduce

Declare the resource:

resource "aws_lb_target_group" "this"
{
name = "test"
port = 443
protocol = "HTTPS"
vpc_id = "${var.vpc_id}"
health_check {
interval = 5
path = "/check"
port = 443
protocol = "HTTPS"
timeout = 3
healthy_threshold = 3
unhealthy_threshold = 5
matcher = "200"
}
}

resource "aws_lb_listener_rule" "this"
{
listener_arn = "${var.listener_arn}"
action {
type = "forward"
target_group_arn = "${aws_lb_target_group.this.arn}"
}

condition {
	field = "path-pattern"
	values = ["/test/*"]
}

}

terraform init
terraform apply

Additional Context

References

@bflad bflad added the service/elbv2 Issues and PRs that pertain to the elbv2 service. label Jun 12, 2018
@bflad
Copy link
Contributor

bflad commented Jun 12, 2018

Hi @aaron-ballard-530 👋 Sorry you ran into unexpected behavior here. Our provider documentation is only truly valid for the current version of the provider.

The priority argument was made optional in #3219 and released in version 1.10.0 of the AWS provider. It has been available in all releases since. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

We have a backlog item to address version-specific documentation and I'll add this as a reference issue to that backlog item.

@bflad bflad closed this as completed Jun 12, 2018
@ghost
Copy link
Author

ghost commented Apr 5, 2020

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 and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/elbv2 Issues and PRs that pertain to the elbv2 service.
Projects
None yet
Development

No branches or pull requests

1 participant