Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/ecs_service: Fixes normalization issues in placement_strategy (
#1025) Fixes: #938 When aws_ecs_service has a placement_strategy of type `spread`, you can use a field of `instanceId` or `host` interchangable. BUT AWS will normalize the field value to return `instanceId`. We have introduced a custom Set func to manage this work so that we understand when someone uses `host`, we won't get a diff when AWS return `instanceId` -> if there is a diff, a ForceNew is applied ``` % make testacc TEST=./aws TESTARGS='-run=TestAccAWSEcsService' ✹ ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -run=TestAccAWSEcsService -timeout 120m === RUN TestAccAWSEcsServiceWithARN --- PASS: TestAccAWSEcsServiceWithARN (147.06s) === RUN TestAccAWSEcsServiceWithUnnormalizedPlacementStrategy --- PASS: TestAccAWSEcsServiceWithUnnormalizedPlacementStrategy (116.97s) === RUN TestAccAWSEcsServiceWithFamilyAndRevision --- PASS: TestAccAWSEcsServiceWithFamilyAndRevision (125.69s) === RUN TestAccAWSEcsServiceWithRenamedCluster --- PASS: TestAccAWSEcsServiceWithRenamedCluster (268.02s) === RUN TestAccAWSEcsService_withIamRole --- PASS: TestAccAWSEcsService_withIamRole (155.57s) === RUN TestAccAWSEcsService_withDeploymentValues --- PASS: TestAccAWSEcsService_withDeploymentValues (128.80s) === RUN TestAccAWSEcsService_withLbChanges --- PASS: TestAccAWSEcsService_withLbChanges (242.82s) === RUN TestAccAWSEcsService_withEcsClusterName --- PASS: TestAccAWSEcsService_withEcsClusterName (113.21s) === RUN TestAccAWSEcsService_withAlb --- PASS: TestAccAWSEcsService_withAlb (349.69s) === RUN TestAccAWSEcsServiceWithPlacementStrategy --- PASS: TestAccAWSEcsServiceWithPlacementStrategy (238.08s) === RUN TestAccAWSEcsServiceWithPlacementConstraints --- PASS: TestAccAWSEcsServiceWithPlacementConstraints (123.41s) === RUN TestAccAWSEcsServiceWithPlacementConstraints_emptyExpression --- PASS: TestAccAWSEcsServiceWithPlacementConstraints_emptyExpression (126.25s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 2138.968s ```
- Loading branch information