resource "aws_ecs_task_definition" "aprsgw" { family = "aprsgw" runtime_platform { cpu_architecture = "ARM64" } container_definitions = jsonencode( [ { cpu = 0 "environment" : [ { "name" : "AWS_REGION", "value" : "us-east-1" }, { "name" : "AWS_DEFAULT_REGION", "value" : "us-east-1" }, { "name" : "CALLSIGN", "value" : "VK3FUR" }, { "name" : "SNS", "value" : aws_sns_topic.ham_telem.arn } ], essential = true image = "143841941773.dkr.ecr.us-east-1.amazonaws.com/aprsgw:latest" logConfiguration = { logDriver = "awslogs" options = { awslogs-group = "/ecs/aprsgw" awslogs-region = "us-east-1" awslogs-stream-prefix = "ecs" } } mountPoints = [] name = "aprsgw" portMappings = [] ulimits = [] volumesFrom = [] }, ] ) cpu = "256" execution_role_arn = "arn:aws:iam::143841941773:role/aprsgw" memory = "512" network_mode = "awsvpc" requires_compatibilities = [ "FARGATE", ] tags = {} task_role_arn = "arn:aws:iam::143841941773:role/aprsgw" } resource "aws_iam_role" "aprsgw" { name = "aprsgw" description = "Allows EC2 instances to call AWS services on your behalf." assume_role_policy = <