Skip to content

Commit

Permalink
Merge pull request #20720 from 1newsr/ecs-cluster-settings
Browse files Browse the repository at this point in the history
Fix: Add settings field to ecs.DescribeClustersInput
  • Loading branch information
ewbankkit committed Aug 30, 2021
2 parents b22dd25 + d8afa50 commit dea5008
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/20720.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_ecs_cluster: Ensure that `setting` attribute is set consistently
```
6 changes: 5 additions & 1 deletion aws/internal/service/ecs/finder/finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ func CapacityProviderByARN(conn *ecs.ECS, arn string) (*ecs.CapacityProvider, er
func ClusterByARN(conn *ecs.ECS, arn string) (*ecs.DescribeClustersOutput, error) {
input := &ecs.DescribeClustersInput{
Clusters: []*string{aws.String(arn)},
Include: []*string{aws.String(ecs.ClusterFieldTags), aws.String(ecs.ClusterFieldConfigurations)},
Include: []*string{
aws.String(ecs.ClusterFieldTags),
aws.String(ecs.ClusterFieldConfigurations),
aws.String(ecs.ClusterFieldSettings),
},
}

output, err := conn.DescribeClusters(input)
Expand Down

0 comments on commit dea5008

Please sign in to comment.