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

[ECS] Add the ability to delete an ASG capacity provider. #632

Closed
coultn opened this issue Dec 5, 2019 · 72 comments
Closed

[ECS] Add the ability to delete an ASG capacity provider. #632

coultn opened this issue Dec 5, 2019 · 72 comments
Labels
ECS Amazon Elastic Container Service

Comments

@coultn
Copy link

coultn commented Dec 5, 2019

Currently, ECS Capacity Providers are immutable. Once created, they cannot be deleted. The change proposed here is to support deleting capacity providers.

@oleg-z
Copy link

oleg-z commented Dec 6, 2019

Is there any way to new associate capacity provider with ASG which is associated with another capacity provider? I'm getting next error if I try to create new capacity provider for the same ASG:

botocore.errorfactory.ClientException: An error occurred (ClientException) when calling the CreateCapacityProvider operation: The specified Auto Scaling group ARN is already being used by another capacity provider. Specify a unique Auto Scaling group ARN and try again.

It looks like currently you have to create new pair of capacity provider and asg everytime you want to adjust capacity provider settings.

@gmagella-ca
Copy link

+1 on this behaviour. Once you create a capacity provider and assign to ASG, they're married (til death do us part)... You can "deactivate" and remove the "link" between them, but you can't re-establish this again.

@chaitan94
Copy link

In my case, I am not even able to "deactivate" my capacity provider. When I look from Chrome's dev tools, aws seems to be returning 500 for this request. I thought it could be a temporary issue, but it's been over a week and the behavior is still the same. Is there any bug or is this expected?

For more details, I created the capacity provider with both Managed scaling and Managed termination protection disabled. Also I created it in ap-south-1 region if that helps.

@DigitallyBorn
Copy link

I'm stuck in this same scenario. This feels less like a feature request and more like a bug.

@pauldraper
Copy link

pauldraper commented Jan 10, 2020

I've also run into this bug.

After deactivating, there appears to be no visible association with the autoscaling group, yet the autoscaling group cannot be used for any other capacity provider, even after removing the ASG tag.

Better get it right the first time !!!

@louisbuchbinder
Copy link

I'm excited to start using capacity providers, but this is clearly a bug. Please let us know where this issue fits on the roadmap.

@coultn
Copy link
Author

coultn commented Jan 10, 2020

Thanks everyone for your feedback. This is not a bug - it is functioning as designed. However, we do understand that the current design has some limitations, which is why we are working on the ability to delete capacity providers (this issue) as well as update the configuration of an existing capacity provider.

@0xGosu
Copy link

0xGosu commented Jan 14, 2020

I also run into the same issue when trying out this Capacity Provider feature, once I deactivate the capacity provider, I can't create a new one link to the ASG any more. Please help fix this asap.

@wliao008
Copy link

+1 stuck on this this as well, kinda disappointing and frustrating experience.

@sdot257
Copy link

sdot257 commented Jan 23, 2020

I'm trying to understand something. If this isn't a "bug," then what is the "proper" way of using this? I feel like I'm stuck on this and in order to move forward I have to recreate my ASG.

@JaswanthReddy
Copy link

I stuck into the problem of cluster not getting destroyed due to the bug/design of aws_ecs_capacity_provider not getting deleted.I have to bypass and directly delete ASG in order to delete the cluster.Clearly this stops from creating clusters from terraform or likes

@michael-robbins
Copy link

michael-robbins commented Feb 7, 2020

This clearly isn't working as provided, not being able to do one of:

  • Delete a capacity provider
  • Delete the link between a capacity provider and its associated ASG
  • Reassign an ASG to another capacity provider

Is clearly a very wrong assumption and shows you have not thought out/designed the API with enough foresight.

+1 to getting the design and implementation of capacity providers built and deployed correctly

@rametta
Copy link

rametta commented Feb 7, 2020

This is a problem for me too. Causing a lot of issues with my terraform scripts and making it impossible to actually use ECS on EC2 in an automated way.

@begetan
Copy link

begetan commented Feb 10, 2020

I came here from the AWS support. The workaround is to create new capacity provider with the different name. Hope the team will rise this request, because Capacity Provider is really needed feature.

@kgyovai
Copy link

kgyovai commented Feb 10, 2020

@begetan - It's not only the capacity provider that must be recreated. Since the capacity provider and the ASG are inextricably linked, a new ASG must be created for each new capacity provider.

@rametta - As a workaround for this when using Terraform, the name of the capacity provider can be dependent upon the name of the ASG. Then, if you need to make an update to the capacity provider, the ASG name can be updated. This feels super janky in practice but it's been working for me for the time being.

resource "aws_autoscaling_group" "ecs_autoscaling_group" {
  name_prefix               = join("-", [var.app_name, var.environment, "recreated"])
  max_size                  = 4
  min_size                  = 0
  health_check_grace_period = 180
  health_check_type         = "ELB"
  desired_capacity          = 0
  force_delete              = false
  protect_from_scale_in     = true
  launch_configuration      = aws_launch_configuration.ecs_launch_config.id
  vpc_zone_identifier       = data.terraform_remote_state.vpc.outputs.vpc_private_subnet_ids

  lifecycle {
    ignore_changes = [desired_capacity]
    create_before_destroy = true
  }
}

resource "aws_ecs_capacity_provider" "ecs_capacity_provider" {
  /* The immutable dependency of an ECS capacity provider on a specific ASG is a major pain point.
   * Since this relationship is enforced as 1-to-1, the name of the capacity provider should reflect
   * the name of the ASG.
   * See  https://github.com/aws/containers-roadmap/issues/632
   * Also https://github.com/aws/containers-roadmap/issues/633
   */
  name = join("-", [var.app_name, var.environment, "asg", aws_autoscaling_group.ecs_autoscaling_group.name])

  auto_scaling_group_provider {
    auto_scaling_group_arn         = aws_autoscaling_group.ecs_autoscaling_group.arn
    managed_termination_protection = "ENABLED"

    managed_scaling {
      maximum_scaling_step_size = 2
      minimum_scaling_step_size = 1
      status                    = "ENABLED"
      // Although poorly documented by AWS, target_capacity is a percentage (%).
      target_capacity           = 100
    }
  }

  tags = {
    App       = var.app_name
    Environment = var.environment
  }

}

@brettwgreen
Copy link

brettwgreen commented Feb 10, 2020

Good lord... I even deleted the entire cluster the thing was associated to, so it's not in any way even accessible through the console. And still it lingers and prevents me from making a new correctly configured capacity provider after I re-created the cluster. What a nightmare. It's kinda messed up my entire account.

Update: And cool... I deleted the scaling group (I'm creating a whole setup for new company, so nuking and starting over is not entirely insane) and now I've got a capacity provider pointing at a scaling group that no longer exists. I had my fingers crossed that removing the scaling group might clear things up... nope.

@piotrb
Copy link

piotrb commented Feb 11, 2020

Yep this is a bit insane .. especially with the inability to "Update" a capacity provider .. even its basic attributes .. so if you create a capacity provider with managed_termination_protection off initially and want to use it now .. you're kind of screwed ..

AWS guys .. can you give us a better idea what's going on here and a better ETA than "we're working on it" .. this just seems straight up broken ..

@dejonghe
Copy link

dejonghe commented Feb 11, 2020

Thanks everyone for your feedback. This is not a bug - it is functioning as designed.

K, so this design flaw? Sorry to have to pile on but this is rough.

@jdb1441
Copy link

jdb1441 commented Feb 13, 2020

I agree, this is crazy. Having to delete an entire ASG is a ridiculous requirement to simply tweak a capacity provider parameter. This it a complete non-starter for any established environment where SLAs need to be adhered to.

@osiegmar
Copy link

This is not a bug - it is functioning as designed.

Somehow that reminds me of this: https://dilbert.com/strip/2010-03-14

Sorry, couldn't resist.

It would be very helpful if the current API could be improved so that tools like terraform could do their job as intended.

@eddgrant
Copy link

Hi @coultn , thanks for confirming that this is being worked on. We're keen to migrate over to using capacity providers, however are rather hesitant until this issue has been resolved, due to the operational headaches that come with the current status quo. Are you able to provide any further details as to when we might expect this work to hit GA? Thanks.

@eddgrant
Copy link

Hi @kgyovai , Thanks for posting your #632 (comment) workaround. I'm trying to replicate the approach you have taken , however I still get the capacity provider already exists error when I try to apply an update a capacity provider attribute.

I noticed that you mentioned:

if you need to make an update to the capacity provider, the ASG name can be updated

Are you doing something specific to trigger an update of the ASG name? I'm wondering if I need to change an attribute of the ASG at the same time as I change the attribute of the capacity provider?

@kgyovai
Copy link

kgyovai commented Feb 25, 2020

@eddgrant - In the approach that I described above, the name of the capacity provider is dependent on the name of the ASG
name = join("-", [var.app_name, var.environment, "asg", aws_autoscaling_group.ecs_autoscaling_group.name])

Since the capacity provider cannot be updated and an ASG cannot be associated w/ multiple capacity providers, any change to the capacity provider requires creating a new capacity provider (which is subject of the current issue) and a new ASG. In order to ensure that a one-to-one relationship exists between the ASG and capacity provider, I have been making a simple increment a name prefix of the ASG anytime I need to change the capacity provider.

For example, if the name of my ASG was:
name_prefix = join("-", [var.app_name, var.environment, "1"])
It would then become:
name_prefix = join("-", [var.app_name, var.environment, "2"])

Note that since I'm using Terraform, I went with a name_prefix so that the name also includes a timestamp of when the ASG was created. This isn't a requirement for the approach that I'm describing but it does help to simplify the "book keeping" of numerous ASG -> capacity provider pairs.

The bad thing about this approach (believe me, I realize how many hoops are being jumped through by doing this as opposed to just have an update option for the capacity provider), is that a simple change to the ASG name prefix results in a cascading dependency of resource recreation.

aws_autoscaling_attachment.autoscaling_attachment must be replaced
aws_autoscaling_group.ecs_autoscaling_group must be replaced
aws_ecs_capacity_provider.ecs_capacity_provider must be replaced
aws_ecs_service.ecs_service must be replaced (because of the dependency on the capacity provider strategy)

So all of that just to create a new copy of the capacity provider.

The other "gotcha" to be aware of when using Terraform for this approach is resource lifecycle management. As shown below, specifying create_before_destroy on the ASG is required in order to ensure that the new ASG->capacity-provider pair are provisioned prior to deleting the old ASG.

  lifecycle {
    ignore_changes = [desired_capacity]
    create_before_destroy = true
  }

@coultn
Copy link
Author

coultn commented May 15, 2020

As always, we deeply value your feedback and strong desire to see this shipped. As the product manager who created the capacity provider and cluster auto scaling features, and who works closely with the team building it, I absolutely understand your frustration that the delete capacity provider API is not yet available. However, I can share that it is indeed coming soon, and we will provide updates here the moment we have more information to share.

@briancurt
Copy link

Some comments in this issue are just needlessly rude. We all want this fixed and we already know they are working on it. If anything, take this as a lesson to thorougly test new features in other environments before applying them in production.

@jwhipp
Copy link

jwhipp commented May 20, 2020

I know this isn't great but for people who deactivated a scaling provider and just want to get them back, you can as long as you choose the exact same name and auto-scaling group. I didn't know I couldn't make new ones and hit this issue. This at least allowed me to get them back even know they are not named the way I want and I have to live with it for now. :)

@jdb1441
Copy link

jdb1441 commented May 20, 2020

Hey @coultn , thank you for the update. We are very excited for this to be released.

Will the ability to tweak a Capacity Provider Target Capacity be included with this release? Given the many variables that play into the about of hosts desired it can take a bit of tweaking to get the free capacity at the level that we want it.

@nathando
Copy link

Please let us know the status of the update as well. If we deactivate a capacity provider, the link between it and the ASG was still there. We cannot create new Capacity Provider with the same ASG which is very odd, especially there is no page to edit the Capacity Provider as well.

@sean-kang
Copy link

I just wanted to update the target capacity in a capacity provider. Now I have to replace the entire auto scaling group. This is simply stupid.

@erichydrick
Copy link

Any ETA on a release date? This is blocking needed infrastructure work for us.

@KMahankali
Copy link

Any ETA on a release data yet?

@guillaumesmo
Copy link

Version 2.695.0
feature: ECS: This release adds support for deleting capacity providers.

is this what we were waiting for?

@ziggythehamster
Copy link

@ziggythehamster
Copy link

Ah, I misread - you can delete, but not update. Still better than before, assuming you can reuse the same name. Then a destroy/create becomes possible as an update.

@dcelasun
Copy link

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/asg-capacity-providers.html#asg-capacity-providers-delete-capacity-provider

Without CloudFormation support, of course.

bflad added a commit to hashicorp/terraform-provider-aws that referenced this issue Jun 12, 2020
Reference: aws/containers-roadmap#632
Reference: #11286
Reference: #13459
Reference: #13722

Output from acceptance testing:

```
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScalingPartial (77.79s)
--- PASS: TestAccAWSEcsCapacityProvider_basic (78.73s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScaling (79.56s)
--- PASS: TestAccAWSEcsCapacityProvider_disappears (88.48s)
--- PASS: TestAccAWSEcsCapacityProvider_Tags (112.82s)
```

Output from sweeper in AWS Commercial:

```
2020/06/12 16:08:13 [DEBUG] Running Sweepers for region (us-west-2):
2020/06/12 16:08:13 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-west-2)
...
2020/06/12 16:08:15 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-west-2)
2020/06/12 16:08:16 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-west-2)
2020/06/12 16:08:17 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:08:17 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:08:17 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1166119573944741428
2020/06/12 16:08:43 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1214316862074147523
2020/06/12 16:09:09 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1448279580068890702
2020/06/12 16:09:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1694934460247763588
2020/06/12 16:09:51 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2072503336804561742
2020/06/12 16:10:07 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2771105388423480732
2020/06/12 16:10:33 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2945353957962800997
2020/06/12 16:10:50 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3144225916222141066
2020/06/12 16:11:16 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3925899594298666043
2020/06/12 16:11:42 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3962150016779598144
2020/06/12 16:11:58 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3963492166120243961
2020/06/12 16:12:14 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4003358451789399294
2020/06/12 16:12:25 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4028268499646425502
2020/06/12 16:12:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4153885072251016984
2020/06/12 16:13:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4166399643645447747
2020/06/12 16:13:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4171445239693757279
2020/06/12 16:14:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4172310795125459583
2020/06/12 16:14:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4229992971219388054
2020/06/12 16:14:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4288136819760104193
2020/06/12 16:15:12 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4349585972519622956
2020/06/12 16:15:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4381531870881126840
2020/06/12 16:15:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4390982455513240070
2020/06/12 16:16:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4453882168869869465
2020/06/12 16:16:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4462346553509157188
2020/06/12 16:17:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4492435413472368421
2020/06/12 16:17:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4555905932664127708
2020/06/12 16:17:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4820010642292065959
2020/06/12 16:18:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4897792034669269783
2020/06/12 16:18:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4952273456961512581
2020/06/12 16:18:53 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5007546636648720970
2020/06/12 16:19:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5089921342587722398
2020/06/12 16:19:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5131511394050367988
2020/06/12 16:20:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5143960229157641932
2020/06/12 16:20:28 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5222153959641548243
2020/06/12 16:20:44 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5269370732004417053
2020/06/12 16:21:00 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5275218636337132552
2020/06/12 16:21:26 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5313165225435669238
2020/06/12 16:21:52 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5317601343303819317
2020/06/12 16:22:08 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5372605070603715784
2020/06/12 16:22:34 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5412502102769973938
2020/06/12 16:23:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5487876079860998491
2020/06/12 16:23:18 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5567555810195504947
2020/06/12 16:23:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5581045694666886319
2020/06/12 16:24:01 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5662285056233848789
2020/06/12 16:24:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5713399100773622260
2020/06/12 16:24:43 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5726353295792014153
2020/06/12 16:25:10 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5865493350582185130
2020/06/12 16:25:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-591073430861682304
2020/06/12 16:26:03 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5930476252063755904
2020/06/12 16:26:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5937268970324997212
2020/06/12 16:26:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5953099240552596596
2020/06/12 16:27:12 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6057641756664895211
2020/06/12 16:27:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6083822096003411781
2020/06/12 16:27:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6205754862154661839
2020/06/12 16:28:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6215731304109765961
2020/06/12 16:28:47 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6296575898841968917
2020/06/12 16:29:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6350919186060242363
2020/06/12 16:29:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-639960606487313597
2020/06/12 16:29:55 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6456869725426655556
2020/06/12 16:30:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6500304581377895856
2020/06/12 16:30:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6653618561107033017
2020/06/12 16:31:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6729114271842268893
2020/06/12 16:31:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6775995433221542520
2020/06/12 16:31:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6817922588763015267
2020/06/12 16:32:13 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7199599500362353884
2020/06/12 16:32:30 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7252901290386312490
2020/06/12 16:32:58 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7292037842589943866
2020/06/12 16:33:24 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7369060240242835464
2020/06/12 16:33:40 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7382157219112354290
2020/06/12 16:33:56 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7417716994895301914
2020/06/12 16:34:22 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7454183675389434080
2020/06/12 16:34:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7537987304515815459
2020/06/12 16:34:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7693588145466990158
2020/06/12 16:35:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7793135634219297619
2020/06/12 16:35:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7836504974793015945
2020/06/12 16:35:51 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7844648380161784907
2020/06/12 16:36:17 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7863549980287682432
2020/06/12 16:36:33 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8075091395649869677
2020/06/12 16:36:49 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8107431922140390994
2020/06/12 16:37:06 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8212326920035395934
2020/06/12 16:37:32 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8343083231986017479
2020/06/12 16:37:49 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8419113724231589749
2020/06/12 16:38:15 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8479013015637121848
2020/06/12 16:38:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8513324427187718577
2020/06/12 16:38:57 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8518715734984959063
2020/06/12 16:39:13 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8523409579138213660
2020/06/12 16:39:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8623262108381621889
2020/06/12 16:39:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8756990262427217335
2020/06/12 16:40:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8792193062271299449
2020/06/12 16:40:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8929497185392422181
2020/06/12 16:40:53 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8969595858080325411
2020/06/12 16:41:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8998942493828795857
2020/06/12 16:41:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9035098292990692788
2020/06/12 16:42:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9081526900987647109
2020/06/12 16:42:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9122166340107529186
2020/06/12 16:42:48 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9126839716162034978
2020/06/12 16:43:14 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9219402473155355765
2020/06/12 16:43:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-961530247773045243
2020/06/12 16:43:59 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
2020/06/12 16:43:59 [DEBUG] Running Sweepers for region (us-east-1):
2020/06/12 16:43:59 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-east-1)
...
2020/06/12 16:44:01 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-east-1)
2020/06/12 16:44:02 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-east-1)
2020/06/12 16:44:02 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-east-1:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:44:02 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-east-1:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:44:02 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2149.008s
```

Output from sweeper in AWS GovCloud (US):

```
2020/06/12 16:44:12 [DEBUG] Running Sweepers for region (us-gov-west-1):
2020/06/12 16:44:12 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-gov-west-1)
...
2020/06/12 16:44:15 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-gov-west-1)
2020/06/12 16:44:15 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-gov-west-1)
2020/06/12 16:44:16 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:44:16 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:44:16 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1079359272588390431
2020/06/12 16:44:32 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1091721403030643061
2020/06/12 16:44:49 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-124118701737104973
2020/06/12 16:45:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1469479908550615785
2020/06/12 16:45:21 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1495328979254299097
2020/06/12 16:45:37 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1570192552920022875
2020/06/12 16:45:53 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1702879253617485878
2020/06/12 16:46:10 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1733051630240083998
2020/06/12 16:46:26 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1738132548683597872
2020/06/12 16:46:42 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1805662976645609271
2020/06/12 16:47:09 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2062192335317079329
2020/06/12 16:47:25 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2069707065133575272
2020/06/12 16:47:41 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2150453984918292807
2020/06/12 16:47:57 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-22275916688579299
2020/06/12 16:48:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2253671394065094375
2020/06/12 16:48:49 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2339228133098955551
2020/06/12 16:49:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2574156211684266178
2020/06/12 16:49:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2752762380700125995
2020/06/12 16:49:48 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2848989872978494094
2020/06/12 16:50:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2946953622752534318
2020/06/12 16:50:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3090104475356873478
2020/06/12 16:50:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3103740844478557513
2020/06/12 16:51:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3217263961319180477
2020/06/12 16:51:19 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-326240655165255790
2020/06/12 16:51:35 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3390004477179913570
2020/06/12 16:51:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3436726835335989273
2020/06/12 16:52:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-34375498090738970
2020/06/12 16:52:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3507721227677392471
2020/06/12 16:52:52 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3520766046891218589
2020/06/12 16:53:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-358056573252401799
2020/06/12 16:53:24 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3666070025503284267
2020/06/12 16:53:40 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3784109517244378956
2020/06/12 16:54:06 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3820898817682438418
2020/06/12 16:54:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4011506940693376517
2020/06/12 16:54:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4129453105226147385
2020/06/12 16:55:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4197907046127220584
2020/06/12 16:55:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4241770633343722587
2020/06/12 16:55:36 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4368985032101678892
2020/06/12 16:55:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4439420728626315697
2020/06/12 16:56:08 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4496714593119619411
2020/06/12 16:56:24 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4501204739468185120
2020/06/12 16:56:40 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4567042511816903030
2020/06/12 16:56:56 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4577682418065442379
2020/06/12 16:57:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4676535917872459824
2020/06/12 16:57:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4702765677836468414
2020/06/12 16:58:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-477025602905606478
2020/06/12 16:58:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4853695499339201595
2020/06/12 16:58:36 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4893123258322799210
2020/06/12 16:58:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5194606615636257359
2020/06/12 16:59:08 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5206318030543204649
2020/06/12 16:59:25 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-539729257610020514
2020/06/12 16:59:41 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5586108974564028837
2020/06/12 16:59:57 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5606817826525324114
2020/06/12 17:00:13 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5614593278380130199
2020/06/12 17:00:39 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5714164974269524343
2020/06/12 17:00:56 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5777601936334426422
2020/06/12 17:01:12 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5943809032881333271
2020/06/12 17:01:28 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6245031636814385264
2020/06/12 17:01:45 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6254238723968645778
2020/06/12 17:02:01 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6289699168039464661
2020/06/12 17:02:17 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-629892732581660436
2020/06/12 17:02:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-637710366700534262
2020/06/12 17:02:50 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6416618778353496698
2020/06/12 17:03:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6469841988342455847
2020/06/12 17:03:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6574546048640787759
2020/06/12 17:03:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6716032750032290186
2020/06/12 17:03:54 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6716265721765535018
2020/06/12 17:04:10 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6875491434630647580
2020/06/12 17:04:26 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7044978827743853716
2020/06/12 17:04:42 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-705583589249211132
2020/06/12 17:04:58 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-710929199183527839
2020/06/12 17:05:15 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7138691677249010592
2020/06/12 17:05:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7826596618679709446
2020/06/12 17:05:48 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7826762715546186838
2020/06/12 17:06:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7861646026289255697
2020/06/12 17:06:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7867972157839323201
2020/06/12 17:06:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7940736878705957151
2020/06/12 17:07:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7979796976286617461
2020/06/12 17:07:18 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8029412752402447798
2020/06/12 17:07:34 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8107260796896052449
2020/06/12 17:08:00 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-819058898540929989
2020/06/12 17:08:16 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8308574199723922186
2020/06/12 17:08:32 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8348767479935320744
2020/06/12 17:08:58 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8445543790345720213
2020/06/12 17:09:14 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8459315989560723109
2020/06/12 17:09:30 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-852133974718322774
2020/06/12 17:09:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-857313015089578341
2020/06/12 17:10:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8667170982155728193
2020/06/12 17:10:18 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8699906308846331113
2020/06/12 17:10:35 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-872591246763788047
2020/06/12 17:10:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8743345519762083033
2020/06/12 17:11:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8904882139544984054
2020/06/12 17:11:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8937249607375741125
2020/06/12 17:11:50 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9001311395659872235
2020/06/12 17:12:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9036553020323666542
2020/06/12 17:12:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9101050942840404948
2020/06/12 17:12:37 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9175494597999527555
2020/06/12 17:13:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-922326287809433763
2020/06/12 17:13:20 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1749.481s
```
@pauldraper
Copy link

pauldraper commented Jun 13, 2020

Without CloudFormation support, of course.

But next day support in Terraform (on a fork). hashicorp/terraform-provider-aws#13740

@anoopkapoor
Copy link

Delete capacity providers functionality is now available through cli/sdk/api/console in all regions!
https://aws.amazon.com/about-aws/whats-new/2020/06/amazon-ecs-capacity-providers-support-delete-functionality/

bflad added a commit to hashicorp/terraform-provider-aws that referenced this issue Jun 16, 2020
…13740)

Reference: aws/containers-roadmap#632
Reference: #11286
Reference: #13459
Reference: #13722

Output from acceptance testing:

```
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScalingPartial (77.79s)
--- PASS: TestAccAWSEcsCapacityProvider_basic (78.73s)
--- PASS: TestAccAWSEcsCapacityProvider_ManagedScaling (79.56s)
--- PASS: TestAccAWSEcsCapacityProvider_disappears (88.48s)
--- PASS: TestAccAWSEcsCapacityProvider_Tags (112.82s)
```

Output from sweeper in AWS Commercial:

```
2020/06/12 16:08:13 [DEBUG] Running Sweepers for region (us-west-2):
2020/06/12 16:08:13 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-west-2)
...
2020/06/12 16:08:15 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-west-2)
2020/06/12 16:08:16 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-west-2)
2020/06/12 16:08:17 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:08:17 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:08:17 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1166119573944741428
2020/06/12 16:08:43 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1214316862074147523
2020/06/12 16:09:09 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1448279580068890702
2020/06/12 16:09:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-1694934460247763588
2020/06/12 16:09:51 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2072503336804561742
2020/06/12 16:10:07 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2771105388423480732
2020/06/12 16:10:33 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-2945353957962800997
2020/06/12 16:10:50 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3144225916222141066
2020/06/12 16:11:16 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3925899594298666043
2020/06/12 16:11:42 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3962150016779598144
2020/06/12 16:11:58 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-3963492166120243961
2020/06/12 16:12:14 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4003358451789399294
2020/06/12 16:12:25 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4028268499646425502
2020/06/12 16:12:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4153885072251016984
2020/06/12 16:13:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4166399643645447747
2020/06/12 16:13:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4171445239693757279
2020/06/12 16:14:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4172310795125459583
2020/06/12 16:14:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4229992971219388054
2020/06/12 16:14:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4288136819760104193
2020/06/12 16:15:12 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4349585972519622956
2020/06/12 16:15:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4381531870881126840
2020/06/12 16:15:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4390982455513240070
2020/06/12 16:16:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4453882168869869465
2020/06/12 16:16:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4462346553509157188
2020/06/12 16:17:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4492435413472368421
2020/06/12 16:17:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4555905932664127708
2020/06/12 16:17:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4820010642292065959
2020/06/12 16:18:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4897792034669269783
2020/06/12 16:18:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-4952273456961512581
2020/06/12 16:18:53 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5007546636648720970
2020/06/12 16:19:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5089921342587722398
2020/06/12 16:19:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5131511394050367988
2020/06/12 16:20:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5143960229157641932
2020/06/12 16:20:28 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5222153959641548243
2020/06/12 16:20:44 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5269370732004417053
2020/06/12 16:21:00 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5275218636337132552
2020/06/12 16:21:26 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5313165225435669238
2020/06/12 16:21:52 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5317601343303819317
2020/06/12 16:22:08 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5372605070603715784
2020/06/12 16:22:34 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5412502102769973938
2020/06/12 16:23:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5487876079860998491
2020/06/12 16:23:18 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5567555810195504947
2020/06/12 16:23:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5581045694666886319
2020/06/12 16:24:01 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5662285056233848789
2020/06/12 16:24:27 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5713399100773622260
2020/06/12 16:24:43 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5726353295792014153
2020/06/12 16:25:10 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5865493350582185130
2020/06/12 16:25:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-591073430861682304
2020/06/12 16:26:03 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5930476252063755904
2020/06/12 16:26:19 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5937268970324997212
2020/06/12 16:26:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-5953099240552596596
2020/06/12 16:27:12 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6057641756664895211
2020/06/12 16:27:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6083822096003411781
2020/06/12 16:27:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6205754862154661839
2020/06/12 16:28:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6215731304109765961
2020/06/12 16:28:47 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6296575898841968917
2020/06/12 16:29:02 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6350919186060242363
2020/06/12 16:29:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-639960606487313597
2020/06/12 16:29:55 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6456869725426655556
2020/06/12 16:30:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6500304581377895856
2020/06/12 16:30:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6653618561107033017
2020/06/12 16:31:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6729114271842268893
2020/06/12 16:31:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6775995433221542520
2020/06/12 16:31:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-6817922588763015267
2020/06/12 16:32:13 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7199599500362353884
2020/06/12 16:32:30 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7252901290386312490
2020/06/12 16:32:58 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7292037842589943866
2020/06/12 16:33:24 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7369060240242835464
2020/06/12 16:33:40 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7382157219112354290
2020/06/12 16:33:56 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7417716994895301914
2020/06/12 16:34:22 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7454183675389434080
2020/06/12 16:34:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7537987304515815459
2020/06/12 16:34:54 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7693588145466990158
2020/06/12 16:35:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7793135634219297619
2020/06/12 16:35:36 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7836504974793015945
2020/06/12 16:35:51 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7844648380161784907
2020/06/12 16:36:17 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-7863549980287682432
2020/06/12 16:36:33 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8075091395649869677
2020/06/12 16:36:49 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8107431922140390994
2020/06/12 16:37:06 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8212326920035395934
2020/06/12 16:37:32 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8343083231986017479
2020/06/12 16:37:49 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8419113724231589749
2020/06/12 16:38:15 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8479013015637121848
2020/06/12 16:38:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8513324427187718577
2020/06/12 16:38:57 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8518715734984959063
2020/06/12 16:39:13 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8523409579138213660
2020/06/12 16:39:29 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8623262108381621889
2020/06/12 16:39:45 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8756990262427217335
2020/06/12 16:40:11 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8792193062271299449
2020/06/12 16:40:38 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8929497185392422181
2020/06/12 16:40:53 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8969595858080325411
2020/06/12 16:41:20 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-8998942493828795857
2020/06/12 16:41:46 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9035098292990692788
2020/06/12 16:42:04 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9081526900987647109
2020/06/12 16:42:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9122166340107529186
2020/06/12 16:42:48 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9126839716162034978
2020/06/12 16:43:14 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-9219402473155355765
2020/06/12 16:43:31 [INFO] Deleting ECS Capacity Provider: arn:aws:ecs:us-west-2:--OMITTED--:capacity-provider/tf-acc-test-961530247773045243
2020/06/12 16:43:59 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
2020/06/12 16:43:59 [DEBUG] Running Sweepers for region (us-east-1):
2020/06/12 16:43:59 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-east-1)
...
2020/06/12 16:44:01 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-east-1)
2020/06/12 16:44:02 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-east-1)
2020/06/12 16:44:02 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-east-1:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:44:02 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws:ecs:us-east-1:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:44:02 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2149.008s
```

Output from sweeper in AWS GovCloud (US):

```
2020/06/12 16:44:12 [DEBUG] Running Sweepers for region (us-gov-west-1):
2020/06/12 16:44:12 [DEBUG] Running Sweeper (aws_ecs_service) in region (us-gov-west-1)
...
2020/06/12 16:44:15 [DEBUG] Running Sweeper (aws_ecs_cluster) in region (us-gov-west-1)
2020/06/12 16:44:15 [DEBUG] Running Sweeper (aws_ecs_capacity_provider) in region (us-gov-west-1)
2020/06/12 16:44:16 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/FARGATE
2020/06/12 16:44:16 [INFO] Skipping AWS managed ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/FARGATE_SPOT
2020/06/12 16:44:16 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1079359272588390431
2020/06/12 16:44:32 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1091721403030643061
2020/06/12 16:44:49 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-124118701737104973
2020/06/12 16:45:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1469479908550615785
2020/06/12 16:45:21 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1495328979254299097
2020/06/12 16:45:37 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1570192552920022875
2020/06/12 16:45:53 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1702879253617485878
2020/06/12 16:46:10 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1733051630240083998
2020/06/12 16:46:26 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1738132548683597872
2020/06/12 16:46:42 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-1805662976645609271
2020/06/12 16:47:09 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2062192335317079329
2020/06/12 16:47:25 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2069707065133575272
2020/06/12 16:47:41 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2150453984918292807
2020/06/12 16:47:57 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-22275916688579299
2020/06/12 16:48:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2253671394065094375
2020/06/12 16:48:49 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2339228133098955551
2020/06/12 16:49:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2574156211684266178
2020/06/12 16:49:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2752762380700125995
2020/06/12 16:49:48 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2848989872978494094
2020/06/12 16:50:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-2946953622752534318
2020/06/12 16:50:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3090104475356873478
2020/06/12 16:50:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3103740844478557513
2020/06/12 16:51:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3217263961319180477
2020/06/12 16:51:19 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-326240655165255790
2020/06/12 16:51:35 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3390004477179913570
2020/06/12 16:51:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3436726835335989273
2020/06/12 16:52:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-34375498090738970
2020/06/12 16:52:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3507721227677392471
2020/06/12 16:52:52 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3520766046891218589
2020/06/12 16:53:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-358056573252401799
2020/06/12 16:53:24 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3666070025503284267
2020/06/12 16:53:40 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3784109517244378956
2020/06/12 16:54:06 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-3820898817682438418
2020/06/12 16:54:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4011506940693376517
2020/06/12 16:54:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4129453105226147385
2020/06/12 16:55:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4197907046127220584
2020/06/12 16:55:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4241770633343722587
2020/06/12 16:55:36 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4368985032101678892
2020/06/12 16:55:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4439420728626315697
2020/06/12 16:56:08 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4496714593119619411
2020/06/12 16:56:24 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4501204739468185120
2020/06/12 16:56:40 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4567042511816903030
2020/06/12 16:56:56 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4577682418065442379
2020/06/12 16:57:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4676535917872459824
2020/06/12 16:57:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4702765677836468414
2020/06/12 16:58:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-477025602905606478
2020/06/12 16:58:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4853695499339201595
2020/06/12 16:58:36 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-4893123258322799210
2020/06/12 16:58:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5194606615636257359
2020/06/12 16:59:08 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5206318030543204649
2020/06/12 16:59:25 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-539729257610020514
2020/06/12 16:59:41 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5586108974564028837
2020/06/12 16:59:57 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5606817826525324114
2020/06/12 17:00:13 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5614593278380130199
2020/06/12 17:00:39 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5714164974269524343
2020/06/12 17:00:56 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5777601936334426422
2020/06/12 17:01:12 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-5943809032881333271
2020/06/12 17:01:28 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6245031636814385264
2020/06/12 17:01:45 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6254238723968645778
2020/06/12 17:02:01 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6289699168039464661
2020/06/12 17:02:17 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-629892732581660436
2020/06/12 17:02:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-637710366700534262
2020/06/12 17:02:50 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6416618778353496698
2020/06/12 17:03:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6469841988342455847
2020/06/12 17:03:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6574546048640787759
2020/06/12 17:03:38 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6716032750032290186
2020/06/12 17:03:54 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6716265721765535018
2020/06/12 17:04:10 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-6875491434630647580
2020/06/12 17:04:26 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7044978827743853716
2020/06/12 17:04:42 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-705583589249211132
2020/06/12 17:04:58 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-710929199183527839
2020/06/12 17:05:15 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7138691677249010592
2020/06/12 17:05:33 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7826596618679709446
2020/06/12 17:05:48 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7826762715546186838
2020/06/12 17:06:04 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7861646026289255697
2020/06/12 17:06:20 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7867972157839323201
2020/06/12 17:06:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7940736878705957151
2020/06/12 17:07:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-7979796976286617461
2020/06/12 17:07:18 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8029412752402447798
2020/06/12 17:07:34 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8107260796896052449
2020/06/12 17:08:00 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-819058898540929989
2020/06/12 17:08:16 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8308574199723922186
2020/06/12 17:08:32 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8348767479935320744
2020/06/12 17:08:58 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8445543790345720213
2020/06/12 17:09:14 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8459315989560723109
2020/06/12 17:09:30 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-852133974718322774
2020/06/12 17:09:46 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-857313015089578341
2020/06/12 17:10:02 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8667170982155728193
2020/06/12 17:10:18 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8699906308846331113
2020/06/12 17:10:35 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-872591246763788047
2020/06/12 17:10:51 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8743345519762083033
2020/06/12 17:11:07 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8904882139544984054
2020/06/12 17:11:23 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-8937249607375741125
2020/06/12 17:11:50 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9001311395659872235
2020/06/12 17:12:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9036553020323666542
2020/06/12 17:12:22 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9101050942840404948
2020/06/12 17:12:37 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-9175494597999527555
2020/06/12 17:13:05 [INFO] Deleting ECS Capacity Provider: arn:aws-us-gov:ecs:us-gov-west-1:--OMITTED--:capacity-provider/tf-acc-test-922326287809433763
2020/06/12 17:13:20 Sweeper Tests ran successfully:
	- aws_ecs_service
	- aws_ecs_cluster
	- aws_ecs_capacity_provider
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1749.481s
```
@chrizonline
Copy link

chrizonline commented Aug 5, 2020

So all of that just to create a new copy of the capacity provider.

The other "gotcha" to be aware of when using Terraform for this approach is resource lifecycle management. As shown below, specifying create_before_destroy on the ASG is required in order to ensure that the new ASG->capacity-provider pair are provisioned prior to deleting the old ASG.

  lifecycle {
    ignore_changes = [desired_capacity]
    create_before_destroy = true
  }

Hi @eddgrant, does this mean that there will be plenty of ghost capacity provider left in aws?

@chrizonline
Copy link

Delete capacity providers functionality is now available through cli/sdk/api/console in all regions!
https://aws.amazon.com/about-aws/whats-new/2020/06/amazon-ecs-capacity-providers-support-delete-functionality/

Hi @anoopkapoor, I tried deleting with aws cli but im getting the following error.

> aws ecs delete-capacity-provider --capacity-provider arn:aws:ecs:ap-southeast-1:...:capacity-provider/myCapacityProvider
> Invalid choice: 'delete-capacity-provider', maybe you meant:

  * create-capacity-provider
  * describe-capacity-providers

aws cli version

aws --version
aws-cli/2.0.4 Python/3.7.4 Darwin/19.5.0 botocore/2.0.0dev8

@anoopkapoor
Copy link

Delete capacity providers functionality is now available through cli/sdk/api/console in all regions!
https://aws.amazon.com/about-aws/whats-new/2020/06/amazon-ecs-capacity-providers-support-delete-functionality/

Hi @anoopkapoor, I tried deleting with aws cli but im getting the following error.

> aws ecs delete-capacity-provider --capacity-provider arn:aws:ecs:ap-southeast-1:...:capacity-provider/myCapacityProvider
> Invalid choice: 'delete-capacity-provider', maybe you meant:

  * create-capacity-provider
  * describe-capacity-providers

aws cli version

aws --version
aws-cli/2.0.4 Python/3.7.4 Darwin/19.5.0 botocore/2.0.0dev8

Hi! Your CLIv2 version is from March. If you update that to the latest version, it will work just fine.

@chrizonline
Copy link

Delete capacity providers functionality is now available through cli/sdk/api/console in all regions!
https://aws.amazon.com/about-aws/whats-new/2020/06/amazon-ecs-capacity-providers-support-delete-functionality/

Hi @anoopkapoor, I tried deleting with aws cli but im getting the following error.

> aws ecs delete-capacity-provider --capacity-provider arn:aws:ecs:ap-southeast-1:...:capacity-provider/myCapacityProvider
> Invalid choice: 'delete-capacity-provider', maybe you meant:

  * create-capacity-provider
  * describe-capacity-providers

aws cli version

aws --version
aws-cli/2.0.4 Python/3.7.4 Darwin/19.5.0 botocore/2.0.0dev8

Hi! Your CLIv2 version is from March. If you update that to the latest version, it will work just fine.

Hi @anoopkapoor, thank you it works!!!!

@gblikas
Copy link

gblikas commented Dec 17, 2020

@anoopkapoor Do you know if there is a corresponding issue registered with Terraform? It still seems to me that it's the case that even in terraform version

terraform --version                      
Terraform v0.14.2
+ provider registry.terraform.io/hashicorp/aws v3.20.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

this issue still persists. I tried searching through the issues on their github issues, but wasn't able to find anything.

@rmccarthy-ellevation
Copy link

Can we get a force delete so that deleted caps don't just hang around. It's annoying when testing or building a pipeline to have to change the name everytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECS Amazon Elastic Container Service
Projects
None yet
Development

No branches or pull requests