{"id":1250,"date":"2021-08-31T09:18:32","date_gmt":"2021-08-31T09:18:32","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1250"},"modified":"2021-09-30T12:21:51","modified_gmt":"2021-09-30T12:21:51","slug":"increase-amazon-ecs-container-disk-space","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/","title":{"rendered":"How to Increase Amazon ECS Container Disk Space on Fargate?"},"content":{"rendered":"<p>If the underlying container host system runs out of disc storage, we&#8217;ll need to Increase Disk Space for <a href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/connect-database-fargate-ecs-task\/\"><strong>Amazon ECS Container on Fargate<\/strong><\/a>. Let&#8217;s have a look at how we might expand our disc space today<strong>.<\/strong><\/p>\n<p>Fargate Disk Space for Amazon ECS Container services Fargate tasks with platform version 1.40 have a task storage size of 20 GB, which is stored as a single ephemeral volume by default. Amazon Elastic File System is one of the tasks that use the Fargate launch type (Amazon EFS). The \u201cNo space left on device\u201d error message appears when the underlying container host computer runs out of disc capacity.<\/p>\n<p>This means that in order to process massive datasets and files, the application workload running inside the aws ecs container Service needs a lot of storage. Integration of Fargate tasks with Amazon EFS volumes can be used to overcome this problem.<\/p>\n<p>Increase Amazon ECS Container Disk Space on Fargate<\/p>\n<ol>\n<li>For the Amazon EFS mount targets, we must first build a security group.<\/li>\n<\/ol>\n<p>Then, using the source&#8217;s task security group, we create an inbound rule to accept NFS traffic on port 2049.<\/p>\n<ol start=\"2\">\n<li>We construct an Amazon EFS file system and then connect the mount targets to the security group.3. In addition, we need to note the file system ID of the file system.<\/li>\n<li>Configure a volume for the AWS ECS container service job that uses the Amazon EFS file system by creating or updating a task specification.<\/li>\n<\/ol>\n<p>Consider the following<\/p>\n<p>scenario:<\/p>\n<p>&#8220;volumes&#8221;: [<\/p>\n<p>{<\/p>\n<p>&#8220;name&#8221;: &#8220;efs-test-volume&#8221;,<\/p>\n<p>&#8220;efsVolumeConfiguration&#8221;: {<\/p>\n<p>&#8220;fileSystemId&#8221;: &#8220;fs-12345678&#8221;,<\/p>\n<p>&#8220;transitEncryption&#8221;: &#8220;ENABLED&#8221;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>]<\/p>\n<p>Make sure that fs-12345678 is replaced with the correct file system ID. 5. Later, we build a mount point for the volume inside the container using the container definitions section.<\/p>\n<p>Consider the following scenario:<\/p>\n<p>&#8220;containerDefinitions&#8221;: [<\/p>\n<p>{<\/p>\n<p>&#8220;memory&#8221;: 128,<\/p>\n<p>&#8220;portMappings&#8221;: [<\/p>\n<p>{<\/p>\n<p>&#8220;hostPort&#8221;: 80,<\/p>\n<p>&#8220;containerPort&#8221;: 80,<\/p>\n<p>&#8220;protocol&#8221;: &#8220;tcp&#8221;<\/p>\n<p>}<\/p>\n<p>],<\/p>\n<p>&#8220;essential&#8221;: true,<\/p>\n<p>&#8220;mountPoints&#8221;: [<\/p>\n<p>{<\/p>\n<p>&#8220;containerPath&#8221;: &#8220;\/mount\/path\/inside\/container&#8221;,<\/p>\n<p>&#8220;sourceVolume&#8221;: &#8220;efs-test-volume&#8221;<\/p>\n<p>}<\/p>\n<p>],<\/p>\n<p>&#8220;name&#8221;: &#8220;nginx&#8221;,<\/p>\n<p>&#8220;image&#8221;: &#8220;nginx&#8221;<\/p>\n<p>}<\/p>\n<p>]<\/p>\n<ol start=\"6\">\n<li>Finally, using the revised task specification, we perform the task.<\/li>\n<\/ol>\n<p>At <strong>Velan<\/strong>, our server support engineers can help to increase ECS volume.\u00a0If you are interested in our service, please fill the <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>Quick connect form<\/strong><\/a> to get in touch with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the underlying container host system runs out of disc storage, we&#8217;ll need to Increase Disk Space for Amazon ECS Container on Fargate. Let&#8217;s have a look at how we might expand our disc space today. Fargate Disk Space for Amazon ECS Container services Fargate tasks with platform version 1.40 have a task storage size&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1250","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-aws","Categories_tech_tip-aws-ecs","Categories_tech_tip-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>AWS ECS Container Service | How to Increase Disk Space on Fargate<\/title>\n<meta name=\"description\" content=\"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Increase Amazon ECS Container Disk Space on Fargate?\" \/>\n<meta property=\"og:description\" content=\"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-30T12:21:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/increase-amazon-ecs-container-disk-space\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/increase-amazon-ecs-container-disk-space\\\/\",\"name\":\"AWS ECS Container Service | How to Increase Disk Space on Fargate\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2021-08-31T09:18:32+00:00\",\"dateModified\":\"2021-09-30T12:21:51+00:00\",\"description\":\"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/increase-amazon-ecs-container-disk-space\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/increase-amazon-ecs-container-disk-space\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/increase-amazon-ecs-container-disk-space\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Increase Amazon ECS Container Disk Space on Fargate?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"AWS ECS Container Service | How to Increase Disk Space on Fargate","description":"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/","og_locale":"en_US","og_type":"article","og_title":"How to Increase Amazon ECS Container Disk Space on Fargate?","og_description":"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/","og_site_name":"Velan","article_modified_time":"2021-09-30T12:21:51+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/","name":"AWS ECS Container Service | How to Increase Disk Space on Fargate","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-08-31T09:18:32+00:00","dateModified":"2021-09-30T12:21:51+00:00","description":"AWS Disk Space for Amazon ECS Container on Fargate. AWS Container storage is a fully managed container orchestration service","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/increase-amazon-ecs-container-disk-space\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to Increase Amazon ECS Container Disk Space on Fargate?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1250"}],"version-history":[{"count":3,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1250\/revisions"}],"predecessor-version":[{"id":1439,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1250\/revisions\/1439"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1250"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}