{"id":170,"date":"2021-02-14T17:43:00","date_gmt":"2021-02-14T17:43:00","guid":{"rendered":"http:\/\/blog.codeandtech.com\/blog\/?p=170"},"modified":"2021-02-14T17:47:11","modified_gmt":"2021-02-14T17:47:11","slug":"an-example-of-running-amazon-ecs-tasks-on-aws-fargate-terraform-by-hashicorp","status":"publish","type":"post","link":"https:\/\/blog.codeandtech.com\/blog\/2021\/02\/14\/an-example-of-running-amazon-ecs-tasks-on-aws-fargate-terraform-by-hashicorp\/","title":{"rendered":"An example of running Amazon ECS tasks on AWS Fargate &#8211; Terraform (By HashiCorp)"},"content":{"rendered":"\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\/fargate\" target=\"_blank\">AWS Fargate<\/a>&nbsp;is a a serverless compute engine that supports several common container use cases, like running micro-services architecture applications, batch processing, machine learning applications, and migrating on premise applications to the cloud without having to manage servers or clusters of Amazon EC2 instances.&nbsp;<\/p>\n\n\n\n<p>In this blog, we will walk you through a use case of running an Amazon ECS Task on AWS Fargate that can be initiated using AWS Step Functions. We will use Terraform to model the AWS infrastructure. The example solution leverages Amazon ECS a scalable, high performance container management service that supports Docker containers that are provisioned by Fargate to automatically scale, load balance, and manage scheduling of your containers for availability. For defining the infrastructure, you can use&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\/cloudformation\/\" target=\"_blank\">AWS CloudFormation<\/a>,&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\/cdk\/\" target=\"_blank\">AWS CDK<\/a>&nbsp;or Terraform by&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.hashicorp.com\/\" target=\"_blank\">HashiCorp<\/a>. In the solution presented in this post, we use&nbsp;&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.terraform.io\/intro\/\" target=\"_blank\">Terraform<\/a>&nbsp;by&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/hashicorp.com\/\" target=\"_blank\">HashiCorp<\/a>, an AWS Partner Network (APN) Advanced Technology Partner and member of the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\/solutions\/partners\/dev-ops\/\" target=\"_blank\">AWS DevOps Competency<\/a>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Read More <a href=\"https:\/\/aws.amazon.com\/blogs\/developer\/provision-aws-infrastructure-using-terraform-by-hashicorp-an-example-of-running-amazon-ecs-tasks-on-aws-fargate\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS Fargate&nbsp;is a a serverless compute engine that supports several common container use cases, like running micro-services architecture applications, batch processing, machine learning applications, and migrating on premise applications to the cloud without having to manage servers or clusters of Amazon EC2 instances.&nbsp; In this blog, we will walk you through a use case of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.codeandtech.com\/blog\/2021\/02\/14\/an-example-of-running-amazon-ecs-tasks-on-aws-fargate-terraform-by-hashicorp\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;An example of running Amazon ECS tasks on AWS Fargate &#8211; Terraform (By HashiCorp)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/posts\/170"}],"collection":[{"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":2,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/posts\/170\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.codeandtech.com\/blog\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}