Skip to content

A Terraform Module to create an ECS Task Definition and Daemon Service for deploying the Lacework Datacollector Agent in an Elastic Container Service (ECS) cluster.

License

Notifications You must be signed in to change notification settings

janeapp/terraform-aws-ecs-agent

 
 

Repository files navigation

terraform-aws-ecs-agent

GitHub release Codefresh build status

A Terraform Module to create an ECS Task Definition and Daemon Service for deploying the Lacework Datacollector Agent in an Elastic Container Service (ECS) cluster.

ECS Task Definition

The main.tf file will configure an ECS Task Definition which will then be used to run the Lacework Datacollector container.

ECS Daemon Service

The main.tf file will configure a daemon Service within the specified ECS Cluster which will run the Task Definition above.

Requirements

Name Version
terraform >= 0.14

Providers

Name Version
aws n/a
random n/a

Inputs

Name Description Type Default Required
ecs_cluster_arn The ARN of the ECS cluster in which to deploy the Lacework agent string n/a yes
ecs_launch_type The desired launch type for the Lacework agent ECS Service string "EC2" no
ecs_service_name The desired name for the Lacework agent ECS Service string "" no
ecs_task_family_name The desired name for the Lacework agent ECS Task Definition string "" no
iam_role_arn The IAM role ARN to use when use_existing_iam_role is true string "" no
iam_role_name The IAM role name to use when use_existing_iam_role is false string "" no
iam_role_tags The tags to apply to a created IAM role map(string) {} no
lacework_access_token The access token for the Lacework agent string n/a yes
lacework_datacollector_image The image used to deploy the Lacework datacollector. string "lacework/datacollector:latest" no
lacework_server_url The server URL for the Lacework agent string "" no
lacework_task_cpu The quantity of CPU units to assign to the task string "512" no
lacework_task_mem The quantity of Memory (MiB) to assign to the task string "512" no
resource_prefix A prefix that will be use at the beginning of every generated resource string "lacework-ecs" no
ssm_parameter_arn An existing SSM parameter ARN. Can be used when use_ssm_parameter_store is true string "" no
ssm_parameter_encrypted Set this to true if the SSM parameter is/should be encrypted bool false no
ssm_parameter_kms_arn The ARN of the KMS key to use when ssm_parameter_encrypted is true string "" no
ssm_parameter_name The name to use for the Lacework agent access token when using SSM string "/lacework/access_token" no
use_existing_iam_role Set this to true to use an existing IAM role bool false no
use_ssm_parameter_store Set this to true to use SSM to store the Lacework agent access token bool false no

Outputs

Name Description
iam_role_arn ARN of the IAM Role
lacework_datacollector_service_arn ARN of the created Service
lacework_datacollector_task_definition_arn ARN of the created Task Definition
ssm_parameter_arn The ARN of the SSM Parameter

About

A Terraform Module to create an ECS Task Definition and Daemon Service for deploying the Lacework Datacollector Agent in an Elastic Container Service (ECS) cluster.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 54.1%
  • HCL 43.2%
  • Makefile 2.7%