Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 14.2 KB

README.md

File metadata and controls

74 lines (61 loc) · 14.2 KB

terraform-script-runner-aws-ecs

This module deploys the script-runner server/worker as an AWS ECS service.

Requirements

  • A valid AWS account
  • A published docker container with both script-runner and your script of choice installed

Providers

Name Version
aws n/a

Modules

Name Source Version
script_runner_alb terraform-aws-modules/alb/aws ~> 5.0

Resources

Name Type
aws_acm_certificate.script_runner resource
aws_acm_certificate_validation.script_runner_cert resource
aws_ecs_service.labflow_script_runner resource
aws_ecs_service.labflow_script_worker resource
aws_ecs_task_definition.labflow_script_runner resource
aws_ecs_task_definition.labflow_script_worker resource
aws_elasticache_replication_group.celery_broker resource
aws_elasticache_subnet_group.celery_broker resource
aws_iam_policy.secrets_access resource
aws_iam_role_policy_attachment.secret_access resource
aws_route53_record.script_runner_alb resource
aws_route53_record.script_runner_validation resource
aws_secretsmanager_secret.basespace_cfg resource
aws_secretsmanager_secret_version.basespace_cfg resource
aws_security_group.celery_broker_firewall resource
aws_security_group.script_runner_firewall resource
aws_security_group.script_runner_lb resource
aws_security_group.script_worker_firewall resource
aws_caller_identity.current data source
aws_iam_policy_document.basespace_cfg_policy data source
aws_route53_zone.dns_zone data source

Inputs

Name Description Type Default Required
auth0_audience Audience for Auth0 client used to authenticate users calling script-runner's API. string n/a yes
auth0_client_id Identifier for Auth0 client used to authenticate users calling script-runner's API. string n/a yes
auth0_domain Domain for Auth0 client used to authenticate users calling script-runner's API. string n/a yes
auth_provider Auth provider to use for authentication/authorization. Supports 'auth0' and 'none'. string "auth0" no
aws_region n/a string "us-west-1" no
dns_subdomain Subdomain to prefix to dns_zone_name. API will be served under this subdomain. string "script-runner" no
dns_zone_id Identifier of the Route53 Hosted Zone for the parent domain of this instance of script-runner. string n/a yes
ecs_cluster_id Identifier of existing ECS cluster to deploy to. string n/a yes
ecs_task_execution_role_arn IAM role ARN to apply to running containers. Can be used to grant script access to AWS services (such as a database). Must match 'ecs_task_execution_role_name'. string n/a yes
ecs_task_execution_role_name IAM role name to apply to running containers. Can be used to grant script access to AWS services (such as a database). string n/a yes
image n/a string n/a yes
image_tag n/a string "latest" no
server_count Number of server container instances to run. number 1 no
stack_name Prefix for names of resources created by terraform. string "script-runner" no
vpc_cidr CIDR for VPC. string n/a yes
vpc_database_subnet_ids VPC database subnet ids. list(string) n/a yes
vpc_id Identier of existing VPC to deploy to. string n/a yes
vpc_public_subnet_ids VPC public subnet ids. list(string) n/a yes
worker_count Number of worker container instances to run. number 1 no

Outputs

No outputs.