EcsFunctions

Functions

Link copied to clipboard

The ECS Cluster data source allows access to details of a specific cluster within an AWS ECS service.

suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult
suspend fun getCluster(clusterName: String, tags: Map<String, String>? = null): GetClusterResult
Link copied to clipboard

The ECS container definition data source allows access to details of a specific container within an AWS ECS service.

suspend fun getContainerDefinition(containerName: String, taskDefinition: String): GetContainerDefinitionResult
Link copied to clipboard

The ECS Service data source allows access to details of a specific Service within a AWS ECS Cluster.

suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult
suspend fun getService(clusterArn: String, serviceName: String, tags: Map<String, String>? = null): GetServiceResult
Link copied to clipboard

The ECS task definition data source allows access to details of a specific AWS ECS task definition.

suspend fun getTaskDefinition(taskDefinition: String): GetTaskDefinitionResult
Link copied to clipboard

Data source for managing an AWS ECS (Elastic Container) Task Execution. This data source calls the RunTask API, allowing execution of one-time tasks that don't fit a standard resource lifecycle. See the feature request issue for additional context.

suspend fun getTaskExecution(capacityProviderStrategies: List<GetTaskExecutionCapacityProviderStrategy>? = null, cluster: String, desiredCount: Int? = null, enableEcsManagedTags: Boolean? = null, enableExecuteCommand: Boolean? = null, group: String? = null, launchType: String? = null, networkConfiguration: GetTaskExecutionNetworkConfiguration? = null, overrides: GetTaskExecutionOverrides? = null, placementConstraints: List<GetTaskExecutionPlacementConstraint>? = null, placementStrategies: List<GetTaskExecutionPlacementStrategy>? = null, platformVersion: String? = null, propagateTags: String? = null, referenceId: String? = null, startedBy: String? = null, tags: Map<String, String>? = null, taskDefinition: String): GetTaskExecutionResult