github.com/wata727/tflint@v0.12.2-0.20191013070026-96dd0d36f385/rules/awsrules/models/mappings/ecs.hcl (about) 1 import = "aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json" 2 3 mapping "aws_ecs_cluster" { 4 name = String 5 tags = Tags 6 } 7 8 mapping "aws_ecs_service" { 9 name = String 10 task_definition = String 11 desired_count = BoxedInteger 12 launch_type = LaunchType 13 platform_version = String 14 scheduling_strategy = SchedulingStrategy 15 cluster = String 16 iam_role = String 17 deployment_controller = DeploymentController 18 deployment_maximum_percent = BoxedInteger 19 deployment_minimum_healthy_percent = BoxedInteger 20 enable_ecs_managed_tags = Boolean 21 propagate_tags = PropagateTags 22 ordered_placement_strategy = PlacementStrategies 23 health_check_grace_period_seconds = BoxedInteger 24 load_balancer = LoadBalancers 25 placement_constraints = PlacementConstraints 26 network_configuration = NetworkConfiguration 27 service_registries = ServiceRegistries 28 tags = Tags 29 } 30 31 mapping "aws_ecs_task_definition" { 32 family = String 33 container_definitions = ContainerDefinitions 34 task_role_arn = String 35 execution_role_arn = String 36 network_mode = NetworkMode 37 ipc_mode = IpcMode 38 pid_mode = PidMode 39 volume = VolumeList 40 placement_constraints = TaskDefinitionPlacementConstraints 41 cpu = String 42 memory = String 43 requires_compatibilities = CompatibilityList 44 tags = Tags 45 } 46 47 test "aws_ecs_service" "launch_type" { 48 ok = "FARGATE" 49 ng = "POD" 50 } 51 52 test "aws_ecs_service" "propagate_tags" { 53 ok = "SERVICE" 54 ng = "CONTAINER" 55 } 56 57 test "aws_ecs_service" "scheduling_strategy" { 58 ok = "REPLICA" 59 ng = "SERVER" 60 } 61 62 test "aws_ecs_task_definition" "ipc_mode" { 63 ok = "host" 64 ng = "vpc" 65 } 66 67 test "aws_ecs_task_definition" "network_mode" { 68 ok = "bridge" 69 ng = "vpc" 70 } 71 72 test "aws_ecs_task_definition" "pid_mode" { 73 ok = "task" 74 ng = "awsvpc" 75 }