-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Random ordered_placement_strategy #5387
Comments
The problem is that the provider is sending the
Relevant tf code:
|
The fix for this has been merged and will release with version 1.41.0 of the AWS provider, later today. 👍 |
This has been released in version 1.41.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
This issue was originally opened by @Scherkan as hashicorp/terraform#18565. It was migrated here as a result of the provider split. The original body of the issue is below.
I can't attach random placement strategy to aws_ecs_service, according to:
https://www.terraform.io/docs/providers/aws/r/ecs_service.html#ordered_placement_strategy
Terraform Version
Terraform v0.11.7
Terraform Configuration Files
Debug Output
Crash Output
aws_ecs_service.config-server-service: Creating...
cluster: "" => "arn:aws:ecs:eu-west-2::cluster/cluster"
deployment_maximum_percent: "" => "200"
deployment_minimum_healthy_percent: "" => "100"
desired_count: "" => "0"
health_check_grace_period_seconds: "" => "300"
iam_role: "" => ""
launch_type: "" => "EC2"
load_balancer.#: "" => "1"
load_balancer..container_name: "" => "docker"
load_balancer..container_port: "" => "8888"
load_balancer..elb_name: "" => ""
load_balancer..target_group_arn: "" => "arn*..."
name: "" => "service"
ordered_placement_strategy.#: "" => "3"
ordered_placement_strategy.0.field: "" => "attribute:ecs.availability-zone"
ordered_placement_strategy.0.type: "" => "spread"
ordered_placement_strategy.1.field: "" => "instanceId"
ordered_placement_strategy.1.type: "" => "spread"
ordered_placement_strategy.2.type: "" => "random"
scheduling_strategy: "" => "REPLICA"
task_definition: "" => "arn:aws:****"
Error: Error applying plan:
1 error(s) occurred:
aws_ecs_service.config-server-service: 1 error(s) occurred:
aws_ecs_service.config-server-service: InvalidParameterException: random field should not be specified.
status code: 400, request id: 5fb108e7........................ "service"
Expected Behavior
Created ECS service, with correct placement strategy:
Actual Behavior
Fail during apply script.
Steps to Reproduce
terraform init
terraform apply
Additional Context
The text was updated successfully, but these errors were encountered: