Create Capacity Provider
| ecs_create_capacity_provider | R Documentation |
Creates a capacity provider¶
Description¶
Creates a capacity provider. Capacity providers are associated with a
cluster and are used in capacity provider strategies to facilitate
cluster auto scaling. You can create capacity providers for Amazon ECS
Managed Instances and EC2 instances. Fargate has the predefined
FARGATE and FARGATE_SPOT capacity providers.
Usage¶
ecs_create_capacity_provider(name, cluster, autoScalingGroupProvider,
managedInstancesProvider, tags)
Arguments¶
name |
[required] The name of the capacity provider. Up to 255
characters are allowed. They include letters (both upper and lowercase
letters), numbers, underscores (_), and hyphens (-). The name can't be
prefixed with " |
cluster |
The name of the cluster to associate with the capacity provider. When you create a capacity provider with Amazon ECS Managed Instances, it becomes available only within the specified cluster. |
autoScalingGroupProvider |
The details of the Auto Scaling group for the capacity provider. |
managedInstancesProvider |
The configuration for the Amazon ECS Managed Instances provider. This configuration specifies how Amazon ECS manages Amazon EC2 instances on your behalf, including the infrastructure role, instance launch template, and tag propagation settings. |
tags |
The metadata that you apply to the capacity provider to categorize and organize them more conveniently. Each tag consists of a key and an optional value. You define both of them. The following basic restrictions apply to tags:
|
Value¶
A list with the following syntax:
list(
capacityProvider = list(
capacityProviderArn = "string",
name = "string",
cluster = "string",
status = "PROVISIONING"|"ACTIVE"|"DEPROVISIONING"|"INACTIVE",
autoScalingGroupProvider = list(
autoScalingGroupArn = "string",
managedScaling = list(
status = "ENABLED"|"DISABLED",
targetCapacity = 123,
minimumScalingStepSize = 123,
maximumScalingStepSize = 123,
instanceWarmupPeriod = 123
),
managedTerminationProtection = "ENABLED"|"DISABLED",
managedDraining = "ENABLED"|"DISABLED"
),
managedInstancesProvider = list(
infrastructureRoleArn = "string",
instanceLaunchTemplate = list(
ec2InstanceProfileArn = "string",
networkConfiguration = list(
subnets = list(
"string"
),
securityGroups = list(
"string"
)
),
storageConfiguration = list(
storageSizeGiB = 123
),
localStorageConfiguration = list(
useLocalStorage = TRUE|FALSE
),
monitoring = "BASIC"|"DETAILED",
capacityOptionType = "ON_DEMAND"|"SPOT"|"RESERVED",
instanceMetadataTagsPropagation = TRUE|FALSE,
instanceRequirements = list(
vCpuCount = list(
min = 123,
max = 123
),
memoryMiB = list(
min = 123,
max = 123
),
cpuManufacturers = list(
"intel"|"amd"|"amazon-web-services"
),
memoryGiBPerVCpu = list(
min = 123.0,
max = 123.0
),
excludedInstanceTypes = list(
"string"
),
instanceGenerations = list(
"current"|"previous"
),
spotMaxPricePercentageOverLowestPrice = 123,
onDemandMaxPricePercentageOverLowestPrice = 123,
bareMetal = "included"|"required"|"excluded",
burstablePerformance = "included"|"required"|"excluded",
requireHibernateSupport = TRUE|FALSE,
networkInterfaceCount = list(
min = 123,
max = 123
),
localStorage = "included"|"required"|"excluded",
localStorageTypes = list(
"hdd"|"ssd"
),
totalLocalStorageGB = list(
min = 123.0,
max = 123.0
),
baselineEbsBandwidthMbps = list(
min = 123,
max = 123
),
acceleratorTypes = list(
"gpu"|"fpga"|"inference"
),
acceleratorCount = list(
min = 123,
max = 123
),
acceleratorManufacturers = list(
"amazon-web-services"|"amd"|"nvidia"|"xilinx"|"habana"
),
acceleratorNames = list(
"a100"|"inferentia"|"k520"|"k80"|"m60"|"radeon-pro-v520"|"t4"|"vu9p"|"v100"|"a10g"|"h100"|"t4g"
),
acceleratorTotalMemoryMiB = list(
min = 123,
max = 123
),
networkBandwidthGbps = list(
min = 123.0,
max = 123.0
),
allowedInstanceTypes = list(
"string"
),
maxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123
),
fipsEnabled = TRUE|FALSE,
capacityReservations = list(
reservationGroupArn = "string",
reservationPreference = "RESERVATIONS_ONLY"|"RESERVATIONS_FIRST"|"RESERVATIONS_EXCLUDED"
)
),
propagateTags = "CAPACITY_PROVIDER"|"NONE",
infrastructureOptimization = list(
scaleInAfter = 123
),
autoRepairConfiguration = list(
actionsStatus = "ENABLED"|"DISABLED"
)
),
updateStatus = "CREATE_IN_PROGRESS"|"CREATE_COMPLETE"|"CREATE_FAILED"|"DELETE_IN_PROGRESS"|"DELETE_COMPLETE"|"DELETE_FAILED"|"UPDATE_IN_PROGRESS"|"UPDATE_COMPLETE"|"UPDATE_FAILED",
updateStatusReason = "string",
tags = list(
list(
key = "string",
value = "string"
)
),
type = "EC2_AUTOSCALING"|"MANAGED_INSTANCES"|"FARGATE"|"FARGATE_SPOT"
)
)
Request syntax¶
svc$create_capacity_provider(
name = "string",
cluster = "string",
autoScalingGroupProvider = list(
autoScalingGroupArn = "string",
managedScaling = list(
status = "ENABLED"|"DISABLED",
targetCapacity = 123,
minimumScalingStepSize = 123,
maximumScalingStepSize = 123,
instanceWarmupPeriod = 123
),
managedTerminationProtection = "ENABLED"|"DISABLED",
managedDraining = "ENABLED"|"DISABLED"
),
managedInstancesProvider = list(
infrastructureRoleArn = "string",
instanceLaunchTemplate = list(
ec2InstanceProfileArn = "string",
networkConfiguration = list(
subnets = list(
"string"
),
securityGroups = list(
"string"
)
),
storageConfiguration = list(
storageSizeGiB = 123
),
localStorageConfiguration = list(
useLocalStorage = TRUE|FALSE
),
monitoring = "BASIC"|"DETAILED",
capacityOptionType = "ON_DEMAND"|"SPOT"|"RESERVED",
instanceMetadataTagsPropagation = TRUE|FALSE,
instanceRequirements = list(
vCpuCount = list(
min = 123,
max = 123
),
memoryMiB = list(
min = 123,
max = 123
),
cpuManufacturers = list(
"intel"|"amd"|"amazon-web-services"
),
memoryGiBPerVCpu = list(
min = 123.0,
max = 123.0
),
excludedInstanceTypes = list(
"string"
),
instanceGenerations = list(
"current"|"previous"
),
spotMaxPricePercentageOverLowestPrice = 123,
onDemandMaxPricePercentageOverLowestPrice = 123,
bareMetal = "included"|"required"|"excluded",
burstablePerformance = "included"|"required"|"excluded",
requireHibernateSupport = TRUE|FALSE,
networkInterfaceCount = list(
min = 123,
max = 123
),
localStorage = "included"|"required"|"excluded",
localStorageTypes = list(
"hdd"|"ssd"
),
totalLocalStorageGB = list(
min = 123.0,
max = 123.0
),
baselineEbsBandwidthMbps = list(
min = 123,
max = 123
),
acceleratorTypes = list(
"gpu"|"fpga"|"inference"
),
acceleratorCount = list(
min = 123,
max = 123
),
acceleratorManufacturers = list(
"amazon-web-services"|"amd"|"nvidia"|"xilinx"|"habana"
),
acceleratorNames = list(
"a100"|"inferentia"|"k520"|"k80"|"m60"|"radeon-pro-v520"|"t4"|"vu9p"|"v100"|"a10g"|"h100"|"t4g"
),
acceleratorTotalMemoryMiB = list(
min = 123,
max = 123
),
networkBandwidthGbps = list(
min = 123.0,
max = 123.0
),
allowedInstanceTypes = list(
"string"
),
maxSpotPriceAsPercentageOfOptimalOnDemandPrice = 123
),
fipsEnabled = TRUE|FALSE,
capacityReservations = list(
reservationGroupArn = "string",
reservationPreference = "RESERVATIONS_ONLY"|"RESERVATIONS_FIRST"|"RESERVATIONS_EXCLUDED"
)
),
propagateTags = "CAPACITY_PROVIDER"|"NONE",
infrastructureOptimization = list(
scaleInAfter = 123
),
autoRepairConfiguration = list(
actionsStatus = "ENABLED"|"DISABLED"
)
),
tags = list(
list(
key = "string",
value = "string"
)
)
)