ECSFargateProvider: Create an ECS Fargate cloud provider

Description Usage Arguments Value Examples

View source: R/ECSFargateProvider-method.R

Description

Create an ECS Fargate cloud provider. Note that the arguments for the function are the settings for ECS fargate. You can find them in the AWS ECS console.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ECSFargateProvider(
  clusterName = "R-worker-cluster",
  serverTaskDefName = "R-server-task-definition",
  workerTaskDefName = "R-worker-task-definition",
  securityGroupName = "R-parallel-security-group",
  vpcId = NULL,
  subnetId = NULL,
  securityGroupId = NULL,
  internetGatewayId = NULL,
  routeTableId = NULL,
  taskExecRoleId = NULL,
  enableWorkerPublicIp = TRUE,
  logDriver = c("auto", "none", "awslogs", "awsfirelens", "splunk"),
  logOptions = list(),
  region = aws.ecx::aws_get_region()
)

Arguments

clusterName

Character, the cluster name in ECS Fargate

serverTaskDefName, workerTaskDefName

Character, the task defintion name for the server and worker

securityGroupName

Character, the security group name

vpcId, subnetId, securityGroupId, internetGatewayId, routeTableId, taskExecRoleId

The ID/ARN of the resources for the container

enableWorkerPublicIp

Logical, whether to enable the public IP for the worker. If this value is FALSE, the worker will not be able to pull the container image from the public network

logDriver

Character, the log driver, if logDriver = "auto", the awslogs will be used

logOptions

Named list, the options for the log driver

region

Character, the region of the ECS computing cluster

Value

a ECSFargateProvider object

Examples

1
provider <- ECSFargateProvider()

ECSFargateProvider documentation built on May 18, 2021, 9:06 a.m.