<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amit Sadafule on Medium]]></title>
        <description><![CDATA[Stories by Amit Sadafule on Medium]]></description>
        <link>https://medium.com/@amit.sadafule?source=rss-1bac81fe5593------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gvonii72pJz8lgC8WickfA.jpeg</url>
            <title>Stories by Amit Sadafule on Medium</title>
            <link>https://medium.com/@amit.sadafule?source=rss-1bac81fe5593------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:45:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amit.sadafule/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Securely Deploying Prefect flow in AWS ECS with Github actions — Part I]]></title>
            <link>https://medium.com/@amit.sadafule/securely-deploying-prefect-flow-in-aws-ecs-with-github-actions-part-i-ea63d24925d9?source=rss-1bac81fe5593------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea63d24925d9</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[prefect]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[aws-ecs]]></category>
            <dc:creator><![CDATA[Amit Sadafule]]></dc:creator>
            <pubDate>Sun, 26 Oct 2025 13:56:53 GMT</pubDate>
            <atom:updated>2025-10-26T13:56:53.772Z</atom:updated>
            <content:encoded><![CDATA[<h3>Securely Deploying Prefect flow in AWS ECS with Github actions — Part I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JeeD2XZkLzyCi0Pa" /><figcaption>Photo by <a href="https://unsplash.com/@pavanarya_711?utm_source=medium&amp;utm_medium=referral">Kondagurla Pavan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://www.prefect.io/">Prefect</a> is very lightweight, easy to understand and python native workflow orchestration tool. It is very easy to write task, create DAG flows and test the entire flow using few simple commands on local machine.</p><p>Prefect cloud has good and easy integration steps for running flow on ECS however when it comes to Prefect Open Source edition, steps are not well documented on how to create a deployment yaml file and which parameters should be set to run the flow on ECS in private subnet and without exposing flow to public network.</p><p>This is first part of the blog where I am sharing how I have setup Prefect Open Source edition entirely on ECS, in private subnet using Terraform.</p><h3>Assumptions</h3><ol><li>You have private subnet in custom VPC on AWS where you want to deploy the Prefect.</li><li>You are planning to use Terraform to deploy Prefect.</li><li>You already have a ECS cluster.</li><li>This setup assumes below Terraform project structure</li></ol><pre>.<br>├── environments<br>│   └── dev<br>│       ├── backends.tf<br>│       ├── ignore.auto.tfvars<br>│       ├── main.tf<br>│       ├── providers.tf<br>│       ├── variables.tf<br>│       └── versions.tf<br>├── modules<br>│   ├── prefect-ecs<br>│   │   ├── main.tf<br>│   │   ├── outputs.tf<br>│   │   └── variables.tf<br>│   ├── prefect-ecs-deployment-role<br>│   │   ├── main.tf<br>│   │   ├── outputs.tf<br>│   │   └── variables.tf<br>│   ├── prefect-ecs-role<br>│   │   ├── main.tf<br>│   │   ├── outputs.tf<br>│   │   └── variables.tf<br>└── README.md</pre><h3>Terraform Modules</h3><h4>Prefect ECS Role</h4><p>This module is to create task roles required for Prefect server and worker tasks in ECS. Create files in below folder structure and place the code for the corresponding file</p><p>./modules/prefect-ecs-role/main.tf</p><pre>locals {<br>  ecr_arns = [<br>    for repo in var.ecr_repos :<br>    &quot;arn:aws:ecr:${var.region}:${var.account_id}:repository/${repo}&quot;<br>  ]<br>}<br><br>data &quot;aws_iam_policy_document&quot; &quot;combined&quot; {<br>  statement {<br>    sid    = &quot;CloudWatchLogsOptional&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;logs:CreateLogStream&quot;,<br>      &quot;logs:PutLogEvents&quot;,<br>    ]<br>    resources = [&quot;arn:aws:logs:${var.region}:${var.account_id}:log-group:${var.log_group}:*&quot;]<br>  }<br>  statement {<br>    sid    = &quot;ECS&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;ecs:RegisterTaskDefinition&quot;,<br>      &quot;ecs:DeregisterTaskDefinition&quot;,<br>      &quot;ecs:DescribeTaskDefinition&quot;,<br>      &quot;ecs:RunTask&quot;,<br>      &quot;ecs:StartTask&quot;,<br>      &quot;ecs:StopTask&quot;,<br>      &quot;ecs:DescribeTasks&quot;,<br>      &quot;ecs:ListTasks&quot;<br>    ]<br>    resources = [&quot;arn:aws:ecs:${var.region}:${var.account_id}:task-definition/prefect-flow:*&quot;]<br>  }<br><br>  statement {<br>    sid    = &quot;ECSAllowAll&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;ecs:DescribeTaskDefinition&quot;,<br>    ]<br>    resources = [&quot;*&quot;]<br>  }<br><br>  statement {<br>    sid    = &quot;ESCCluster&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;ecs:DescribeTaskDefinition&quot;,<br>      &quot;ecs:TagResource&quot;,<br>      &quot;ecs:DescribeTasks&quot;,<br>    ]<br>    resources = [&quot;arn:aws:ecs:${var.region}:${var.account_id}:task/${var.cluster_name}/*&quot;]<br>  }<br><br>  statement {<br>    sid    = &quot;VPC&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;ec2:DescribeVpcs&quot;,<br>      &quot;ec2:DescribeSubnets&quot;<br>    ]<br>    resources = [&quot;*&quot;]<br>  }<br><br>  statement {<br>    sid       = &quot;PassExecutionRole&quot;<br>    effect    = &quot;Allow&quot;<br>    actions   = [&quot;iam:PassRole&quot;]<br>    resources = var.passrole_arns<br>    condition {<br>      test     = &quot;StringEquals&quot;<br>      variable = &quot;iam:PassedToService&quot;<br>      values   = [&quot;ecs-tasks.amazonaws.com&quot;]<br>    }<br>  }<br><br>  statement {<br>    sid    = &quot;ECRAccess&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;ecr:BatchGetImage&quot;,<br>      &quot;ecr:GetDownloadUrlForLayer&quot;<br>    ]<br>    resources = local.ecr_arns<br>  }<br>}<br><br>resource &quot;aws_iam_role&quot; &quot;role&quot; {<br>  name = &quot;${var.name}-prefect-task-role&quot;<br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;,<br>    Statement = [{<br>      Effect    = &quot;Allow&quot;,<br>      Principal = { Service = &quot;ecs-tasks.amazonaws.com&quot; },<br>      Action    = &quot;sts:AssumeRole&quot;<br>    }]<br>  })<br>  tags = var.tags<br>}<br><br>resource &quot;aws_iam_policy&quot; &quot;policy&quot; {<br>  name   = &quot;${var.name}-prefect-task-policy&quot;<br>  policy = data.aws_iam_policy_document.combined.json<br>  tags   = var.tags<br>}<br><br>resource &quot;aws_iam_role_policy_attachment&quot; &quot;attachment&quot; {<br>  role       = aws_iam_role.role.name<br>  policy_arn = aws_iam_policy.policy.arn<br>}</pre><p>./modules/prefect-ecs-role/outputs.tf</p><pre>output &quot;role_arn&quot; {<br>  value       = aws_iam_role.role.arn<br>  description = &quot;Role ARN&quot;<br>}</pre><p>./modules/prefect-ecs-role/variables.tf</p><pre>variable &quot;name&quot; {<br>  description = &quot;Name prefix for resources.&quot;<br>  type        = string<br>}<br><br>variable &quot;cluster_name&quot; {<br>  type = string<br>}<br><br>variable &quot;account_id&quot; {<br>  type = string<br>}<br><br>variable &quot;region&quot; {<br>  type    = string<br>  default = &quot;ap-south-1&quot;<br>}<br><br>variable &quot;log_group&quot; {<br>  type = string<br>}<br><br>variable &quot;passrole_arns&quot; {<br>  type = list(string)<br>}<br><br>variable &quot;ecr_repos&quot; {<br>  type = list(string)<br>}<br><br>variable &quot;tags&quot; {<br>  description = &quot;Tags to apply to resources.&quot;<br>  type        = map(string)<br>  default     = {}<br>}</pre><h4>Prefect ECS Deployment Role</h4><p>This is task role for prefect workflow ECS task.</p><p>./modules/prefect-ecs-deployment-role/main.tf</p><pre>data &quot;aws_iam_policy_document&quot; &quot;combined&quot; {<br>  statement {<br>    sid    = &quot;CloudWatchLogsOptional&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;logs:CreateLogStream&quot;,<br>      &quot;logs:PutLogEvents&quot;,<br>    ]<br>    resources = [&quot;arn:aws:logs:${var.region}:${var.account_id}:log-group:${var.log_group}:*&quot;]<br>  }<br>  statement {<br>    sid       = &quot;ReadAppSecrets&quot;<br>    effect    = &quot;Allow&quot;<br>    actions   = [&quot;secretsmanager:GetSecretValue&quot;]<br>    resources = [&quot;arn:aws:secretsmanager:${var.region}:${var.account_id}:secret:${var.secret_name}*&quot;]<br>  }<br><br>  statement {<br>    sid       = &quot;ECRAuthToken&quot;<br>    effect    = &quot;Allow&quot;<br>    actions   = [&quot;ecr:GetAuthorizationToken&quot;]<br>    resources = [&quot;*&quot;]<br>  }<br>}<br><br>resource &quot;aws_iam_role&quot; &quot;role&quot; {<br>  name = &quot;${var.name}-prefect-deployment-task-role&quot;<br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;,<br>    Statement = [{<br>      Effect    = &quot;Allow&quot;,<br>      Principal = { Service = &quot;ecs-tasks.amazonaws.com&quot; },<br>      Action    = &quot;sts:AssumeRole&quot;<br>    }]<br>  })<br>  tags = var.tags<br>}<br><br>resource &quot;aws_iam_policy&quot; &quot;policy&quot; {<br>  name   = &quot;${var.name}-prefect-deployment-task-policy&quot;<br>  policy = data.aws_iam_policy_document.combined.json<br>  tags   = var.tags<br>}<br><br>resource &quot;aws_iam_role_policy_attachment&quot; &quot;attachment&quot; {<br>  role       = aws_iam_role.role.name<br>  policy_arn = aws_iam_policy.policy.arn<br>}<br><br>resource &quot;aws_iam_role_policy_attachment&quot; &quot;ecs_execution_policy&quot; {<br>  role       = aws_iam_role.role.name<br>  policy_arn = &quot;arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy&quot;<br>}</pre><p>Above role will get access to</p><ul><li>Read access to secret managers — All app secrets are stored in secret manager</li><li>ECR get token access</li></ul><p>you can add additional policies required by your workflow e.g. if your workflow needs access to a buckets in S3 you can add below policy in aws_iam_policy_document</p><pre>statement {<br>    sid    = &quot;ApplicationBucketsList&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;s3:ListBucket&quot;<br>    ]<br>    resources = var.application_buckets<br>  }<br><br>statement {<br>    sid    = &quot;ApplicationBuckets&quot;<br>    effect = &quot;Allow&quot;<br>    actions = [<br>      &quot;s3:PutObject&quot;,<br>      &quot;s3:GetObject&quot;<br>    ]<br>    resources = [<br>      for bucket in var.application_buckets : &quot;${bucket}/*&quot;<br>    ]<br>  }</pre><p>./modules/prefect-ecs-deployment-role/outputs.tf</p><pre>output &quot;role_arn&quot; {<br>  value       = aws_iam_role.role.arn<br>  description = &quot;Role ARN&quot;<br>}</pre><p>./modules/prefect-ecs-deployment-role/variables.tf</p><pre>variable &quot;name&quot; {<br>  description = &quot;Name prefix for the resources.&quot;<br>  type        = string<br>}<br><br>variable &quot;account_id&quot; {<br>  type = string<br>}<br><br>variable &quot;region&quot; {<br>  type    = string<br>  default = &quot;ap-south-1&quot;<br>}<br><br>variable &quot;log_group&quot; {<br>  type = string<br>}<br><br>variable &quot;secret_name&quot; {<br>  type = string<br>}<br><br>variable &quot;tags&quot; {<br>  description = &quot;Tags to apply to resources.&quot;<br>  type        = map(string)<br>  default     = {}<br>}</pre><h4>Prefect ECS module</h4><p>This is main module which is responsible for creating prefect server and worker ECS tasks and services</p><p>./modules/prefect-ecs/main.tf</p><pre>locals {<br>  server_name = &quot;${var.name}-prefect-srv&quot;<br>  worker_name = &quot;${var.name}-prefect-worker&quot;<br>  flow_name   = &quot;${var.name}-prefect-flow&quot;<br>}<br>resource &quot;aws_lb_target_group&quot; &quot;main&quot; {<br>  name        = &quot;${local.server_name}-tg&quot;<br>  port        = var.server_container_port<br>  protocol    = &quot;HTTP&quot;<br>  vpc_id      = var.vpc_id<br>  target_type = &quot;ip&quot;<br><br>  health_check {<br>    enabled             = true<br>    healthy_threshold   = 2<br>    unhealthy_threshold = 5<br>    timeout             = 30<br>    interval            = 60<br>    path                = var.healthcheck_endpoint<br>    matcher             = var.healthcheck_status<br>    port                = var.server_container_port<br>    protocol            = &quot;HTTP&quot;<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.server_name}-tg&quot; })<br>}<br><br>resource &quot;aws_security_group&quot; &quot;ecs_server_tasks&quot; {<br>  name        = &quot;${local.server_name}-ecs-tasks-sg&quot;<br>  description = &quot;Security group for ECS tasks&quot;<br>  vpc_id      = var.vpc_id<br><br>  ingress {<br>    from_port       = 0<br>    to_port         = 65535<br>    protocol        = &quot;tcp&quot;<br>    security_groups = [var.alb_security_group_id]<br>  }<br><br>  ingress {<br>    from_port       = var.server_container_port<br>    to_port         = var.server_container_port<br>    protocol        = &quot;tcp&quot;<br>    security_groups = concat([aws_security_group.ecs_worker_tasks.id, aws_security_group.ecs_flow_tasks.id], var.allowed_sg_ids_for_server_access)<br>    description     = &quot;Allow ECS workers to call server API directly&quot;<br>  }<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.server_name}-ecs-tasks-sg&quot; })<br>}<br><br>resource &quot;aws_ecs_task_definition&quot; &quot;server&quot; {<br>  family                   = local.server_name<br>  network_mode             = &quot;awsvpc&quot;<br>  requires_compatibilities = [&quot;FARGATE&quot;]<br>  cpu                      = var.server_cpu<br>  memory                   = var.server_memory<br>  execution_role_arn       = var.ecs_execution_role_arn<br>  task_role_arn            = var.ecs_task_role_arn<br><br>  container_definitions = jsonencode([<br>    {<br>      name      = local.server_name<br>      image     = &quot;prefecthq/prefect:3-latest&quot;<br>      essential = true<br>      cpu       = var.server_cpu<br>      memory    = var.server_memory<br>      command = [<br>        &quot;sh&quot;,<br>        &quot;-c&quot;,<br>        &quot;prefect server start --host 0.0.0.0 --port 4200&quot;<br>      ]<br><br>      portMappings = [<br>        {<br>          containerPort = var.server_container_port<br>          hostPort      = var.server_container_port<br>          protocol      = &quot;tcp&quot;<br>        }<br>      ]<br><br>      environment = [<br>        {<br>          name  = &quot;PREFECT_API_URL&quot;<br>          value = &quot;http://${var.domain}/api&quot;<br>        }<br>      ]<br><br>      secrets = [<br>        {<br>          &quot;valueFrom&quot; : &quot;arn:aws:secretsmanager:${var.region}:${var.account_id}:secret:${var.secret_name}:PREFECT_SERVER_API_AUTH_STRING::&quot;,<br>          &quot;name&quot; : &quot;PREFECT_SERVER_API_AUTH_STRING&quot;<br>        }<br>      ]<br><br>      logConfiguration = {<br>        logDriver = &quot;awslogs&quot;<br>        options = {<br>          awslogs-group         = var.log_group_name<br>          awslogs-region        = var.region<br>          awslogs-stream-prefix = &quot;ecs&quot;<br>        }<br>      }<br>    }<br>  ])<br><br>  tags = merge(var.tags, { Name = &quot;${local.server_name}-task&quot; })<br>}<br><br>resource &quot;aws_service_discovery_service&quot; &quot;server&quot; {<br>  name = local.server_name<br><br>  dns_config {<br>    namespace_id = var.private_dns_namespace_id<br>    dns_records {<br>      type = &quot;A&quot;<br>      ttl  = 10<br>    }<br>    routing_policy = &quot;MULTIVALUE&quot;<br>  }<br>  tags = merge(var.tags, { Name = &quot;${var.name}-service-discovery&quot; })<br>}<br><br>resource &quot;aws_ecs_service&quot; &quot;server&quot; {<br>  name                              = &quot;${local.server_name}-service&quot;<br>  cluster                           = var.ecs_cluster_id<br>  desired_count                     = var.desired_count<br>  launch_type                       = &quot;FARGATE&quot;<br>  platform_version                  = &quot;LATEST&quot;<br>  health_check_grace_period_seconds = var.service_health_check_grace_period_seconds<br><br>  task_definition = aws_ecs_task_definition.server.arn<br><br>  network_configuration {<br>    security_groups  = [aws_security_group.ecs_server_tasks.id]<br>    subnets          = var.private_subnet_ids<br>    assign_public_ip = false<br>  }<br><br>  load_balancer {<br>    target_group_arn = aws_lb_target_group.main.arn<br>    container_name   = local.server_name<br>    container_port   = var.server_container_port<br>  }<br><br>  service_registries {<br>    registry_arn = aws_service_discovery_service.server.arn<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.server_name}-ecs-service&quot; })<br>}<br><br>resource &quot;aws_ecs_task_definition&quot; &quot;worker&quot; {<br>  family                   = local.worker_name<br>  network_mode             = &quot;awsvpc&quot;<br>  requires_compatibilities = [&quot;FARGATE&quot;]<br>  cpu                      = var.worker_cpu<br>  memory                   = var.worker_memory<br>  execution_role_arn       = var.ecs_execution_role_arn<br>  task_role_arn            = var.ecs_task_role_arn<br><br>  container_definitions = jsonencode([<br>    {<br>      name      = local.worker_name<br>      image     = &quot;prefecthq/prefect:3-latest&quot;<br>      essential = true<br>      cpu       = 512<br>      memory    = 1024<br><br>      command = [<br>        &quot;/bin/sh&quot;,<br>        &quot;-c&quot;,<br>        &quot;pip install prefect-aws &amp;&amp; prefect worker start --pool ${var.worker_pool_name} --type ecs&quot;<br>      ]<br><br>      environment = [<br>        {<br>          name  = &quot;PREFECT_API_URL&quot;<br>          value = &quot;http://${local.server_name}.internal:4200/api&quot;<br>        }<br>      ]<br><br>      secrets = [<br>        {<br>          &quot;valueFrom&quot; : &quot;arn:aws:secretsmanager:${var.region}:${var.account_id}:secret:${var.secret_name}:PREFECT_SERVER_API_AUTH_STRING::&quot;,<br>          &quot;name&quot; : &quot;PREFECT_API_AUTH_STRING&quot;<br>        }<br>      ]<br><br>      logConfiguration = {<br>        logDriver = &quot;awslogs&quot;<br>        options = {<br>          awslogs-group         = var.log_group_name<br>          awslogs-region        = var.region<br>          awslogs-stream-prefix = &quot;ecs&quot;<br>        }<br>      }<br>    }<br>  ])<br><br>  tags = merge(var.tags, { Name = &quot;${local.worker_name}-task&quot; })<br>}<br><br>resource &quot;aws_security_group&quot; &quot;ecs_worker_tasks&quot; {<br>  name        = &quot;${local.worker_name}-ecs-tasks-sg&quot;<br>  description = &quot;Security group for ECS tasks&quot;<br>  vpc_id      = var.vpc_id<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.worker_name}-ecs-tasks-sg&quot; })<br>}<br><br>resource &quot;aws_ecs_service&quot; &quot;worker&quot; {<br>  name                              = &quot;${local.worker_name}-service&quot;<br>  cluster                           = var.ecs_cluster_id<br>  desired_count                     = var.desired_count<br>  launch_type                       = &quot;FARGATE&quot;<br>  platform_version                  = &quot;LATEST&quot;<br>  health_check_grace_period_seconds = var.service_health_check_grace_period_seconds<br>  enable_execute_command            = true<br><br>  task_definition = aws_ecs_task_definition.worker.arn<br><br>  network_configuration {<br>    security_groups  = [aws_security_group.ecs_worker_tasks.id]<br>    subnets          = var.private_subnet_ids<br>    assign_public_ip = false<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.server_name}-ecs-service&quot; })<br>}<br><br><br>resource &quot;aws_security_group&quot; &quot;ecs_flow_tasks&quot; {<br>  name        = &quot;${local.flow_name}-ecs-tasks-sg&quot;<br>  description = &quot;Security group for ECS flow run tasks&quot;<br>  vpc_id      = var.vpc_id<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  tags = merge(var.tags, { Name = &quot;${local.flow_name}-ecs-tasks-sg&quot; })<br>}</pre><ul><li>This module assumes that you have already stored the auth string for prefect in secret manager with key as PREFECT_SERVER_API_AUTH_STRING</li><li>alb_security_group_id variable is used to allow traffic from ALB to prefect server. This setup is optional if you are not planning to host the prefect server under load balancer.</li><li>var.domain can be used if you want to host prefect and access it with a domain name outside the VPC. If you are only going to access it only inside the VPC the you can replace this with internal domain of the prefect as mentioned below.</li><li>Prefect server is accessible internally inside the VPC on <a href="http://${local.server_name}.internal:4200/api">http://${local.server_name}.internal:4200/api</a>. This <a href="http://${local.server_name}.internal:4200/api">${local.server_name}.internal</a> domain must be registered on private Route53. This is happening in aws_service_discovery_service.server resource.</li><li>var.private_dns_namespace_id is service discovery private dns namespace. You can first create private dns namespace as below and use aws_service_discovery_private_dns_namespace.ecs_namespace.id as value of above variable.</li></ul><pre>resource &quot;aws_service_discovery_private_dns_namespace&quot; &quot;ecs_namespace&quot; {<br>  name        = &quot;internal&quot;<br>  description = &quot;Private ECS DNS zone&quot;<br>  vpc         = var.vpc_id<br>  tags        = merge(var.tags, { Name = &quot;internal-namespace&quot; })<br>}</pre><ul><li>My suggestion is to push prefect fixed tag image to ECR and use private ECR for prefect server and worker task defination images.</li></ul><p>./modules/prefect-ecs/outputs.tf</p><pre>output &quot;server_sg_id&quot; {<br>  value = aws_security_group.ecs_server_tasks.id<br>}<br><br>output &quot;target_group_arn&quot; {<br>  value = aws_lb_target_group.main.arn<br>}<br><br>output &quot;server_port&quot; {<br>  value = var.server_container_port<br>}<br><br>output &quot;server_api_url&quot; {<br>  value = &quot;http://${local.server_name}.internal:4200/api&quot;<br>}<br><br>output &quot;flow_task_sg_id&quot; {<br>  value = aws_security_group.ecs_flow_tasks.id<br>}</pre><p>./modules/prefect-ecs/variables.tf</p><pre>variable &quot;name&quot; {<br>  description = &quot;Name prefix for resource.&quot;<br>  type        = string<br>}<br><br>variable &quot;region&quot; {<br>  type    = string<br>  default = &quot;ap-south-1&quot;<br>}<br><br>variable &quot;account_id&quot; {<br>  type = string<br>}<br><br>variable &quot;secret_name&quot; {<br>  type      = string<br>  sensitive = true<br>}<br><br>variable &quot;vpc_id&quot; {<br>  description = &quot;Existing VPC ID&quot;<br>}<br><br>variable &quot;alb_security_group_id&quot; {<br>  type = string<br>}<br><br>variable &quot;private_subnet_ids&quot; {<br>  description = &quot;List of private subnet IDs for ECS tasks&quot;<br>  type        = list(string)<br>}<br><br>variable &quot;ecs_cluster_id&quot; {<br>  type = string<br>}<br><br>variable &quot;ecs_execution_role_arn&quot; {<br>  type = string<br>}<br><br>variable &quot;ecs_task_role_arn&quot; {<br>  type    = string<br>  default = &quot;&quot;<br>}<br><br>variable &quot;log_group_name&quot; {<br>  type = string<br>}<br><br>variable &quot;desired_count&quot; {<br>  type    = number<br>  default = 1<br>}<br><br>variable &quot;healthcheck_endpoint&quot; {<br>  type = string<br>}<br><br>variable &quot;healthcheck_status&quot; {<br>  type    = string<br>  default = &quot;200&quot;<br>}<br><br>variable &quot;service_health_check_grace_period_seconds&quot; {<br>  type    = number<br>  default = 0<br>}<br><br>variable &quot;server_container_port&quot; {<br>  type    = number<br>  default = 4200<br>}<br><br>variable &quot;worker_cpu&quot; {<br>  type    = number<br>  default = 1024<br>}<br><br>variable &quot;worker_memory&quot; {<br>  type    = number<br>  default = 2048<br>}<br><br>variable &quot;server_cpu&quot; {<br>  type    = number<br>  default = 1024<br>}<br><br>variable &quot;server_memory&quot; {<br>  type    = number<br>  default = 2048<br>}<br><br>variable &quot;worker_pool_name&quot; {<br>  type    = string<br>  default = &quot;my-esc-pool&quot;<br>}<br><br>variable &quot;domain&quot; {<br>  description = &quot;Domain name for Prefect server (e.g., prefect.yourdomain.com)&quot;<br>  type        = string<br>}<br><br>variable &quot;allowed_sg_ids_for_server_access&quot; {<br>  description = &quot;List of security group ids of the services which want to access prefect server&quot;<br>  type    = list(string)<br>  default = []<br>}<br><br>variable &quot;private_dns_namespace_id&quot; {<br>  type = string<br>}<br><br>variable &quot;tags&quot; {<br>  default = {}<br>}</pre><ul><li>allowed_sg_ids_for_server_access variable can be useful if any other service e.g. backend services (ECS task), etc want to access prefect server. One of the use case could be if backend service wants trigger workflow via api call of prefect.</li></ul><h3>Wiring up all modules together</h3><p>All above modules can be wired up and used for any environment’s main file e.g. like below (this module call assumes folder structure mentioned above)</p><pre><br>module &quot;prefect-deployment-role&quot; {<br>  source              = &quot;../../modules/prefect-ecs-deployment-role&quot;<br>  log_group           = varr.ecs_log_group_name<br>  name                = var.name<br>  account_id          = local.account_id<br>  secret_name         = var.app_secret<br>}<br><br>module &quot;prefect-role&quot; {<br>  source        = &quot;../../modules/prefect-ecs-role&quot;<br>  log_group     = var.ecs_log_group_name<br>  name          = var.name<br>  account_id    = var.account_id<br>  cluster_name  = var.ecs_cluster_name<br>  passrole_arns = [module.prefect-deployment-role.role_arn]<br>  ecr_repos     = [var.prefect_workflow_ecr_repo_name]<br>}<br><br>module &quot;prefect-ecs&quot; {<br>  source                                    = &quot;../../modules/prefect-ecs&quot;<br>  alb_security_group_id                     = var.prefect_alb_security_group_id<br>  domain                                    = &quot;prefect.${var.domain}&quot;<br>  ecs_cluster_id                            = var.ecs_cluster_arn<br>  ecs_execution_role_arn                    = var.ecs_execution_role_arn<br>  ecs_task_role_arn                         = module.prefect-role.role_arn<br>  healthcheck_endpoint                      = &quot;/&quot;<br>  log_group_name                            = var.ecs_log_group_name<br>  name                                      = var.name<br>  private_subnet_ids                        = var.private_subnet_ids<br>  vpc_id                                    = var.vpc_id<br>  account_id                                = var.account_id<br>  secret_name                               = var.app_secret<br>  healthcheck_status                        = &quot;200&quot;<br>  service_health_check_grace_period_seconds = 10<br>  allowed_sg_ids_for_server_access          = [var.backend_task.security_group_id]<br>  private_dns_namespace_id                  = var.private_dns_namespace_id<br>}</pre><p>Above setup will create Prefect Server and worker tasks and services in ECS cluster mentioned. This will also register ECS worker in Prefect server.</p><h3>Few possible improvements</h3><ul><li>This tasks uses sqllite DB for prefect server. This can be issue while production setup. Use a proper RDS backed prefect server setup.</li><li>There are some changes required to run multi-worker setup as mentioned in <a href="https://docs-3.prefect.io/v3/advanced/self-hosted">https://docs-3.prefect.io/v3/advanced/self-hosted</a></li></ul><p>In next part, we will create a github CD pipeline for deploying workflow to ECS.</p><p>Stay tuned!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea63d24925d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helm incubator kafka setup with SSL auth]]></title>
            <link>https://medium.com/inspiredbrilliance/helm-incubator-kafka-setup-with-ssl-auth-7cf6fbe333d4?source=rss-1bac81fe5593------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cf6fbe333d4</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[helm-chart]]></category>
            <dc:creator><![CDATA[Amit Sadafule]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 14:04:02 GMT</pubDate>
            <atom:updated>2022-01-18T09:24:18.560Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wE73BB27i-KDnddC" /><figcaption>Photo by <a href="https://unsplash.com/@tateisimikito?utm_source=medium&amp;utm_medium=referral">Jukan Tateisi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Helm chart for incubator kafka is deprecated now. But still I feel this helm chart is very handy for doing PoC setup.<br>ref : <a href="https://github.com/helm/charts/tree/master/incubator/kafka">https://github.com/helm/charts/tree/master/incubator/kafka</a></blockquote><p>Incubator kafka helm chart supports SSL auth setup for brokers but it lacks documentation for doing so. I have struggled to get the setup right by going through their github only available links (mentioned below), which give some idea about the setup. I have used terraform for this setup. <br>Ref : <br><a href="https://github.com/helm/charts/issues/3951">https://github.com/helm/charts/issues/3951</a><br><a href="https://github.com/helm/charts/pull/7693">https://github.com/helm/charts/pull/7693</a></p><blockquote>Assumptions is you already have server truststore and keystore jks files for the kafka brokers</blockquote><p>Idea to do this setup, is first create secrets in Kubernetes setup in same namespace as incubator kafka installation. This secret should contain keystore and truststore contents along with passwords of these files.</p><p>I have created a custom helm chart storing storing secrets in kubernetes. Below is the template file for this helm chart</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c701a19425c1c6c12e284d7b1236cdde/href">https://medium.com/media/c701a19425c1c6c12e284d7b1236cdde/href</a></iframe><p>Values file for above helm chart contains</p><pre>keystoreJks: &quot;&lt;base64 encoded contents of keystore jks file&gt;&quot;<br>keystorePassword: &quot;&lt;base64 encoded password for keystore&gt;&quot;<br>truststoreJks: &quot;&lt;base64 encoded contents of truststore jks file&gt;&quot;<br>truststorePassword: &quot;&lt;base64 encoded password for truststore&gt;&quot;</pre><p>I have kept app.name as kafka-ssl-secret</p><p>Below is values file for incubator kafka helm chart</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1607ded69634121bf76d66ee3f44171/href">https://medium.com/media/c1607ded69634121bf76d66ee3f44171/href</a></iframe><p>Note that, keys name, secrete names and configurationOverrides ‘s ssl configurations names are <em>exactly same</em></p><p>Above values file, mounts all ssl related files in /etc/kafka/secrets folder which is read by incubator helm chart for ssl configs. You can find this from logs of the kafka pod</p><p>Terraform file for applying above charts</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3287188a2e342058cb6f9a51de00ee6f/href">https://medium.com/media/3287188a2e342058cb6f9a51de00ee6f/href</a></iframe><p>package-helm-chart.sh is a utility script to package custom chart. It can be</p><pre>helm package $1 --destination /&lt;destination folder&gt;</pre><p>Once applied you should see SSL applied to your kafka installation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cf6fbe333d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspiredbrilliance/helm-incubator-kafka-setup-with-ssl-auth-7cf6fbe333d4">Helm incubator kafka setup with SSL auth</a> was originally published in <a href="https://medium.com/inspiredbrilliance">inspiringbrilliance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Era of Shivaji Maharaj — Marathi Riyasat Part 1]]></title>
            <link>https://medium.com/@amit.sadafule/era-of-shivaji-maharaj-marathi-riyasat-part-1-264a542a6b84?source=rss-1bac81fe5593------2</link>
            <guid isPermaLink="false">https://medium.com/p/264a542a6b84</guid>
            <category><![CDATA[marathi]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[indian-history]]></category>
            <category><![CDATA[maratha-empire]]></category>
            <category><![CDATA[marathi-riyasat]]></category>
            <dc:creator><![CDATA[Amit Sadafule]]></dc:creator>
            <pubDate>Sat, 23 Oct 2021 10:49:06 GMT</pubDate>
            <atom:updated>2021-10-24T03:18:22.640Z</atom:updated>
            <content:encoded><![CDATA[<h3>Era of Shivaji Maharaj — Marathi Riyasat Part 1</h3><blockquote>History is ever evolving. It gets modified, updated and altered based on the facts discovered…</blockquote><p>This article is inspired by <strong><em>Marathi Riyasat</em></strong> book. The book is distributed in eight volumes, as is the historical research by Mr. G.S.Sardesai, on the Maratha Empire. This book is considered as the only integral and detailed historic resource available on the Maratha Empire spread over 250 years from the time of Malojiraje Bhosale till end of Maratha rule in 1818 A.D.</p><p>In this blog I have tried to cover era of Chatrapati Shivaji Maharaj from 1630 A.D till 1680 A.D. It is based on facts and findings described in Marathi Riyasat part 1 book. It involves ups and downs, victories and losses during this time-period.</p><p>I have tried to show entire time period in below timeline images. Please zoom the image for details</p><h3>1630–1650 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*THBO1ZIOlx81B1OcJ0qZcw.png" /></figure><h3>1653–1657 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9y2rJHHjS5sG3IGU75Hp5A.png" /></figure><h3>1658–1659 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pgFUvmNn7bEKWAar7b9vg.png" /></figure><h3>1660–1662 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pEKDohprlrWwN9EOImjcOQ.png" /></figure><h3>1663–1664 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*viOV7zCWY-j67smE9vGVyQ.png" /></figure><h3>1665 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FgMptmo5OcRuWcFhqV6fBw.png" /></figure><h3>1666–1668 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dW81m1jJaEeG8lMkzH9C-Q.png" /></figure><h3>1669–1671 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MgN7mtovji16NOm8JhOCw.png" /></figure><h3>1672–1674 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxTBj8iV_VEmpwgQLp1C0w.png" /></figure><h3>1675–1676 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9COHT63B3XPICwIGEdalMg.png" /></figure><h3>1677–1678 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1PgnA_6wAYl59wP9ROs0g.png" /></figure><h3>1679–1680 A.D</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YSfYnSddICo48U3eKXy_g.png" /></figure><blockquote>Above timeline is based on the facts, which were present at the time of book publication. It should change based on the new facts and discoveries.</blockquote><p>To develop above timeline, I have used <a href="https://github.com/amitsadafule/timeline">this</a> github project. It is still in development. PRs are welcome!! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264a542a6b84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upload files to AWS S3 using Apache Flume]]></title>
            <link>https://medium.com/inspiredbrilliance/upload-files-to-aws-s3-using-apache-flume-c3464f6a2092?source=rss-1bac81fe5593------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3464f6a2092</guid>
            <category><![CDATA[hdfs]]></category>
            <category><![CDATA[flume]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[upload-file-to-s3-flume]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Amit Sadafule]]></dc:creator>
            <pubDate>Fri, 21 Aug 2020 11:27:26 GMT</pubDate>
            <atom:updated>2020-08-22T04:16:24.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SL_jIVQkqbdpWT2I" /><figcaption>Photo by <a href="https://unsplash.com/@barkiple?utm_source=medium&amp;utm_medium=referral">John Barkiple</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When you choose Apache flume, there is no out-of-the box S3 sink available (at least till the date of the post). But there is one option available, to upload files to s3, which is HDFS sink. This sink uses Hadoop’s AWS module to do so. You can explore more about this module <a href="http://hadoop.apache.org/docs/current/hadoop-aws/tools/hadoop-aws/index.html">here</a>.</p><p>Apache Hadoop provides following 3 file systems for reading and writing data to S3.</p><ul><li><strong>S3N</strong> (URI scheme: s3n) : A native filesystem for reading and writing regular files on S3. S3N requires a suitable version of the jets3t JAR on the classpath. Max file size supported is 5GB.</li><li><strong>S3A</strong> (URI scheme: s3a) : Hadoop’s successor to the S3N filesystem. It supports partitioned uploads for many-GB objects (more than 5GB). It uses Amazon’s Java S3 SDK with support for latest S3 features and authentication schemes and many more features… Stable support of S3A is added in Hadoop 2.7 and later. Its previous connectors “s3”, and “s3n” are deprecated and/or deleted from recent Hadoop versions.</li><li><strong>S3</strong> (URI scheme: s3) : Apache Hadoop implementation of a block-based filesystem backed by S3. Apache Hadoop has deprecated use of this filesystem as of May 2016.</li></ul><h3>The Pain</h3><ul><li>Even though above sentences sound promising and encouraging, using HDFS sink to upload files to S3 is very painful, if you don’t know which version of aws libs, Hadoop libs and flume to use. It, for me, took almost a day to figure correct versions.</li><li>After versions then comes issue of AWS secrete keys. You can give S3 path to HDFS sink as below</li></ul><pre>agent.sinks.sinkName.hdfs.path = s3a://&lt;aws_access_key&gt;:&lt;aws_secret_key&gt;@testbucket</pre><p>If secrete key contains / then this URL does not work. This is an open <a href="https://issues.apache.org/jira/browse/FLUME-542">issue</a> in flume. You have to generate secret key which does not have slash in it.</p><ul><li>AWS region signing protocol version issue : Latest AWS regions, use V4 signing process. Because of this, above hdfs s3 path will not work out-of the box. You have to provide fs.s3a.endpoint setting to Hadoop. Detail of this issue can be found <a href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/bk_cloud-data-access/content/s3-per-bucket-region-configs.html">here</a>. List of regions supporting older signing process can be found <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html">here</a>. For Mumbai region, I had to provide fs.s3a.endpoint. This new process is added by AWS for enhanced security.</li><li>How to automate providing all required libraries with suitable version to Flume</li></ul><h3>The Solution</h3><p>After facing all above problems and countless google searches, I was finally able to configure flume to upload files to S3 using HDFS sink, successfully. Solution goes as below.</p><ul><li>Download and extract Apache Flume1.9.0</li><li>Set JAVA_HOME. I used java 11.0.2.</li><li>Add below pom file in root folder of flume (along side /bin folder). This pom will help you to download all necessary libraries to /lib folder of the flume.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f63521ce12f763870c6ceb90e832e13f/href">https://medium.com/media/f63521ce12f763870c6ceb90e832e13f/href</a></iframe><ul><li>Go to flume root directory from command line (to the location where pom.xml is located). And run below command.</li></ul><pre>mvn process-sources</pre><ul><li>Add core-site.xml file with below minimum configuration and save it to/conf folder under flume (along side flume properties file). With this way, you get support for AWS region V4 signing process and solution for slash in aws secret.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d1b4172c3cda4794ed149422dc88f0f/href">https://medium.com/media/7d1b4172c3cda4794ed149422dc88f0f/href</a></iframe><ul><li>Add hdfs path as below (without secret and access keys) in flume config file</li></ul><pre>agent.sinks.sinkName.type = hdfs<br>agent.sinks.sinkName.hdfs.path = s3a://testbucket</pre><ul><li>Entire folder structure is as follows</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*N3Um6Op7cFvhOWe8mEPeAA.png" /></figure><ul><li>Now run flume with below command from root folder of flume</li></ul><pre>bin/flume-ng agent -n agent -c conf -f conf/flume-conf.properties -Dflume.root.logger=INFO,console -Dflume.monitoring.type=http -Dflume.monitoring.port=34545</pre><p>If every thing goes well, you should be able to upload files to S3 using Apache flume.</p><p>References</p><ul><li><a href="https://aws.amazon.com/blogs/aws/amazon-s3-object-size-limit/">https://aws.amazon.com/blogs/aws/amazon-s3-object-size-limit/</a></li><li><a href="http://hadoop.apache.org/docs/current/hadoop-aws/tools/hadoop-aws/index.html#General_S3A_Client_configuration">http://hadoop.apache.org/docs/current/hadoop-aws/tools/hadoop-aws/index.html#General_S3A_Client_configuration</a></li><li><a href="https://cwiki.apache.org/confluence/display/HADOOP2/AmazonS3">https://cwiki.apache.org/confluence/display/HADOOP2/AmazonS3</a></li><li><a href="https://flume.apache.org/FlumeUserGuide.html">https://flume.apache.org/FlumeUserGuide.html</a></li><li><a href="https://stackoverflow.com/questions/33356041/technically-what-is-the-difference-between-s3n-s3a-and-s3#:~:text=The%20difference%20between%20s3n%20and,is%20the%20successor%20to%20s3n.">https://stackoverflow.com/questions/33356041/technically-what-is-the-difference-between-s3n-s3a-and-s3#:~:text=The%20difference%20between%20s3n%20and,is%20the%20successor%20to%20s3n.</a></li><li><a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html">https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html</a></li><li><a href="https://issues.apache.org/jira/browse/FLUME-542">https://issues.apache.org/jira/browse/FLUME-542</a></li><li><a href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/bk_cloud-data-access/content/s3-per-bucket-region-configs.html">https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/bk_cloud-data-access/content/s3-per-bucket-region-configs.html</a></li><li><a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region</a></li><li><a href="https://shout.setfive.com/2016/05/04/apache-flume-setting-up-flume-for-an-s3-sink/">https://shout.setfive.com/2016/05/04/apache-flume-setting-up-flume-for-an-s3-sink/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3464f6a2092" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspiredbrilliance/upload-files-to-aws-s3-using-apache-flume-c3464f6a2092">Upload files to AWS S3 using Apache Flume</a> was originally published in <a href="https://medium.com/inspiredbrilliance">inspiringbrilliance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>