Skip to content

Commit e8d40c6

Browse files
committed
correct doc and remove comment lines
1 parent 8d07529 commit e8d40c6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

internal/service/ecs/capacity_provider_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,6 @@ func TestAccECSCapacityProvider_createManagedInstancesProvider_withInfrastructur
437437
resource.TestCheckResourceAttr(resourceName, "managed_instances_provider.0.infrastructure_optimization.0.scale_in_after", "300"),
438438
),
439439
},
440-
// {
441-
// ResourceName: resourceName,
442-
// ImportState: true,
443-
// ImportStateVerify: true,
444-
// },
445440
{
446441
Config: testAccCapacityProviderConfig_managedInstancesProvider_withInfrastructureOptimization(rName, 0),
447442
Check: resource.ComposeAggregateTestCheckFunc(
@@ -480,7 +475,7 @@ func testAccCheckCapacityProviderDestroy(ctx context.Context) resource.TestCheck
480475
return err
481476
}
482477

483-
return fmt.Errorf("ECS Capacity ProviderID %s still exists", rs.Primary.ID)
478+
return fmt.Errorf("ECS Capacity Provider ID %s still exists", rs.Primary.ID)
484479
}
485480

486481
return nil

website/docs/r/ecs_capacity_provider.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This resource supports the following arguments:
122122
* `infrastructure_role_arn` - (Required) The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS uses to manage instances on your behalf. This role must have permissions to launch, terminate, and manage Amazon EC2 instances, as well as access to other AWS services required for Amazon ECS Managed Instances functionality. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the Amazon ECS Developer Guide.
123123
* `instance_launch_template` - (Required) The launch template configuration that specifies how Amazon ECS should launch Amazon EC2 instances. This includes the instance profile, network configuration, storage settings, and instance requirements for attribute-based instance type selection. For more information, see [Store instance launch parameters in Amazon EC2 launch templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the Amazon EC2 User Guide. Detailed below.
124124
* `propagate_tags` - (Optional) Specifies whether to propagate tags from the capacity provider to the Amazon ECS Managed Instances. When enabled, tags applied to the capacity provider are automatically applied to all instances launched by this provider. Valid values are `CAPACITY_PROVIDER` and `NONE`.
125-
* `infrastructure_optimization` - (Optional) Defines how Amazon ECS Managed Instances optimizes the infrastastructure in your capacity provider. Configure it to turn on or off the infrastructure optimization in your capacity provider, and to control the idle EC2 instances optimization delay.
125+
* `infrastructure_optimization` - (Optional) Defines how Amazon ECS Managed Instances optimizes the infrastructure in your capacity provider. Configure it to turn on or off the infrastructure optimization in your capacity provider, and to control the idle EC2 instances optimization delay.
126126

127127
### `instance_launch_template`
128128

0 commit comments

Comments
 (0)