Skip to content

pelotech/sample-ecs-fargate-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample ecs polar service

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.main resource
aws_ecs_service.this resource
aws_ecs_task_definition.this resource
aws_iam_role.execution resource
aws_iam_role.task resource
aws_iam_role_policy.log_agent resource
aws_iam_role_policy.task_execution resource
aws_iam_role_policy_attachment.s3_full_permissions resource
aws_lb.this resource
aws_lb_listener.http resource
aws_lb_listener.https resource
aws_lb_target_group.this resource
aws_security_group.ecs resource
aws_security_group.lb resource
aws_security_group_rule.ecs_egress_service resource
aws_security_group_rule.ecs_whitelist_http resource
aws_security_group_rule.lb_egress_service resource
aws_security_group_rule.lb_whitelist_http resource
aws_security_group_rule.lb_whitelist_https resource
aws_iam_policy.s3_full_access data source
aws_iam_policy_document.read_repository_credentials data source
aws_iam_policy_document.task_assume data source
aws_iam_policy_document.task_execution_permissions data source
aws_iam_policy_document.task_log_permissions data source

Inputs

Name Description Type Default Required
acm_ssl_cert_arn arn to the tls cert for the alb any n/a yes
application_port n/a number 80 no
database_security_group_id database security group if needed string "" no
ecs_cluster_id id for the cluster the service will be deployed to any n/a yes
enable_https n/a bool true no
enable_https_redirect n/a bool true no
environment n/a any n/a yes
environment_variables list of env var to inject ie [{name = ENV_NAME, value = ENV_VALUE}] list(any) [] no
image_name image name with full repository path any n/a yes
image_tag tag or sha for the image any n/a yes
name name for the service and prefix on resources any n/a yes
owner n/a any n/a yes
public_subnet_ids n/a any n/a yes
region n/a any n/a yes
secrets_from list of secrects to inject ie [ {"name" = "ENV_VAR", "valueFrom" ="arn:to:secretmanager:key"}] list(any) [] no
task_command The command that is passed to the container. list(string) [] no
task_container_definitions_file Container definitions template file location relative to path.module string "templates/container_definitions.json" no
vpc_id vpc id for deploying all the resources any n/a yes

Outputs

Name Description
ecs_security_group_id n/a

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages