<?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 stephinmon antony on Medium]]></title>
        <description><![CDATA[Stories by stephinmon antony on Medium]]></description>
        <link>https://medium.com/@stephinmon.antony?source=rss-d5970663a3d3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p3r3sHrWp5clCtYMX6NxgA.jpeg</url>
            <title>Stories by stephinmon antony on Medium</title>
            <link>https://medium.com/@stephinmon.antony?source=rss-d5970663a3d3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:04:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephinmon.antony/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[Scaling Data Protection with Databricks ABAC and Terraform]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@stephinmon.antony/scaling-data-protection-with-databricks-abac-and-terraform-1b498084bc1b?source=rss-d5970663a3d3------2"><img src="https://cdn-images-1.medium.com/max/1536/1*n7d_c1z9kSdNGtG21fPffw.png" width="1536"></a></p><p class="medium-feed-snippet">As data platforms grow, object-by-object permissions become difficult to maintain. A new table appears, a sensitive column is added, and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@stephinmon.antony/scaling-data-protection-with-databricks-abac-and-terraform-1b498084bc1b?source=rss-d5970663a3d3------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@stephinmon.antony/scaling-data-protection-with-databricks-abac-and-terraform-1b498084bc1b?source=rss-d5970663a3d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b498084bc1b</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[unity-catalog]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[stephinmon antony]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 18:11:40 GMT</pubDate>
            <atom:updated>2026-07-23T19:23:02.281Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AWS Lambda with python example — Inserting data into dynamodb table from s3]]></title>
            <link>https://medium.com/@stephinmon.antony/aws-lambda-with-python-example-inserting-data-into-dynamodb-table-from-s3-7c4ea10a3efb?source=rss-d5970663a3d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c4ea10a3efb</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[boto3]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[stephinmon antony]]></dc:creator>
            <pubDate>Tue, 11 Dec 2018 14:13:48 GMT</pubDate>
            <atom:updated>2018-12-12T13:19:37.961Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Lambda with python example — Inserting data into dynamodb table from s3</h3><p>AWS lambda is a serverless computing service . Please refer below link for more information about AWS lambda and for creating your first lambda function in python.</p><p><a href="https://medium.com/@stephinmon.antony/aws-lambda-with-python-examples-2eb227f5fafe">AWS Lambda with python examples</a></p><p><em>Lets start discussing about an another example — Inserting data items into a dynamodb table from a csv file, which is stored in an s3 bucket.</em></p><p>Step 1 : Create the dynamodb table</p><p>Here I have created a table <em>employee </em>with two attributes username and lastname.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*MvdODV0kbHWk6N3O12fBIg.jpeg" /><figcaption>employee table in — Dynamodb</figcaption></figure><p>Step 2 : Create an IAM role for the lambda function.</p><p>This particular example requires three different AWS services S3, Dynamodb and CloundWatch. So the IAM role should have the following polices attached to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5wHhCpC7_uFK67Ut13r1ow.jpeg" /><figcaption>IAM role for the lambda function</figcaption></figure><p>Step 3 : Create the Lambda function. (Refer the first link for the configuration)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TSP-lUGYpfcD163LUEoPMw.jpeg" /><figcaption>Lambda function design</figcaption></figure><p><em>Ok Let’s discuss about the lambda function example in detail.</em></p><p>This lambda function would get invoked when a csv file upload event happens in the configured S3 bucket. Once this function gets triggered, the lambda_handler() function gets the event and context objects. This particular lambda lambda_handler() function fetches the csv file and converts all the records into the form of a dictionary and adds it into a list. The column names are used as keys in the record dictionary.</p><pre># lambda_handler is the main function in lambda function</pre><pre>def lambda_handler(event,context):<br>    source_bucket = event[&#39;Records&#39;][0][&#39;s3&#39;][&#39;bucket&#39;][&#39;name&#39;]<br>    key = urllib.unquote_plus(event[&#39;Records&#39;][0][&#39;s3&#39;][&#39;object&#39;][&#39;key&#39;])<br>    copy_source = {&#39;Bucket&#39;:source_bucket , &#39;Key&#39;:key}<br>    print(event)<br>    <br>    #just print function<br>    print(&quot;Log stream name : &quot;, context.log_stream_name)<br>    print(&quot;Log group name : &quot;, context.log_group_name)<br>    print(&quot;Request Id:&quot;, context.aws_request_id)<br>    print(&quot;Mem. limit(MB): &quot;, context.memory_limit_in_mb)<br>    <br>    try:<br>        print(&quot;Using waiter to waiting for object to persist thru s3 service&quot;)<br>        waiter = s3.get_waiter(&#39;object_exists&#39;)<br>        waiter.wait(Bucket=source_bucket, Key=key)<br>        print(&quot;Accessing the receied file and reading the same&quot;)<br>        bucket = tests3.Bucket(u&#39;awslambdas3test2&#39;)<br>        obj = bucket.Object(key=&#39;inputfile.csv&#39;)<br>        response = obj.get()<br>        print(&quot;response from file object&quot;)<br>        print(response)<br>        lines = response[&#39;Body&#39;].read().split()<br>        print(response[&#39;Body&#39;].read())<br>        <br>        # creating a list of dictionaries from the csv file records<br>        recList = list()<br>        i = 0<br>        while i &lt; len(lines):<br>            record  = {}<br>            record[&#39;username&#39;] = lines[i]<br>            record[&#39;lastname&#39;] = lines[i+1]<br>            print(record)<br>            recList.append(record)<br>            i = i+2<br>        print(recList)    <br>        insert_data(recList)<br>        <br>    except Exception as e:<br>        print(e)<br>        print(&#39;Error getting object {} from bucket {}. Make sure they exist and your bucket is in the same region as this function.&#39;.format(key, source_bucket))<br>        raise e</pre><p>Once all the records in the csv file are converted into list, it will pass to the insert_data function. insert_data() function takes control of employee table first, then iterates the record list and inserts it into the table using put_item function.</p><pre># insert_data function for inserting data into dynamodb table<br>def insert_data(recList):<br>    table = dynamodb.Table(&#39;employee&#39;)<br>    for i in range(len(recList)):<br>        record = recList[i]<br>        table.put_item(<br>            Item={<br>                &#39;username&#39;: record[&#39;username&#39;],<br>                &#39;lastname&#39;: record[&#39;lastname&#39;]<br>            }<br>        )</pre><p>Now you have completed the lambda function for <em>Inserting data items into a dynamodb table from a csv file, which is stored in an s3 bucket. </em>Save the function and upload the csv file into the configured s3 bucket. Now you can find the csv file contents in the dynamo db table.</p><p>There might be different approaches available for this problem, but I have done this way and its working fine for me. Please find the git location for the code <a href="https://github.com/stephinmon/stephin_dev/blob/master/dynamodbinsertfroms3.py">https://github.com/stephinmon/stephin_dev/blob/master/dynamodbinsertfroms3.py</a> .</p><p>Thanks for reading and hope this article is helpful for you !!</p><p><em>Please comment your valuable suggestions in the comment box . Please reach me for any queries via my email </em><strong><em>stephinmon.antony@gmail.com .</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c4ea10a3efb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Core fundamental services of AWS(IAM & VPC) — Part 1]]></title>
            <link>https://medium.com/@stephinmon.antony/core-fundamental-services-of-aws-iam-vpc-part-1-ea54d9f7b908?source=rss-d5970663a3d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea54d9f7b908</guid>
            <category><![CDATA[vpc]]></category>
            <category><![CDATA[iaas]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[stephinmon antony]]></dc:creator>
            <pubDate>Fri, 04 May 2018 06:52:13 GMT</pubDate>
            <atom:updated>2018-05-04T06:52:13.516Z</atom:updated>
            <content:encoded><![CDATA[<p>VPC and IAM are two of the core fundamental services of AWS. Virtual private cloud(VPC) is used to launch AWS services on a virtual network that we defined. In this article I will focus more on IAM service, <strong><em>Core fundamental services of AWS(IAM &amp; VPC) — Part 2</em></strong> will cover VPC in details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*wcp6WpaG5WSBoZKG0rbMQQ.png" /><figcaption>AWS IAM Service</figcaption></figure><p>In AWS words , Identity and Access Management(IAM) is a web service that helps you securely control access to AWS resources.You use IAM to control who is authenticated and authorized to use resources.</p><p><em>Ok Let’s start discuss more about the IAM service in details.</em></p><p>Some of the main identities available in the IAM service as follows.</p><ul><li>IAM Users</li><li>IAM Groups</li><li>IAM Roles</li></ul><h4><strong>IAM Users</strong></h4><p>IAM user is an entity that can be used for interact with AWS. Primary use for IAM users is to give the people ability to sign in to AWS Management console or can interact programmatically through APIs or CLI. The initial user which we create during the AWS account creation is called root user. As a best practice, we should create an another user as an admin user(Other than root user). The admin user should have all the privileges. The root user can be used for any emergency purposes. For example even if our admin user get locked or forget the credentials then we can use root user to resolve the problem.</p><p><em>Ok let’s start create an IAM user through the AWS management console.</em></p><p><strong><em>Step 1</em></strong> : Login to AWS management console using the root user credentials.</p><p><strong><em>Step 2</em></strong><em> </em>: Click on the <strong>services </strong>menu(Top menu bar in the homepage) and select <strong>IAM</strong> service from <strong>Security, Identity &amp; Compliance.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYzUUEvcfsnzcSsfrwcynA.jpeg" /><figcaption>IAM service highlighted</figcaption></figure><p><strong><em>Step 3</em></strong> : Click on the <strong>Users</strong> tab in the IAM dashboard.</p><p><strong><em>Step 4</em></strong> : Click on the <strong>Add user</strong> button in Users page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiZgUswMGd33J8OpG4iyAg.jpeg" /><figcaption>Users page in the IAM dashboard</figcaption></figure><p><strong><em>Step 5</em></strong> : Input the <strong>User name</strong> in the required field, select the <strong>Access type </strong>and press the<strong> Next:Permissions </strong>button.</p><p><em>Note : Two access types are available in the dashboard </em><strong><em>Programmatic access </em></strong><em>and</em><strong><em> AWS Management Console access . </em></strong><em>Programmatic access for interacting to the AWS services through APIs , CLI or SDK for development. AWS Management Console access is for sign in the user through AWS management console.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kTtdYCOIBJX2_9fO9MPnQ.jpeg" /><figcaption>Add user page</figcaption></figure><p><strong><em>Step 6</em></strong> : Add user to the suitable group(<em>Group is another identity and will explain that later</em>) and press <strong>Next:review </strong>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_GuAL2XuPY9nv5OydwcDw.jpeg" /><figcaption>Add user to group page</figcaption></figure><p>Step 7 : Then press on <strong>Create user </strong>button for creating the new user.</p><p><em>Note : After creating the new user you will get provision to download or email the credentials.</em></p><p>Here I have given Access type as AWS management console access so we can able to login to AWS and interact with the services through AWS management console with your credentials.</p><h4>IAM Groups</h4><p>IAM groups is a collection of users , We can specify the permissions to a set of users by using IAM groups. In other words we can classify the users based on their permissions. For example we need 4 users with common access permissions, then we can create the group with the required permissions and add the users into the particular group while creating the users.</p><p><em>Let’s look into the step by step IAM group creation using the AWS management console.</em></p><p><strong><em>Step 1</em></strong> : Login to AWS management console using the root user credentials.</p><p><strong><em>Step 2</em></strong><em> </em>: Click on the <strong>services </strong>menu(Top menu bar in the homepage) and select <strong>IAM</strong> service from <strong>Security, Identity &amp; Compliance.</strong></p><p><strong><em>Step 3</em></strong> : Click on the <strong>Groups</strong> tab in the IAM dashboard.</p><p><strong><em>Step 4</em></strong> : Click on the <strong>Create New Group</strong> button in Users page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZCeAE8cXdTN1vajQBVccw.jpeg" /><figcaption>Groups page in IAM dashboard</figcaption></figure><p><strong><em>Step 5</em></strong> : Fill the group name in the field provided, then press <strong>Next:Step</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKLcgc-k_tJjTHBddNIbNA.jpeg" /><figcaption>Create New group page</figcaption></figure><p><strong><em>Step 6 </em></strong>: Select the required policies from the given list and press on <strong>Next:Step</strong> button. (<em>Policies determine the permissions of each resource in AWS</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2pv5Vh1fGIhxhkoU0pS_A.jpeg" /><figcaption>Attach policy page in create new group</figcaption></figure><p><strong><em>Step 7</em></strong> : Review the policies attached and press <strong>Create Group</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMV6NNtMK546tyN66bJrrQ.jpeg" /><figcaption>Review Page in create new group</figcaption></figure><h4>IAM Roles</h4><p>An IAM role is very similar to a user, user is for people who can access the AWS services where as role determines the access permissions of each services in AWS. For example , while creating lambda function you suppose to attach a role with it, Which would determine the access permissions of that particular lambda function. If you are creating a lambda function which need the S3 access for the processing , then you should attach the required permission policies of S3 in a role and which can included in the lambda function.</p><p><em>Let’s create a sample IAM role</em></p><p><strong><em>Step 1</em></strong> : Login to AWS management console using the root user credentials.</p><p><strong><em>Step 2</em></strong><em> </em>: Click on the <strong>services </strong>menu(Top menu bar in the homepage) and select <strong>IAM</strong> service from <strong>Security, Identity &amp; Compliance.</strong></p><p><strong><em>Step 3</em></strong> : Click on the <strong>Roles </strong>tab in the IAM dashboard.</p><p><strong><em>Step 4</em></strong> : Click on the <strong>Create Role</strong> button in Users page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRAlGLqL29xgCwzlBQQZmw.jpeg" /><figcaption>Roles page in IAM dashboard</figcaption></figure><p><strong><em>Step 5</em></strong> : Select the service which required the role and click on <strong>Next:Permissions </strong>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sm3BtXl1_47cIOucqtiixw.jpeg" /><figcaption>Create Role page</figcaption></figure><p><strong><em>Step 6</em></strong> : Select the required policies based on our need and click on <strong>Next:Review</strong> button.(<em>Policies is another entity which will determine the different permissions of each services in aws.</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcGD6nQNbtCt6PLIwGi8Hg.jpeg" /><figcaption>Attach permissions polices page</figcaption></figure><p><strong><em>Step 7</em></strong> : Input the role and review the selected policies and click on <strong>Create Role</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OcQlM6qsRGrjSPwekRj2DA.jpeg" /><figcaption>Review Page in Create Role</figcaption></figure><p><em>Hope you got some idea about the IAM service and some of its identities. Just try to do by yourself and comment if you are getting any doubts or queries.</em></p><p>In the <strong><em>Core fundamental services of AWS(IAM &amp; VPC) — Part 2 </em></strong>will cover the VPC creation and its sub services in detail.we</p><p><em>Please comment your valuable suggestions in the comment box . Please reach me for any queries via my email </em><strong><em>stephinmon.antony@gmail.com .</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea54d9f7b908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Lambda with python examples]]></title>
            <link>https://medium.com/@stephinmon.antony/aws-lambda-with-python-examples-2eb227f5fafe?source=rss-d5970663a3d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eb227f5fafe</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[lambda-function]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[stephinmon antony]]></dc:creator>
            <pubDate>Tue, 06 Mar 2018 13:35:25 GMT</pubDate>
            <atom:updated>2018-11-07T04:40:38.123Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Lambda is a server less computing platform. Here you will be able to execute your code without provisioning or managing servers. You need to pay for the service only when you run the code. AWS Lambda is executing the code in a high-availability compute infrastructure and performs all of the administration of the compute resources , including server and operating system maintenance , capacity provisioning and automatic scaling, code monitoring and logging. The languages which currently supported by AWS Lambda are Node.js, Java,C#, Go and Python.</p><p>Automatically execute the Lambda function in response to multiple events such as modification of objects in AWS S3 bucket, table updates in dynamo db etc .</p><p>A lambda function can execute maximum of 5 minutes without terminating. the default time out is 3 seconds , but you can adjust the timeout to any value in between 1 sec and 5 minutes.</p><p><em>Let’s create your first lambda function using python.</em></p><p><strong><em>Lambda Function to copy a file from one s3 bucket to another bucket.</em></strong></p><p><strong>Step 1 </strong>. Create a IAM role with the CloudWatch and S3 policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5fyVOrF4wkcfzoQ6LN3xg.jpeg" /><figcaption>Choose Lambda as the service for the role</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZoC3NBEUkDn98yiOaUvnSA.jpeg" /><figcaption>Provide a name to the role and attach the required polices as given in the image</figcaption></figure><p><strong>Step 2 </strong>. Create two S3 buckets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ArpxE0TgxUVQ1k_og0GUpA.jpeg" /><figcaption>Create two s3 buckets as in the above image</figcaption></figure><p><strong>Step 3 </strong>. Create Lambda function for Copying a file from one bucket to another.</p><p><em>Lambda function automatically invoke when we upload a file to the first bucket and which will copy the same file to the another bucket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkSRNyAciCcb5wrZKqODtA.jpeg" /><figcaption>Lambda function creation page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CeKnxF5R-oF-pp9lmQAxgg.jpeg" /><figcaption>Configuring the S3 as triggering service</figcaption></figure><p><em>Here as you can see , I have configured the source bucket for triggering the Lambda function. So if we upload any .txt files to the configured S3 bucket, it will trigger the Lambda function and copy the uploaded file to the target S3 bucket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*fqbcftLQMLjNHKvYPdy3fQ.jpeg" /><figcaption>Python code for copying file from one s3 bucket to another s3 bucket(hard coded the target s3 bucket here, you may change the name as you want)</figcaption></figure><p><em>Handler : Handler is a function which calls to start your AWS Lambda function. Aws Lambda passes any event data to handler function as the first parameter. Your handler should process the event data and may invoke any other functions or methods in your code. Here lambda_handler(event,context) is the handler function.</em></p><p><em>Event : Event is the first parameter in a handler function and it contains the event data.</em></p><p><em>Context : Context is the second parameter in a handler function, Which will provide the run-time information to your handler.Your code can interact with AWS Lambda using this context object. For example, your code can find the execution time remaining before AWS Lambda terminates your lambda function.</em></p><p><strong>Step 4</strong> . Save the Lambda function and upload a text file to the source s3 bucket.</p><p>I believe you could able to understand the Lambda function invoke process from S3 service from the above example. Similarly you can trigger the lambda functions from the other events(AWS services) such as Dynamo db,SNS etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eb227f5fafe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>