<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: codebytesfl</title>
    <description>The latest articles on DEV Community by codebytesfl (@codebytesfl).</description>
    <link>https://dev.to/codebytesfl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F514570%2F1e29f7b6-6d51-4593-9856-d73fecdfcb2f.png</url>
      <title>DEV Community: codebytesfl</title>
      <link>https://dev.to/codebytesfl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codebytesfl"/>
    <language>en</language>
    <item>
      <title>AWS EC2 Tag based folder access to S3</title>
      <dc:creator>codebytesfl</dc:creator>
      <pubDate>Thu, 26 May 2022 20:39:14 +0000</pubDate>
      <link>https://dev.to/codebytesfl/aws-ec2-tag-based-folder-access-to-s3-461k</link>
      <guid>https://dev.to/codebytesfl/aws-ec2-tag-based-folder-access-to-s3-461k</guid>
      <description>&lt;p&gt;Recently I have been developing a multi tenant system in where each user was assigned an EC2 that contained a full stack deployment of a web app. This EC2 also needed to have access to access to a folder in a S3 bucket where the tenant could upload anything they want &lt;strong&gt;but only to their designated folder&lt;/strong&gt; in the bucket.&lt;/p&gt;

&lt;p&gt;This posed quite a challenge to make this scaleable (i.e I want to make the policy once, and it should scale regardless of how many tenant I sign on) as I discovered many different account limitations with different approaches. &lt;/p&gt;

&lt;p&gt;One method of achieving this was to assign 1 IAM User per Tenant. I can then make a policy that is attached to each user saying that "&lt;strong&gt;Tenant X&lt;/strong&gt; can only access &lt;strong&gt;X Folder&lt;/strong&gt; in this bucket". Great solution, but we have our first hiccup. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AWS limits the amount of users to 5,000.&lt;/strong&gt; This means I can only onboards up to 5000 tenants before having to create another AWS account. Not ideal.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
