<?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 Parisi, Andressa on Medium]]></title>
        <description><![CDATA[Stories by Parisi, Andressa on Medium]]></description>
        <link>https://medium.com/@parisiandressa?source=rss-d462095298c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Parisi, Andressa on Medium</title>
            <link>https://medium.com/@parisiandressa?source=rss-d462095298c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:55:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parisiandressa/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[Configuration and Deployment of HumanGov SaaS Application on AWS EC2 Inventory Across US States…]]></title>
            <link>https://medium.com/@parisiandressa/configuration-and-deployment-of-humangov-saas-application-on-aws-ec2-inventory-across-us-states-cd0218a58db1?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd0218a58db1</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 20:22:16 GMT</pubDate>
            <atom:updated>2024-12-06T20:22:16.327Z</atom:updated>
            <content:encoded><![CDATA[<h4>Configuration and Deployment of HumanGov SaaS Application on AWS EC2 Inventory Across US States Using Ansible, with Secure Storage of Configuration Files on AWS Code Commit</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YD0h-USXKZ8FSXKv.png" /></figure><p><strong>Project description:</strong></p><p>In this project based on a real-world scenario, I used the Ansible configuration management automation to configure and deploy the innovative HumanGov SaaS application on AWS EC2 instances that will serve the entire United States.</p><p>This is a continuation from my previous post <a href="https://medium.com/@bstephen/humangov-deployment-of-a-reusable-saas-multi-tenant-aws-infrastructure-using-terraform-modules-d097fd88f602">here</a> where I implemented a flexible and scalable SaaS infrastructure on AWS using Terraform modules.</p><p><strong>PART 1</strong></p><p>Due to the limitation of Cloud9 managed credentials not being able to provision and attach an IAM role to an EC2 Instance, I used IAM and created a programmatic access user and attached the “Administrator Access” AWS managed policy. I then created and saved the “Security Credentials” access key for this user and created an user&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*NKtnq3IgtFax-UUwYq1bKg.png" /></figure><p>In production, best practice would be to grant least privileges as possible.</p><p>In Cloud9 I turned off AWS managed temporary credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GVny9K7hHwpn_CVv.png" /></figure><p>In the Cloud9 terminal I ran the AWS command to configure the non-temporary credentials: <strong><em>aws configure </em></strong><em>and </em>entered the AWS Access Key ID, AWS Secret Access Key, and Default region (us-east-1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhkzNzu27XcdmDy4SaLYCw.png" /></figure><p>Next, I navigated to the infrastructure/terraform directory using the <strong><em>cd /home/ec2-user/environment/human-gov-infrastructure/terraform</em></strong></p><p>To enable the EC2 instance to interact with S3 and DynamoDB, I used Terraform to assign managed policies. These policies were linked to the EC2 instance through an IAM Instance Profile, allowing it to assume the associated role. The configurations for these policies were defined in the resources.tf file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nOSbzgSNh4TD0IaZziM4w.png" /></figure><p>Then added the IAM Instance Profile argument to the EC2 resource with the role attached.</p><p>Followed by some changes to the security group rule.</p><p>Also, I manually uploaded my “humangov-ec2-key.pem” file to my Cloud9 environment so I could use it to run Ansible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/0*80_iN0EXy4nNMYna.png" /></figure><p>Once done, I ran the following commands to provision the new resources for the state of California:</p><p><strong><em>terraform validate</em></strong></p><p><strong><em>terraform plan</em></strong></p><p><strong><em>terraform apply -auto-approve</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*mVDTQCy6NBDCZMDWB69W-Q.png" /></figure><p>Once provisioned and everything was working I ran the following commands to commit my code to my <strong>local</strong> repo.</p><p><strong><em>git status — git add _ git commit -m “Added variable and provisioners to Terraform module aws_humangov_infrastructure/main.tf”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxwgxJHjxUfexljDdBdLXA.png" /></figure><p>I chose not to push to CodeCommit at this stage, as it would have resulted in a failure. This is because I had previously disabled Cloud9 Credentials. I plan to make the necessary adjustments and push all my commits at the end.</p><p><strong>PART 2</strong></p><p>Before diving into the main tasks, I took care of a few prerequisites.</p><p>First, I moved into the application folder with the command:</p><p><strong><em>cd ~/environment/human-gov-application</em></strong></p><p>I then added all zip files to my .gitignore file with the command:</p><p><strong><em>echo “*.zip” &gt;&gt; .gitignore</em></strong></p><p>Next, I created a “src” directory, navigated into it, downloaded the application files, and unzipped them. Then created a “src” directory, moved into it, downloaded and unzipped the application files.</p><p><strong><em>mkdir src &amp;&amp; cd src</em></strong></p><p><strong><em>wget </em></strong><a href="https://tcb-bootcamps.s3.amazonaws.com/tcb5001-devopscloud-bootcamp/v2/module4-ansible/humangov-app.zip"><strong><em>https://tcb-bootcamps.s3.amazonaws.com/tcb5001-devopscloud-bootcamp/v2/module4-ansible/humangov-app.zip</em></strong></a><strong><em> unzip humangov-app.zip</em></strong></p><p><strong><em>unzip humangov-app.zip</em></strong></p><p>Next I added all the files and committed them to my <strong>local</strong> git repo for now: <strong><em>git add .</em></strong></p><p><strong><em>git add ../.gitignore</em></strong></p><p><strong><em>git commit -m “HumanGov app 1st commit”</em></strong></p><h3>Now to provision the infrastructure with Terraform.</h3><p>I added the three “local-exec” provisioners to the EC2 resource in my terraform module main.tf file.</p><p><strong><em>cd modules/aws_humangov_infrastructure/main.tf</em></strong></p><p>The first step was to dynamically store the IP addresses and public keys in the known_hosts file. For those unfamiliar, the known_hosts file is an essential security component that verifies the authenticity of server connections. It ensures users are connecting to legitimate servers by confirming their identity on the local system. This process also helps protect against potential man-in-the-middle attacks</p><p>I added the code below to the “aws_instance” “state_ec2” resource block.</p><p><em># wait 30 seconds and dynamically add the private ip addresses to the known_hosts file</em></p><p><strong><em>provisioner “local-exec” {<br>command = “sleep 30; ssh-keyscan ${self.private_ip} &gt;&gt; ~/.ssh/known_hosts”<br>}</em></strong></p><p>The second was to dynamically add the environment variable values about the EC2 instance to the ansible hosts file in the default location.</p><p><em># dynamically add environment variable values to the ansible hosts file in the default location</em></p><p><strong><em>provisioner “local-exec” {</em></strong></p><p><strong><em>command = “echo ${var.state_name} id=${self.id} ansible_host=${self.private_ip} ansible_user=ubuntu us_state=${var.state_name} aws_region=${var.region} aws_s3_bucket=${aws_s3_bucket.state_s3.bucket} aws_dynamodb_table=${aws_dynamodb_table.state_dynamodb.name} &gt;&gt; /etc/ansible/hosts”<br>}</em></strong></p><p>For the interpolated value “${var.region}” above I added that variable to my human-gov-infrastructure/terraform/modules/aws_humangov_infrastructure/variable.tf file.</p><p><strong><em>variable “region” {<br>default = “us-east-1”<br>}</em></strong></p><p>The third was to dynamically remove the EC2 instance environment variables from the ansible hosts file when the infrastructure was destroyed.</p><p><em># dynamically ‘delete’ the entry in the hosts file whenever the id(s) match on destroy</em></p><p><strong><em>provisioner “local-exec” {</em></strong></p><p><strong><em>command = “sed -i ‘/${self.id}/d’ /etc/ansible/hosts”</em></strong></p><p><strong><em>when = destroy<br>}</em></strong></p><p>Next I created an ‘ansible’ folder and an empty host file under /etc folder with the following commands as root:</p><p><strong><em>sudo mkdir /etc/ansible<br>sudo touch /etc/ansible/hosts</em></strong></p><p>The Terraform provisioner will populate the hosts file.</p><p>Next I changed the permission to allow the EC2 user and group, the user Terraform will be running as (ec2-user), to be able to write to the hosts file.</p><p><strong><em>sudo chown ec2-user:ec2-user /etc/ansible/hosts</em></strong></p><p><strong><em>sudo chown -R ec2-user:ec2-user /etc/ansible </em></strong><em>(allows Terraform to write a temporary file inside the /etc/ansible folder to prevent permission denied error when destroying local-exec provisioner)</em></p><p>Provision the infrastructure</p><p><strong><em>terraform plan</em></strong></p><p><strong><em>terraform apply -auto-approve</em></strong></p><p>Once provisioned I committed the changes to the my local Git repository.</p><p><strong><em>git status<br>git add .<br>git commit -m “Add variable and provisioners to Terraform module aws_humangov_infrastructure/main.tf”</em></strong></p><p>I confirmed that the environment variables for the EC2 instance was added to the ansible hosts file.</p><h3>Now to deploy the application with Ansible.</h3><p>I moved into the appropriate directory and created the directory, sub-directory and files for the role.</p><p><strong><em>cd ~/environment/human-gov-infrastructure</em></strong></p><p><strong><em>mkdir ansible &amp;&amp; cd ansible</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/tasks</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/handlers</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/templates</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/defaults</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/vars</em></strong></p><p><strong><em>mkdir -p roles/humangov_webapp/files</em></strong></p><p>I could have used the “ansible-galaxy” command as well which would have created a default structure similar to the above:</p><p><strong><em>ansible-galaxy role init roles/humangov_webapp</em></strong></p><p>I then created an ansible.cfg file in the ansible folder in order to override default behaviors.</p><p><strong><em>touch ansible.cfg</em></strong></p><p>Added the the following to the file.</p><p><strong><em>[defaults]<br>deprecation_warnings = False</em></strong></p><p>Next I pinged the instance that is currently running using the ansible adhoc command:</p><p><strong><em>ansible all -m ping -e ansible_ssh_private_key_file=/home/ec2-user/environment/humangov-ec2-key.pem</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*xcPEzBY8HYEN8Les5bB1FQ.png" /></figure><p>Created the necessary role files under the ansible folder with the following commands:</p><p><strong><em>touch roles/humangov_webapp/tasks/main.yml<br>touch roles/humangov_webapp/handlers/main.yml<br>touch roles/humangov_webapp/templates/nginx.conf.j2<br>touch roles/humangov_webapp/templates/humangov.service.j2<br>touch roles/humangov_webapp/defaults/main.yml<br>touch roles/humangov_webapp/vars/main.yml<br>touch deploy-humangov.yml</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*X5klXiqhQK17pHe28XiN-A.png" /></figure><p>In the default/main.yaml file I included the default values for the role variables</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wngPCc4-Mf9mp5Ed.png" /></figure><p>source_application_path: /home/ec2-user/environment/human-gov-application/src -&gt; (zip file)</p><p>Then added the <em>handlers</em> in the handlers/main.yml file that are triggered by the “notify” keyword in the tasks/main.yml file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*2cIdHyHRoBmPun6B.png" /></figure><p>‘become: yes’ means root</p><p>In the tasks/main.yml file I added the tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*aF0Pfj814Bb1FOdy.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*n4KzdR47LyxzYf76.png" /></figure><p>‘notify’ calls the handler in the handlers/main.tf file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*OSonA74GC_-g5Q3u.png" /></figure><p>In templates/humangov.service.j2 I added the Jinja2 template for the Gunicorn systemd service:</p><p><strong><em>[Unit]<br>Description=Gunicorn instance to serve {{ project_name }}<br>After=network.target</em></strong></p><p><strong><em>[Service]<br>User={{ username }}<br>Group=www-data<br>WorkingDirectory={{ project_path }}<br>Environment=”US_STATE={{ us_state }}”<br>Environment=”PATH={{ project_path }}/humangovenv/bin”<br>Environment=”AWS_REGION={{ aws_region }}”<br>Environment=”AWS_DYNAMODB_TABLE={{ aws_dynamodb_table }}”<br>Environment=”AWS_BUCKET={{ aws_s3_bucket }}”<br>ExecStart={{ project_path }}/humangovenv/bin/gunicorn — workers 1 — bind unix:{{ project_path }}/{{ project_name }}.sock -m 007 {{ project_name }}:app</em></strong></p><p><strong><em>[Install]<br>WantedBy=multi-user.target</em></strong></p><p>In templates/nginx.conf.j2, I added the Jinja2 template for the Nginx configuration:</p><p><strong><em>server {<br>listen 80;<br>server_name humangov </em></strong><a href="http://www.humangov;/"><strong><em>www.humangov;</em></strong></a></p><p><strong><em>location / {<br>include proxy_params;<br>proxy_pass </em></strong><a href="http://unix:{{"><strong><em>http://unix:{{</em></strong></a><strong><em> project_path }}/{{ project_name }}.sock;<br>}<br>}</em></strong></p><p>Then in order to use this role, I added the following to my “deploy-humangov.yml” playbook:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3XWqZEGR4EAxqygR.png" /></figure><p>I was now able to run my playbook with the following command from inside the ansible folder:</p><p><strong><em>ansible-playbook deploy-humangov.yml -e ansible_ssh_private_key_file=/home/ec2-user/environment/humangov-ec2-key.pem</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*mVDTQCy6NBDCZMDWB69W-Q.png" /></figure><p>I used the public DNS address of the EC2 instance in my browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*kHEl7kC8GM6XHhYt0AMJcQ.png" /></figure><p>To deploy more states it’s simple as adding more states to Terraform /home/ec2-user/environment/human-gov-infrastructure/terraform/variables.tf file.</p><p><strong><em>variable “state_names” {<br>type = list(string)<br>description = “(optional) describe your variable”<br>default = [“california”, “florida”, “nevada”]<br>}</em></strong></p><p>Run terraform commands:</p><p><strong><em>terraform apply -auto-approve</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ZMuIBprMZlhmWiGTD6OMkQ.png" /></figure><p>Once completed. Just re-run the ansible playbook to install the application on the new EC2 resources.</p><p>I then committed the changes to my local repo:</p><p><strong><em>cd ~/environment/human-gov-infrastructure<br>git status<br>git add .<br>git status<br>git commit -m “Ansible configuration 1st commit plus variables.tf file changed and added nevada and florida states”</em></strong></p><p>Before I could push the changes to Code Commit I enabled the temporary credentials on Cloud9. Settings &gt; AWS Settings &gt; Credentials &gt; Turned On the option “AWS managed temporary credentials”.</p><p>Then I pushed the code to AWS Code Commit.</p><p><strong><em>git push -u origin</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*J52QQrOtOlQzvtQs.png" /></figure><p>Then, run the command:</p><p>terraform destroy (yes)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vj7J6gc-qzTzEsjJ.png" /></figure><pre>export AWS_ACCESS_KEY_ID=&quot;&lt;ACCESS_KE_ID&gt;&quot;<br>export AWS_SECRET_ACCESS_KEY=&quot;&lt;SECRET_ACCESS_KEY&gt;&quot;<br>export AWS_REGION=&quot;us-east-1&quot;Then run the command:I hope you enjoyed this as much as I did. Automation with Ansible is awesome!</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd0218a58db1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment Of A Reusable SaaS Multi-tenant AWS Infrastructure Using Terraform Modules Securely…]]></title>
            <link>https://medium.com/@parisiandressa/deployment-of-a-reusable-saas-multi-tenant-aws-infrastructure-using-terraform-modules-securely-6a1b0c74052b?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a1b0c74052b</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform-modules]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 14:50:37 GMT</pubDate>
            <atom:updated>2024-04-24T14:50:37.891Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment Of A Reusable SaaS Multi-tenant AWS Infrastructure Using Terraform Modules Securely Storing Terraform Configuration Files On AWS Code Commit for HumanGov.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HlfzSlBCKnTF_kZc.png" /></figure><p><strong>Project description:</strong></p><p>In this project based on a real-world scenario, I undertook the task of designing and implementing a flexible and scalable SaaS infrastructure on AWS using Terraform modules. The infrastructure was carefully constructed, taking into account the specific needs of multiple tenants.</p><p>I leveraged a range of AWS services including EC2 instances, DynamoDB databases, S3 buckets, and CodeCommit. I used AWS CodeCommit to ensure the secure storage of Terraform configuration files and S3 and DynamoDB for the Terraform State and Lock files respectively.</p><p><strong>Manual AWS Infrastructure Creation:</strong></p><p>In the console I navigated to S3 and created a bucket to store the Terraform State file with the following options:</p><p><em>Bucket name: </em><strong><em>humangov-terraform-state-xapx (ap means my name+surname)</em></strong></p><p><em>AWS Region: </em><strong><em>US East (N. Virginia) us-east-1</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*v9XgC4fLJpYK0sdQt92GWg.png" /></figure><p>I navigated to DynamoDB and created a table with the following options to store the Terraform Lock file:</p><p><em>Table name: </em><a href="https://us-east-1.console.aws.amazon.com/dynamodbv2/home?region=us-east-1#table?name=humangov-terraform-state-lock-table"><strong><em>humangov-terraform-state-lock-table</em></strong></a></p><p><em>Partition key: </em><strong><em>LockID</em></strong></p><p><em>All other setting leave “as default”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*SJnxkY1-kPrpuWi-s2M4FQ.png" /></figure><p><strong>Terraform AWS Infrastructure Creation:</strong></p><p>I created the following folders with the following commands on Cloud9:</p><p><em>cd human-gov-infrastructure</em></p><p><em>mkdir terraform &amp;&amp; cd terraform</em></p><p><em>mkdir -p modules/aws_humangov_infrastructure</em></p><p><em>cd modules/aws_humangov_infrastructure</em></p><p><em>touch variables.tf resources.tf outputs.tf</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nDrPrQxMxnZq9avq-jhORg.png" /></figure><p>In Cloud9 Editor I used the variables.tf file and created my variables as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*V3dDgG1Dru133_09.png" /></figure><p>Next I used the resources.tf file and created the following security group:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*7dO3xSn7IJpoH1gD.png" /></figure><p>I used interpolation, <em>‘${var.state_name}’</em>, to include the variable state name into the string values. I will be using interpolation in other resources, but I wanted to mention what I did here. This security group has two inbound (ingress) rules HTTP and SSH respectively. In production SSH should be from a known IP address.</p><p>In the AWS Console I navigated to EC2 &gt; Key Pairs and created a key with the following name:</p><p><em>Name: </em><strong><em>humangov-ec2-key</em></strong></p><p><em>Key pair type: </em><strong><em>RSA</em></strong></p><p><em>Private key file format: </em><strong><em>.pem</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-Ls3IUeMZZxFymf6.png" /></figure><p>In Cloud9, in the resource.tf file, I created an EC2 instance, S3 bucket, and DynamoDB database resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0cOfN8ea2SJHdPzX.png" /></figure><p>I used the Terraform utility <em>‘random_string’</em> resource to create a random string of four characters appended to the S3 bucket name to make it unique.</p><p>I then used the last file in the module folder aws_humangov_infrastruture, <em>‘outputs.tf’</em>, with the following outputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*56Ji7LWf4srliF5g.png" /></figure><p>Navigated back to the terraform folder with the following command:</p><p><em>cd ~/environment/human-gov-infrastructure/terraform</em></p><p>I created the following files with the command:</p><p><em>touch main.tf outputs.tf variables.tf backend.tf</em></p><p>Once created, I used the backend.tf file to create a S3 Bucket and DynamoDB Table backend, which was done manually in the beginning, to store the Terraform State and Lock Files respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*V4zXFAaa8WjYcpzeQzi7Eg.png" /><figcaption>Bucket: humangov-terraform-state-apax</figcaption></figure><p>Back in the Cloud9 editor, in the main.tf file I created the following resources:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Rb_TnU9Qp9UOMhvs.png" /></figure><p>I used the AWS Provider and the module I previously, ‘aws_humangoc_infrastructure’. There was no need to configure AWS to authenticate because I ran the Terraform commands in Cloud9 which is already authenticated.</p><p>Next I created a variable in the variables.tf file which I passed to the module in the <strong><em>for_each</em></strong> function above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*LBPPAqRe2FujI3to.png" /></figure><p>In order to get the output values from the module, I created the following in a for loop in the outputs.tf file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4fbA0ER6GbCNJH6_.png" /></figure><p>Executed the following Terraform commands:</p><p><em>terraform init</em></p><p><em>terraform fmt (format)</em></p><p><em>terraform validate (validates the configuration)</em></p><p><em>terraform plan (preview of what is to be created)</em></p><p><em>terraform apply</em></p><p>In the AWS Console I checked and made sure the resources were created. Also included Florida and Texas</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*DSYPHtP77QkxJLEv6g79zA.png" /></figure><p>California Bucket created only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ZDqA3mguqmwmpNZ_.png" /></figure><p>DynamoDb Table created for 3 states</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*eFkxBh0y8btjuJhYZBP-2w.png" /></figure><p>EC2 Instances created for 3 states</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*iKELvlNWvfwz-KGMzG7jDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*20G8GLPDHWf39gGdwhKvjw.png" /></figure><p>Now that configuration was working it was time to push it to AWS CodeCommit, but first I needed to remove all the resources with the command.</p><p><em>terraform destroy -auto-approve</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0p6nJ1EuVrTvGo5KhMfP6g.png" /></figure><p>After that was completed I added a .gitignore file with the command,</p><p><em>touch .gitignore</em></p><p>to ignore the unnecessary files for the commit as in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BwMh6D2YGnGYGgSw.png" /></figure><p>Then I ran the command to push to CodeCommit.</p><p><em>git push -u origin</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6bP8odaQcedMnw4N.png" /></figure><p>The deployment of a reusable SaaS Multi-tenant AWS Infrastructure using Terraform Modules with AWS CodeCommit was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tJylbdHU4KPo4r-D.png" /></figure><p>Thanks for reading it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a1b0c74052b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of Git Repositories For Application and Infrastructure Code Using AWS Code Commit…]]></title>
            <link>https://medium.com/@parisiandressa/implementation-of-git-repositories-for-application-and-infrastructure-code-using-aws-code-commit-936778e7aba5?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/936778e7aba5</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 15:45:08 GMT</pubDate>
            <atom:updated>2024-03-27T15:45:08.720Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Implementation of Git Repositories For Application and Infrastructure Code Using AWS Code Commit and Proof of Concept (POC) Process of Commit, Push and Revert code changes — HumanGov</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*8bQH0aoOk4TyQQHSgm67MQ.png" /></figure><p><strong>In this project based on a real-world scenario, I was tasked to set-up Cloud IDE and Code repository as a DevOps Engineer. For the task I utilized AWS Cloud 9 and AWS CodeCommit.</strong></p><p><strong>AWS Cloud9 setup:</strong></p><p>In the AWS Console, I navigated to <em>Cloud9</em> via the search bar. Once there I created a new Cloud9 environment with the following options:</p><p>· Name: <strong>humangov</strong></p><p>· Environment type: <strong>New EC2 instance</strong></p><p>· Instance type: <strong>t2.micro (1 GiB RAM + vCPU) Free-tier eligible</strong></p><p>· Platform: <strong>Amazon Linux 2</strong></p><p>· Timeout: <strong>30 minutes</strong> (the ec2 instance will hibernate after 30 minutes of inactivity)</p><p>· Connection: <strong>AWS Systems Manager (SSM)</strong> — allows connectivity to the EC2 Instance (Cloud9) without opening any ports to the Internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*nNoG8frl7D_gF2O2xGd--w.png" /></figure><p>NOTE: the AWS CLI, Git, and Terraform are all pre-installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S2pNzUsKa89J_AIaekGELw.png" /></figure><p><strong>AWS CodeCommit set-up:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*eyrTg3NWxEb47HOsT601YQ.png" /></figure><p>In the console I searched for and clicked on <em>“CodeCommit”</em>. I made sure I was in the N. Virginia (us-east-1) region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*E9QEXk0J7jueMViKxWa_ng.png" /></figure><p>I then clicked on the <em>“Create repository”</em> button and created a <strong>two</strong> repository, one for the application code and the other for the infrastructure, with the following options:</p><p>· Repository name: <strong>human-gov-application</strong></p><p>· Description: <strong>This is a git repository for storing the HumanGov application source code.</strong></p><p>· Repository name: <strong>human-gov-infrastructure</strong></p><p>· Description: <strong>This is a git repository for storing the HumanGov infrastructure source code.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*xTa-KjKqecrwPcbMBWR_3w.png" /></figure><p>I used the documentation at the following link <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ide-c9.html">here</a> to integrate AWS Cloud 9 with AWS CodeCommit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*CuQLg9pA9tC7W3YKk8-pvg.png" /></figure><p>In Cloud9, I first configured my username and email to associate with my Git commits with the following commands:</p><p><em>git config — global user.name “Andressa Parisi”<br> git config — global user.email &lt;MY_EMAIL_ADDRESS&gt;</em></p><p>Next I ran the following commands to enable the AWS CLI helper to manage the credential connections to my CodeCommit repo.</p><p><em>git config — global credential.helper ‘!aws codecommit credential-helper $@’<br> git config — global credential.UseHttpPath true</em></p><p>Once this was done I used the HTTPS clone URL of the both repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*0KxzPhhGiW3Mk0hiVvHaQQ.png" /></figure><p><em>git clone &lt;INFRASTRUCTURE_CLONE_URL_URL_PLACEHOLDER&gt;<br> git clone &lt;APPLICATION_CLONE_URL_URL_PLACEHOLDER&gt;</em></p><p>That’s it! AWS Cloud9 and AWS CodeCommit are done!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936778e7aba5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Infrastructure modernization, from on-premises to Microsoft Azure with backup solution using Azure…]]></title>
            <link>https://medium.com/@parisiandressa/infrastructure-modernization-from-on-premises-to-microsoft-azure-with-backup-solution-using-azure-d1edff483ac6?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1edff483ac6</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[azure-services]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Fri, 03 Nov 2023 08:47:26 GMT</pubDate>
            <atom:updated>2023-11-03T08:55:58.574Z</atom:updated>
            <content:encoded><![CDATA[<h3>Infrastructure modernization, from on-premises to Microsoft Azure with backup solution using Azure Files, Azure Backup and Recovery Services Vault</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*NzjsIZ4n-Ycxqe7SbF8DUg.png" /></figure><p><strong>Project description:</strong></p><p>In this project based on a real-world scenario, I acted as a Cloud Specialist to modernize and migrate an on-premises infrastructure environment to Microsoft Azure. I deployed a set of Virtual Machines, the infrastructure, a shared file system and replaced backups from tape to cloud backups with 99.9% (3-nines) availability.</p><p>I used a Resource Group to organize resources, a VNet with a subnet where we would have the provisioning of 2 Application VMs and Azure Files as a shared file system solution between our Application VMs.</p><p>All the power and reliability of Azure Backup with Azure Recovery Services have been used to configure the backup of files in the shared file system. Once again, Azure Backup has been used to move the files to the Recovery Services Vault.</p><p><strong>Virtual Machines:</strong></p><p>Based on the architecture two virtual machines were needed. In the console I navigated to “Virtual Machines” and clicked <em>“Create &gt; Azure virtual machine” </em>with the following options:</p><p><em>Resource group: </em><strong><em>azurebootcamp</em></strong></p><p><em>Virtual machine name: </em><strong><em>app01</em></strong></p><p><em>Region: </em><strong><em>East US</em></strong></p><p><em>Security type: </em><strong><em>Standard</em></strong></p><p><em>Image: </em><strong><em>Ubuntu Server 20.04 LTS</em></strong></p><p><em>Size: </em><strong><em>Standard_B1s — 1vcpu, 1GiB memory</em></strong></p><p><em>Username: </em><strong><em>azureuser</em></strong></p><p><em>SSH public key source: </em><strong><em>User existing key stored in Azure</em></strong></p><p><em>Key pair name: </em><strong><em>tcbvm1_key</em></strong></p><p><em>Select inbound ports: </em><strong><em>SSH (22)</em></strong></p><p><em>“Review + create &gt; Create” and </em>repeated the same process and created another virtual machine and named it <strong>“app02”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*hpP9YZ8MVEFXHNI8Asb8LA.png" /></figure><p><strong>Storage Account:</strong></p><p>Just like Resource Groups contains all your network resources, Storage Accounts holds all of your Azure Storage data objects, including blobs, <strong>file shares</strong>, queues, tables, and disks. In the console I search for “Storage Account” and created account named: <em>tcbazurestorage</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*elk71vop7pN16QumHEC4Fg.png" /></figure><p><strong>File Share:</strong></p><p>I then clicked on the newly created storage account and navigated to “File shares” under Date storage and created one called:</p><p><em>app-shared</em></p><p>I used the three dots to the right of <em>app-shared</em> and selected “<em>Edit quota</em>” and changed it from 5 TiB to 1GiB.</p><p>Next it was time to mount the share to the virtual machines so I clicked on “app-shared &gt; Connect &gt; Linux &gt; Show Script”. I copied the script and saved it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*mTKv8s0kC77Ce3mFX51F_g.png" /></figure><p>First, I changed the permissions of the private key file I downloaded earlier with the command:</p><p><em>chmod 400 tcbvm1_key.pem</em></p><p>I then remoted into <strong>each</strong> virtual machine using it’s public IP address with the following command:</p><p><em>ssh -i &lt;private-key&gt; azureuser@&lt;public-ip-address&gt;</em></p><p>Once remoted in I ran the script I copied above to mount the file share. I verified each was created by running the command:</p><p><em>df -kh</em></p><p>To test I created a few fake files from app01 VM with the commands:</p><p><em>echo ‘Contents of file 1’ &gt;&gt; /mnt/app-shared/file1.txt<br> echo ‘Contents of file 2 ‘ &gt;&gt; /mnt/app-shared/file2.txt<br> echo ‘Contents of file 3’ &gt;&gt; /mnt/app-shared/file3.txt<br> echo ‘Contents of file 4’ &gt;&gt; /mnt/app-shared/file4.txt<br> echo ‘Contents of file 5’ &gt;&gt; /mnt/app-shared/file5.txt</em></p><p>Then from app02 they were accessible as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*KiUrcXpg2aZq8OAfrszGRw.png" /></figure><p><strong>Backup:</strong></p><p>Navigated to the “<em>Storage accounts &gt; tcbazurestorage &gt; File shares &gt; app-shared &gt; Backup &gt; Enable backup</em>”. All default options except I disabled Storage account lock so I could delete stuff after I’m done.</p><p>Once enabled, I clicked on Backup now, kept the default retention date and performed a backup.</p><p>The backup jobs can be viewed from <em>“Recovery Services &gt; vault607 &gt; Backup Jobs”.</em></p><p><strong>Simulate Data Loss &amp; Recovery:</strong></p><p>I used the remote connection to one of the virtual machines and deleted file2.txt and file5.txt with the commands:</p><p><em>cd /mnt/app-shared and rm -rf file2.txt file5.txt</em></p><p>To restore the lost data. I navigated to “app-shared” and selected <em>“File Recovery &gt; Select”.</em> Selected the backup and clicked “OK”. I changed the option “In case of Conflicts” to “Skip”. Then “Add File” and selected the two files that were deleted.</p><p>Then clicked <em>“Restore”</em>. To verify I used the SSH session with the following command:</p><p><em>ls</em></p><p>Files restored</p><p>The files were restored successfully!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*hN4e0dvxaKbEohgNZBnHng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*m4Ut3ETHsYjmvoPjjdFN2Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1edff483ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Office Solution during the COVID-19 Pandemic using Microsoft Azure VPN Gateway]]></title>
            <link>https://medium.com/@parisiandressa/home-office-solution-during-the-covid-19-pandemic-using-microsoft-azure-vpn-gateway-75c70e3587ac?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/75c70e3587ac</guid>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 10:02:25 GMT</pubDate>
            <atom:updated>2023-03-22T10:02:25.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*S5GOytRM14fj66A1.png" /></figure><p><strong>Project description:</strong></p><p>As a Cloud Specialist, I worked on this real world-based project that aimed to provide a solution for employees to work remotely while still accessing the office environment through Microsoft Azure and without exposing the entire environment to the internet.</p><p>To solve this business problem and ensure security, I implemented Point-to-Site VPNs, allowing employees to establish an encrypted tunnel between their personal Windows 10 computer and the Microsoft Azure environment.</p><p><strong>Virtual Network:</strong></p><p>To create a virtual network from the console I navigated to “Virtual Networks” and clicked “<em>Create</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EGWWaPII2i709WzT.png" /></figure><p>I gave it the following attributes:</p><p><em>Subscription: </em><strong><em>Azure subscription 1</em></strong></p><p><em>Resource group: </em><strong><em>azurebootcamp</em></strong></p><p><em>Virtual network name: </em><strong><em>VNetBootcamp</em></strong></p><p><em>Region: </em><strong><em>(US) East US</em></strong></p><p><em>IP address space: </em><strong><em>10.2.0.0/16</em></strong></p><p><strong>Subnet:</strong></p><p><em>Name:</em><strong><em> default</em></strong></p><p><em>Subnet size: </em><strong><em>10.2.0.0/24</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*yy4za9adqnrY4FyU.png" /></figure><p>Then clicked “<em>Review + create &gt; Create</em>”.</p><p><strong>Virtual Machine:</strong></p><p>From the console I navigated to “Virtual machines” and clicked “<em>Create &gt; Azure virtual machine</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*RFKQGrC4LFrpl1jw.png" /></figure><p>I filled in the following and left everything else with the defaults:</p><p><strong>Basic:</strong></p><p><em>Resource group: azurebootcamp</em></p><p><em>Virtual machine name: app01</em></p><p><em>Region: (US) East US</em></p><p><em>Image: Ubuntu Server 18.04 LTS — x64 Gen2</em></p><p><em>Size: Standard_B1s — 1 vcpu, 1 GiB memory</em></p><p><em>Authentication type: SSH public key</em></p><p><em>Username: azureuser</em></p><p><em>SSH public key source: “Use existing key store in Azure”</em></p><p><em>Stored Keys: jumpserver_key.pem</em></p><p><strong>Networking:</strong></p><p><em>Virtual network: VNetBootcamp</em></p><p><em>Public IP: None</em></p><p><em>Delete NIC when VM is deleted: checked</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*F0bQ01lIeAp3Aop4.png" /></figure><p>Then clicked “<em>Review + create &gt; Create</em>”.</p><p><strong>VPN Gateway:</strong></p><p>In the console I navigated to “Virtual Network Gateway”. Once there I clicked on “Create” and entered the following and left the others as defaults:</p><p><em>Name: </em><strong><em>vpnbootcamp</em></strong></p><p><em>Virtual Network: </em><strong><em>VNetBootcamp</em></strong></p><p><em>Public IP address name: </em><strong><em>vpnbootcampip</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*g1rSEvR359yMmw4uYUM36A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/0*ELQL8qgZExNiJtdo.png" /></figure><p>Then clicked “<em>Review + create &gt; Create</em>”. This took a while to complete. So if you are following along be patient or take a break and come back once it’s done.</p><p>Once completed, I then performed the Point-to-site configuration, but first I generated and exported the certificate required for the configuration. Here is a <a href="https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site">link</a> that shows how to do it.</p><p>In the newly created <em>vpnbootcamp</em> resource, on the left menu, I clicked “<em>Point-to-site configuration &gt; Configure now</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/0*KEzrq_bmQuH7__jf.png" /></figure><p>I then entered the following configuration.</p><p><em>Address pool: 172.16.0.0/24</em></p><p><em>Tunnel type: IKEv2 and SSTP (SSL)</em></p><p><em>Authentication type: Azure certificate</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ch6g-FOleL2CS8lkttgYvw.png" /></figure><p><strong>Root certificates</strong>:</p><p><em>Name: P2SRootCert</em></p><p><em>Cert data: &lt;copy from certificate&gt;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*DSZ0MSxWBBPLPiPE.png" /></figure><p>I then clicked “Save”. Once saved the “<em>Download VPN client”</em> button was active and clicked it to download the client.</p><p>I used a Windows 10 computer I ran the certificate installer wizard and entered the password: “<em>azurebootcamp</em>” when prompted then clicked “Next” all the way then “Yes”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*wI-CQJOWvk2RKw-r.png" /></figure><p>I got the message that the install was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*Rh_PYJwYENTWBJvF.png" /></figure><p>After this was done, I installed the VPN client on my Windows 10 machine by extracting the zipped folder contents and ran the installer in the “WindowsAmd64” folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*2JGh3ZpTTytSCov0.png" /></figure><p>I confirmed the installation and used Windows search and searched for “<em>VPN</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/0*MeE7CEw2mKLejCfD.png" /></figure><p>Installation was a success. “VNetBootcamp” showed under VPN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wvcQWhgIl3FeUvHY.png" /></figure><p>I selected “<em>VNetBootcamp</em>” and clicked “<em>Connect</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/0*uqyPUvg8Z9L3qEHr.png" /></figure><p>Connection was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/0*jMoBW1o0zhxwO0i5.png" /></figure><p>To test I used git bash to ping “app01” private IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*BjPLhCFfmmH_IX4_ke7fNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*xT3BbIky5vQaS9b2zl6tRA.png" /></figure><p>Ping was a success. I then remoted into “app01” VM via ssh with the following command:</p><p><em>ssh -i tcb tcbcm1_key azureuser@10.2.0.04</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*7CXvwSacqFORI0PDazmEHg.png" /></figure><p>Continued and installed Apache2:</p><p><em>sudo apt-get update</em></p><p><em>sudo apt-get install apache2</em></p><p><em>sudo systemctl restart apache2.service</em></p><p>In the browser URL I entered the private IP address 10.2.0.4 and Apache2 Ubuntu Default Page rendered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*NbeUBN1IIyAZmAVTMjoS7Q.png" /></figure><p>The Point-to-Site VPN tunnel was successfully implemented.</p><p>I hope you enjoyed reading!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*n2qBMLqHe0SbTFQd.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75c70e3587ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparation, Docker Image Push and Deployment for Containerized Voting Application in Kubernetes…]]></title>
            <link>https://medium.com/@parisiandressa/preparation-docker-image-push-and-deployment-for-containerized-voting-application-in-kubernetes-ed47798ee955?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed47798ee955</guid>
            <category><![CDATA[azure-services]]></category>
            <category><![CDATA[multicloud-management]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Sun, 19 Mar 2023 19:50:10 GMT</pubDate>
            <atom:updated>2023-03-19T19:50:10.112Z</atom:updated>
            <content:encoded><![CDATA[<h3>Preparation, Docker Image Push and Deployment for Containerized Voting Application in Kubernetes Cluster using Docker, Azure Container Registry (ACR) and Azure Kubernetes Service (AKS).</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*_FbPstjJvyNMRLrq.png" /></figure><p><strong>Project description:</strong></p><p>Another project based on a real-world scenario, I was required to take on the role of a DevOps Engineer and demonstrate how to deploy an application on a Kubernetes cluster.</p><p>This cluster is part of The Cloud Bootcamp project. The voting application was developed for the MultiCloud Experience, an online event where participants had the opportunity to learn about Cloud technologies.</p><p>I deployed it to <strong>Microsoft Azure</strong> cloud, where I first pushed the application’s Docker image to Azure Container Registry (ACR) and then used the Azure Kubernetes Service (AKS) service to deploy a cluster managed by Microsoft Azure.</p><p><strong>Preparation:</strong></p><p>Instead of installing the Azure CLI on my local machine I used Azure Cloud Shell which has the CLI pre-installed. From the Azure Console I clicked the <em>Cloud Shell</em> icon at the top of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*0NStQm7s-vPdLV8m.png" /></figure><p>I was presented with a prompt to create a storage account.</p><p><em>To ensure security, it is important for each user to create their own storage account. In order to utilize Azure role-based access control, users must have at least contributor access level or higher for the storage account. Cloud Shell utilizes an Azure file share within a storage account, which is located within a specific subscription.</em></p><p>I clicked on “<em>Create Storage</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*qBlr0u7FL_n98H4p.png" /></figure><p>Then created a Resource Group, which is a container to hold related resources for a solution, with the following command:</p><p><em>az group create — name tcb-vote — location eastus</em></p><p><strong>Azure Container Registry (ACR):</strong></p><p>I then created an Azure Container Registry to later store the application image with the following command:</p><p><em>az acr create — resource-group tcb-vote — name tcbandressaparisi — sku Basic</em></p><p>Only showing part of the result</p><p>Next I logged into the ACR and exposed the login token with the command:</p><p><em>az acr login — n tcbandressaparisi — expose-token</em></p><p><strong>Docker Image:</strong></p><p>I downloaded and unzipped the application files with the following commands:</p><p><em>wget </em><a href="https://thecloudbootcamp.blob.core.windows.net/azure-bootcamp/tcb-voting-app.zip"><em>https://thecloudbootcamp.blob.core.windows.net/azure-bootcamp/tcb-voting-app.zip</em></a></p><p><em>unzip tcb-voting-app.zip</em></p><p>I then moved into the application folder where the Dockerfile is located.</p><p><em>cd tcb-voting-app/tcb-vote/</em></p><p>Created the docker image and pushed it to the registry with the commands:</p><p><em>az acr build — image tcb-vote — registry andressaparisi — file Dockerfile .</em></p><p><strong>Azure Kubernetes Service (AKS):</strong></p><p>In order to deploy the application I created a Kubernetes service with the command:</p><p><em>az aks create — resource-group tcb-vote — name AKSClusterTCB — node-count 1 — generate-ssh-keys</em></p><p>The command first generates ssh keys then continues to fully provision the service.</p><p>Only showing part of the result</p><p>I then attached the ACR to the AKS with the command:</p><p><em>az aks update -n AKSClusterTCB -g tcb-vote — attach-acr andressaparisi</em></p><p>Only showing part of the result</p><p>In order to authenticate with the Kubernetes cluster I ran the following command:</p><p><em>az aks get-credentials — resource-group tcb-vote — name AKSClusterTCB</em></p><p>To test the connection I ran the command:</p><p><em>kubectl get nodes</em></p><p><strong>Deployment:</strong></p><p>Before I could deploy the application I had to modify the deployment YAML file to point to the location of the container image. I moved into the directory where the <em>tcb-vote-plus-redis.yaml</em> file was located:</p><p><em>cd ~/tcb-voting-app</em></p><p>I used “vi” to edit the <em>tcb-vote-plus-redis.yaml </em>section<em> </em>“containers”:</p><p><em>name: tcb-vote-front</em></p><p><em>image </em><strong><em>tcbandressaparisi.azurecr.io</em></strong><em>/tcb-vote-:latest (</em><strong><em>changed to this</em></strong><em>)</em></p><p><em>:x (save &amp; exit)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*5lbRfaD0pHbUHM2UDOk63w.png" /></figure><p>I then deployed the application with the command:</p><p><em>kubectl apply -f tcb-vote-plus-redis.yaml</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*P3xvObtVshXkr2MBDBywbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afKEweeaNl07C5tRuOw6_g.png" /></figure><p>Deployments Ready</p><p>In order to access the application in the browser I ran the following command to get the external IP address of the load balancer:</p><p><em>kubectl get service — watch</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*P3xvObtVshXkr2MBDBywbA.png" /></figure><p>Copied and pasted the IP address above in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*CaxieASbVSW4cWoVmY9W7Q.png" /></figure><p>This deployment was a success! Thanks for reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*c63fU8qW8xoeEh7j.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed47798ee955" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[md 2 azure MultiCloud Federation — Microsoft Azure and Oracle Cloud Infrastructure using Single…]]></title>
            <link>https://medium.com/@parisiandressa/md-2-azure-multicloud-federation-microsoft-azure-and-oracle-cloud-infrastructure-using-single-b0b879251ce4?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0b879251ce4</guid>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[multicloud-management]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Sun, 19 Mar 2023 19:10:17 GMT</pubDate>
            <atom:updated>2023-10-12T14:00:15.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>MultiCloud Federation — Microsoft Azure and Oracle Cloud Infrastructure using Single Sign-On for Teams Authentication</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*iuCtipPsKNWjILGH" /></figure><p><strong>Project description</strong>:</p><p>In this project based on a real scenario, I was responsible for designing and implementing a MultiCloud architecture, by performing MultiCloud federation of users and groups between Azure Active Directory and OCI IAM.</p><p>There were multiple users who needed to authenticate to both Microsoft Azure and Oracle Cloud Infrastructure using the same login and password (single sign-on) to access resources.</p><p>Once the integration was implemented in Oracle Cloud Infrastructure, the mapping of users and groups was directly related to users and groups in Microsoft Azure through the federation service.</p><p><strong>Prerequisite</strong>:</p><p>There is one prerequisite that needs to be done since I’m using an Azure Active Directory (AD) Free license. The federation service is only available with Azure AD Premium P2 license.</p><p>From the Home page I clicked on “<em>Azure Active Directory</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*Y6Vo54tYHIN9xDQu" /></figure><p>and then scrolled down on the left menu and selected “<em>Usage &amp; insights</em>” under the <em>Monitoring</em> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/0*bwY9fqFQEaKWcNtm" /></figure><p>On the next page selected “<em>Start a free Premium Trial</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5-9mk7_XX-6iItLo" /></figure><p>Then on the <em>Activate</em> page selected the “<em>Free trial</em>” down arrow under Enterprise Mobility + Security E5 and clicked “<em>Activate</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5fhmYXukkCLcuNHZ" /></figure><p>Once activated the License changed to Azure AD Premium P2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*b0a7J3epngpPlETC" /></figure><p>The Oracle Cloud Infrastructure (OCI) Federation Metadata XML document will be used to do the mapping between OCI and Azure.</p><p>From the left menu icon in OCI I selected “<em>Identity &amp; Security</em> &gt; <em>Federation</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*noNvHq-qr-Lnr3TK" /></figure><p>Under <em>Federation</em> I right-clicked on “<em>Download this document</em>” and selected “<em>Save Link as</em>” and saved the file to a folder to be used later.</p><p>In order for the Single Sign-on federation service to work both Oracle and Azure accounts must have the same Groups so that when mapped the authentication and authorization can work.</p><p>In Azure AD from the left menu I navigates to “<em>Groups &gt; New Group</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*id0B7o1TSzirUZg2" /></figure><blockquote><em>Group name: Administrators /Group description: Administrators</em></blockquote><p>Clicked on the link below Members and added myself as a user to the group, “<em>Select</em>” &gt; “<em>Create</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*AwM56HfO8smVwAA6" /></figure><p>Moving forward I then added the <em>Oracle Cloud Infrastructure Console Application</em> in order to integrate it with Azure Active Directory.</p><p>From the left menu on the AD Overview page I clicked on “<em>Enterprise applications</em>” under the <em>Manage</em> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/0*Q_oxJp9t86UG5Jek" /></figure><p>Then “<em>New Application</em>” and searched for “<em>Oracle Cloud Infrastructure</em>” and selected it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*Q-K91P5GAwgKrG_G" /></figure><p>I left everything as default and clicked “Create”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/0*B4-JdqFotybtOYah" /></figure><p>To start the configuration process I clicked on “<em>Set up single sign on</em>”<em> &gt; </em>“<em>SAML</em>” which is the protocol that’s going to be used for the integration to work.</p><p>At the top of the page I clicked on “<em>Upload metadata file</em>” and uploaded the XML file I downloaded earlier. Once successfully uploaded, the Identifier and Reply URL values get auto populated in the Basic SAML Configuration section text box.</p><p>Under the <em>Sign on URL</em> I copied and pasted my OCI Sign-on URL and clicked “Save” at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ISDuebvhDOHi8POADqaG_Q.png" /></figure><p>Clicked the “x” at the top right to close.</p><p>Next under “Attributes &amp; Claims” I clicked “<em>Edit</em>” &gt; “<em>Unique User Identifier (Name ID)</em>” and changed <em>Name identifier format</em>’ to “<em>Persistent</em>” and clicked “<em>Save</em>”. I continued and clicked on “<em>Add a group claim</em>” selected “<em>Security groups</em>” and expanded <em>Advanced options</em>, checked the checkbox next to “<em>Customize the name of the group claim</em>” and entered the following</p><blockquote><em>Name: groupName</em></blockquote><blockquote><em>Namespace (Optional): </em><a href="https://auth.oraclecloud.com/saml/claims"><em>https://auth.oraclecloud.com/saml/claims</em></a></blockquote><p>and clicked “Save”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4IOum0ecDRBwfPep" /></figure><p>Clicked the “x” at the top right to close.</p><p>Next under “<em>SAML Certificates</em>” I downloaded the <em>Federation Metadata XML</em> file to be used in OCI Console.</p><p>Once downloaded I clicked on “<em>Users and groups</em>” on the left menu, then “<em>Add user/group</em>” and associated the <em>Administrator</em> group to the application.</p><p><strong>Configure Oracle Cloud Infrastructure Console SSO</strong>:</p><p>In the OCI Console I navigated to “<em>Identity &amp; Security</em>” &gt; “<em>Federation</em>” and clicked the “Add Identity Provider” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*1QmcR4W90k0Ttvdy" /></figure><p>On the next screen I entered the following for both Name and Description</p><blockquote><em>AzureActiveDirectory</em></blockquote><p>and left everything else as is and clicked “<em>Continue</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*qOa0_GecZyDFRRR9" /></figure><p>On the next screen I entered the following to map the Azure Administrators Group to the OCI Administrators Group:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*azVYsOZCSX7KYLyY" /></figure><ul><li>Identity Provider &lt;Object_Id_of_the_Administrators_Group&gt;</li><li>OCI Group: Administrators</li></ul><p>And clicked “<em>Add Provider</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Izaw9-HJoAdCPijO" /></figure><p><strong>Testing SSO</strong>:</p><p>I used a new Incognito tab and navigated to the OCI Sign-in page with the correct tenancy selected and selected the “<em>azureactivedirectory</em>” Identity Provider and clicked “<em>Continue</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*_Ry5fxSNlgSXmyOZ7xyrtQ.png" /></figure><p>I entered my Azure login credentials (<em>Email and password</em>) and successfully logged in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_R3GJcUyNYN8ykFX5j17w.png" /></figure><p>That’s it! Single sign-on federation between Azure and OCI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*M3SZuOVuvcxKBoQB" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0b879251ce4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Users, Groups And Policies In A 100% Automated Way Using Ansible And Cloud Shell.]]></title>
            <link>https://medium.com/@parisiandressa/deploying-users-groups-and-policies-in-a-100-automated-way-using-ansible-and-cloud-shell-bb3ba2c0a90d?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb3ba2c0a90d</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 09:44:06 GMT</pubDate>
            <atom:updated>2023-03-08T09:44:06.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*p4VObpLp-8eQAlLn" /></figure><p><strong>Project description</strong>:</p><p>In this project based on a real-world scenario, I acted as Cloud Specialist with the mission to create Users, Groups and Policies in the Oracle Cloud Infrastructure. It seemed an easy task to perform using the OCI console. However, it’s not a viable solution when it comes to large scale cases. So I decided to automate the process with the use of Ansible playbooks.</p><p><strong>Prerequisites</strong>:</p><p>A compartment is a logical container used for security isolation and access control. It’s global so it encompasses all OCI regions within a tenancy.</p><p>I used the menu and navigated to “<em>Identity &amp; Security &gt; Compartments</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*oTEF-Cic1iDuoKTy.png" /></figure><p>and created the following compartments:</p><p><strong><em>Name</em></strong><em>: resourcesCompute, </em><strong><em>Description</em></strong><em>: Compartment used to organize the Compute resources in Oracle Cloud Infrastructure.</em></p><p><strong><em>Name</em></strong><em>: resourcesDatabase, </em><strong><em>Description</em></strong><em>: Compartment used to organize the Database resources in Oracle Cloud Infrastructure.</em></p><p><strong><em>Name</em></strong><em>: resourcesNetworking, </em><strong><em>Description</em></strong><em>: Compartment used to organize the Networking resources in Oracle Cloud Infrastructure.</em></p><p><strong>Setting environment variables</strong>:</p><p>At the top of the console I clicked on the <em>Developer Tools</em> icon then selected “<em>Cloud Shell</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QR6qaivaEGh4wbq1" /></figure><p>In Cloud Shell I exported the following environment variables so that Ansible could use them.</p><p><em>export PARENT_COMPARTMENT_OCID=&lt;insert-TENANCY-ocid&gt;</em></p><p><em>export NETWORKING_COMPARTMENT_OCID=&lt;insert-NETWORKING_COMPARTMENT-ocid&gt;</em></p><p><em>export COMPUTE_COMPARTMENT_OCID=&lt;insert-COMPUTE_COMPARTMENT-ocid&gt;</em></p><p><em>export DB_COMPARTMENT_OCID=&lt;insert-DB_COMPARTMENT-ocid&gt;</em></p><p>Next I created a folder to store my playbook and moved into it with the following command:</p><p><em>mkdir tcb-bmc-iam &amp;&amp; cd tcb-bmc-iam</em></p><p>I then ran the command to download the zip file from a storage bucket:</p><p><em>wget </em><a href="https://objectstorage.us-ashburn-1.oraclecloud.com/p/eRJ8pKclDBA_MZeuAqj75jkfPq3yvuqe4TslzNjqY7Y1RKTLMGipnbwfPO7cnp5F/n/idqfa2z2mift/b/bootcamp-oci/o/EN/oci-handson-module-iam.zip"><em>https://objectstorage.us-ashburn-1.oraclecloud.com/p/eRJ8pKclDBA_MZeuAqj75jkfPq3yvuqe4TslzNjqY7Y1RKTLMGipnbwfPO7cnp5F/n/idqfa2z2mift/b/bootcamp-oci/o/EN/oci-handson-module-iam.zip</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*RjYUbio4js8_2SJTztDjWA.png" /></figure><p>Then unzipped it with the command:</p><p><em>unzip oci-handson-module-iam.zip</em></p><p><strong>Running the Ansible Playbooks</strong>:</p><p>I executed each Ansible playbook with the following commands one at a time.</p><p><em>ansible-playbook tcb-bmc-iam-creating-groups-and-policies.yaml</em></p><p><em>ansible-playbook tcb-bmc-iam-creating-users-cloud-admin.yaml</em></p><p><em>ansible-playbook tcb-bmc-iam-creating-users-dba-admin.yaml</em></p><p><em>ansible-playbook tcb-bmc-iam-creating-users-network-admin.yaml</em></p><p><em>ansible-playbook tcb-bmc-iam-creating-users-compute-admin.yaml</em></p><p><em>ansible-playbook tcb-bmc-iam-creating-users-operators.yaml</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*JLg2NW-w1Ru7C1IohD7KkQ.png" /></figure><p>I then confirmed the creation of all resources in the console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*FxpjOnn64NQfBGpPhESjTA.png" /></figure><p>Created my Groups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WZuaxVNyGqfCcPWg" /></figure><p>Then, created policies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*MZ5V5eawJa06RuxW" /></figure><p>You can do it for hundreds of users manually.</p><p>I hope you enjoyed reading it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*mTexDZZt4BNsBLaf" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb3ba2c0a90d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of Network Communication Control in Oracle Cloud Infrastructure With Virtual Cloud…]]></title>
            <link>https://medium.com/@parisiandressa/deployment-of-network-communication-control-in-oracle-cloud-infrastructure-with-virtual-cloud-d17949a0a3c8?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d17949a0a3c8</guid>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[multicloud-management]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 16:21:53 GMT</pubDate>
            <atom:updated>2023-03-06T16:21:53.978Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployment of Network Communication Control in Oracle Cloud Infrastructure With Virtual Cloud Network (VCN), Distinct Subnets And Security Lists With Specific Rules for each Subnet.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QibqFG7B6kcOXZMa" /></figure><p><strong>Project description</strong>:</p><p>For this Networking Mission, I had to deploy a Global Financing Portal application in the Finance subnet, and then allow people from other departments, like Sales, to securely access it when they needed.</p><p>Considering security best practices, I’ve defined some prerequisites:</p><p><strong>NETWORKING</strong>:</p><p><strong>VNC</strong></p><p>In the console I navigated to “<em>Networking</em>” &gt; “<em>Virtual Cloud Networks</em>” and selected the “<em>resourcesNetworking</em>” compartment. If you don’t know what a compartment is read about it <a href="https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcompartments.htm">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/0*H87VXsYptDttDfK4" /></figure><p>I clicked “<em>Create VCN</em>” button and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/0*_0ADoBeuJ5-IJBHV" /></figure><p>created the VCN with the following details: <em>Name: vcn-mod3 and CIDR Block: 10.0.0.0/16</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*SYsN9Uy3Ah53LZAv" /></figure><p><strong>Subnets</strong></p><p>Under Resources on the left, I clicked on “<em>Subnets</em>” then the “Create Subnet” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/0*ZXaoMg-VKhhxMwpa" /></figure><p>I created the Subnet Public and Private with the following details:</p><p><em>Name: vm-finance</em></p><p><em>CIDR Block: 10.0.1.0/24</em></p><p><em>Route Table Compartment in resourcesNetworking: Default Route Table for vcn-mod3</em></p><p><em>Dhcp Options Compartment in resourcesNetworking: Default DHCP Options for vcn-mod3</em></p><p><em>Security List Compartment in resourcesNetworking: Default Security List for vcn-mod3</em></p><p><em>Name: vm-sales</em></p><p><em>CIDR Block: 10.0.2.0/24</em></p><p><em>Route Table Compartment in resourcesNetworking: Default Route Table for vcn-mod3</em></p><p><em>Dhcp Options Compartment in resourcesNetworking: Default DHCP Options for vcn-mod3</em></p><p><em>Security List Compartment in resourcesNetworking: Default Security List for vcn-mod3</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*NkrDqV3Rm2DmMhE7ll7NFw.png" /></figure><p><strong>Security Lists</strong></p><p><a href="https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securitylists.htm">Security Lists</a> are virtual firewall rules. Under <em>Resources</em> on the left I selected “<em>Security Lists</em>” then the “<em>Create Security List</em>”</p><p><em>Name and +Another Ingress Rule</em></p><p><em>Source CIDR: &lt;MY_IP_ADDRESS&gt;/32</em></p><p><em>Destination Port: 22</em></p><ul><li><em>Another Egress Rule</em></li><li><em>Source CIDR: 0.0.0.0/0</em></li><li><em>Destination Port: All</em></li></ul><p>I then created the second security list with the following details:</p><p><em>Name and +Another Ingress Rule (First)</em></p><p><em>Source CIDR: &lt;MY_IP_ADDRESS&gt;/32</em></p><p><em>Destination Port: 22</em></p><p><em>Another Ingress Rule (Second)</em></p><ul><li><em>Source CIDR: 10.0.2.0/24 [sales-subnet CIDR IP]</em></li><li><em>Destination Port: 80</em></li></ul><p><em>Another Egress Rule</em></p><ul><li><em>Source CIDR: 0.0.0.0/0</em></li></ul><p><em>Destination Port: All</em></p><p>After I created the Security Lists I associated them to their respective subnets. I navigated to “<em>Subnets</em>” and selected “<em>subnetA</em>”. I first removed the default security list.</p><p>Then clicked the “<em>Add Security List</em>” button and associated the “<em>sl-suubnetA</em>” Security List.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*3fQXO1UDHxua8TgD" /></figure><p>I repeated the same process for the “subnetB”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*DTO-hhA0Djz4TdFKz6yZiA.png" /></figure><p><strong>Internet Gateway</strong></p><p>I clicked on “<em>Internet Gateway</em>” under <em>Resources</em> and created one with the following: <em>Name: tcb-internet-gw</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*V_Mmkbc5ie3zId8t8tNPLA.png" /></figure><p>In order for traffic to be routed correctly I added a rule to the Default Route Table. Under <em>Resources</em> I selected “<em>Route Tables</em>” &gt; “<em>Default Route Table for tcb-internet-gw</em>”</p><p>and added the following Route Rule:</p><p><em>Target Type: Internet Gateway</em></p><p><em>Destination CIDR Block: 0.0.0.0/0</em></p><p><em>Target Internet Gateway: internet-gw-mod3</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*WpM5qMGK86_HfYS1vmK_vA.png" /></figure><p><strong>COMPUTE</strong>:</p><p>From the console main menu I selected “<em>Compute</em>” &gt; “<em>Instances</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*ahXrbwj0x7IfflQH" /></figure><p>then the “<em>Create Instance</em>” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*vOVUOxo8bnhlpTuT" /></figure><p>I created the first instance with the following details/options:</p><p><em>Name: vm-finance</em></p><p><em>Shape/OS: Always Free / Oracle Linux 7.9</em></p><p><em>Networking | Edit</em></p><p><em>Network | Select existing virtual cloud network</em></p><p><em>Selected the compartment for networking resources.</em></p><p><em>From the section Subnet | Selected existing virtual cloud network</em></p><p><em>Selected the compartment for networking resources!</em></p><p><em>Selected the subnet “vm-finance”</em></p><p><em>From Add SSH Keys, Generate SSH key pair, I clicked on “Save Private Key”.</em></p><p>I renamed the key to “<em>ssh-key-subnetA-public.key”.</em></p><p>I created the second instance with the following details/options:</p><p><em>Name: vm-sales</em></p><p><em>Shape/OS: Always Free / Oracle Linux 7.9</em></p><p><em>Networking | Edit</em></p><p><em>Network | Select existing virtual cloud network</em></p><p><em>Selected the compartment for networking resources</em></p><p><em>From the section Subnet | Select existing virtual cloud network</em></p><p><em>Selected the compartment for networking resources</em></p><p><em>Selected the subnet “vm-sales”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*NkrDqV3Rm2DmMhE7ll7NFw.png" /></figure><p><em>From Add SSH Keys, Generate SSH key pair, I clicked on “Save Private Key”.</em></p><p>Once both instances were up and running, I made sure I was in the directory where I downloaded the ssh keys and and changed their permissions with the command: <em>chmod 600 ssh-key-*</em></p><p>I then remoted into the virtual machine with the command</p><p><em>ssh -i ssh-key-vm-finance-public.key opc@&lt;Instance_Public_IP&gt;</em></p><p>Followed by the execution of the following commands:</p><p><strong><em>sudo yum install httpd -y</em></strong><em> (install Apache)</em></p><p><strong><em>sudo apachectl start</em></strong><em> (start Apache)</em></p><p><strong><em>sudo systemctl enable httpd</em></strong><em> (Enable connections to Apache)</em></p><p><strong><em>sudo firewall-cmd — zone=public — add-service=http</em></strong><em> (create firewall rule for port 80 http)</em></p><p><strong><em>sudo firewall-cmd — permanent — zone=public — add-service=http</em></strong></p><p><strong><em>sudo firewall-cmd — reload</em></strong><em> (restart firewall to apply the changes)</em></p><p><strong><em>cd /var/www/html/</em></strong></p><p><strong><em>sudo wget </em></strong><a href="https://objectstorage.us-ashburn-1.oraclecloud.com/p/0GFffVSC0EF6-IAf1h6KiDDscR1izrV2q0mMZOeH9Gabm7dGGCj5U_Ybbr4a3MAs/n/idqfa2z2mift/b/bootcamp-oci/o/EN/oci-handson-module-networking-website-files.zip"><strong><em>https://objectstorage.us-ashburn-1.oraclecloud.com/p/0GFffVSC0EF6-IAf1h6KiDDscR1izrV2q0mMZOeH9Gabm7dGGCj5U_Ybbr4a3MAs/n/idqfa2z2mift/b/bootcamp-oci/o/EN/oci-handson-module-networking-website-files.zip</em></strong></a><strong><em> </em></strong><em>(download zipped files)</em></p><p><strong><em>sudo unzip oci-handson-module-networking-website-files.zip</em></strong><em> (unzip)</em></p><p><strong><em>sudo chown apache:apache *.*</em></strong><em> (make apache the owner of the files)</em></p><p><strong><em>sudo rm -rf __MACOSX oci-handson-module-networking-website-files.zip</em></strong><em> (remove these folders)</em></p><p>At this time I couldn’t test the application in the browser because if you remember the finance instance has a Security List Ingress Rule to only allow access on port 80 via the sales-subnet CIDR IP.</p><p>That being said I remoted into the “vm-sales” with the following command: <em>ssh -i ssh-key-vm-sales.key opc@&lt;Instance_Public_IP&gt;</em></p><p>Then executed the commands below to install the GUI:</p><p><strong><em>sudo yum -y groups install “Server with GUI”</em></strong><em> (install and enable GUI)</em></p><p><strong><em>sudo yum group list</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*DecVwmbWLuPyxLQ26c-rEw.png" /></figure><blockquote><strong><em>sudo yum install tigervnc-server -y</em></strong><em> (to allow remote connection to the sales VM)</em></blockquote><p>Followed by the commands below to configure the VNC Server:</p><p><strong><em>cd /lib/systemd/system/</em></strong></p><p><strong><em>sudo cp vncserver@.service /etc/systemd/system/vncserver@:1.service</em></strong></p><p><strong><em>sudo vi /etc/systemd/system/vncserver@:1.service</em></strong><em> (Use vi to change the user to “ops”)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/0*SxOYCzL_-TdFfH2v" /></figure><blockquote><strong><em>vncpassword</em></strong><em> (configure a VNC password)</em></blockquote><p>I entered “welcome1” as the password and selected “no” when the prompt asked, “Would you like to enter a view-only password?”.</p><p><strong>Set-up and load the VNC</strong></p><p>I executed the following commands to set up and load the VNC service:</p><p><em>sudo systemctl enable vncserver@:1.service</em></p><p><em>sudo systemctl daemon-reload</em></p><p><em>sudo systemctl start vncserver@:1.service</em></p><p><em>sudo systemctl status vncserver@:1.service</em></p><p>After the execution of the last command the status “Activity” should be “<em>active (running)</em>” only then it’s okay to move forward.</p><p><strong>Access the Sales Instance via VNC</strong></p><p>In order to connect to the Sales Instance I used the RealVNC Viewer. I downloaded it to my Windows. You can choose whatever operating system you have. However, before I could use it to connect I had to create an SSH Tunnel from my laptop to the sales virtual machine (sales-vm) in Oracle’s Infrastructure. I executed the command:</p><p><em>ssh -L 5901:localhost:5901 opc@&lt;public-ip-vm-sales&gt; -i &lt;private-key-vm-sales&gt;</em></p><p>Once done I launched RealVNC Viewer and entered the following in the address bar and “Enter” on my keyboard.</p><p><em>localhost:5901</em></p><p>Then the password “welcome1” and clicked “OK”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lfhupyjNk9u8ytMe" /></figure><p>To test, I used Firefox and queried the private IP address of the Finance VM on which the Global Financing Portal application was deployed. Success!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6Zbyg5Fb3AnRM8FzwGgVQ.png" /></figure><p>The end! I hope you enjoyed the project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*xeeBAVa6_sdz8Aud" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d17949a0a3c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS…]]></title>
            <link>https://medium.com/@parisiandressa/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-the-amazon-ec2-and-rds-3872688ef623?source=rss-d462095298c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3872688ef623</guid>
            <category><![CDATA[switzerland]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Parisi, Andressa]]></dc:creator>
            <pubDate>Wed, 04 Jan 2023 08:47:17 GMT</pubDate>
            <atom:updated>2023-01-04T08:47:17.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS service</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*89mJMcF_4VgbaTKA" /></figure><p><strong>Project description</strong>:</p><p>In another project based on a real-world scenario, I acted as the Cloud Specialist responsible for migrating a workload running in a Corporate Data Center to AWS. The application and database were migrated to AWS using the Lift &amp; Shift (rehost) model, moving both application and database data.</p><p>I followed some migration steps: Planning (sizing, prerequisites, resource naming), Execution (resource provisioning, best practices), Go-live (validation test — Dry-run, final migration — Cutover) and Post Go-live (ensure the operation of the application and user access).</p><p><strong>Planning</strong>:</p><p>Before implementing any project it’s a good idea to plan. Planning helps to assess what needs to be done to accomplish your goal. In my case, I used a spreadsheet and took details of the current system in the on-premises data center so I could come up with a <em>sizing</em> estimate for the AWS migration.</p><ul><li>Server Name</li><li>Server IP</li><li>Description of the resources</li><li>Total RAM (GB)</li><li>Total vCPU</li><li>Total Storage (GB)</li></ul><p>Then used the AWS documentation to choose the right instance sizes based on the on-premises <em>Total RAM, Total vCPU, and Total Storage</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WOEMzkNDEPz6Y_kJ" /></figure><p>To best replicate the private network in the data center I will need to create a Virtual Private Cloud (VPC) within an AWS region, with an availability zone (AZ) and subnets.</p><p>Now this took care of the on-premises hardware and networking to the cloud. Another part of the planning phase is the <em>prerequisites</em>, such as, the operating system, different software&#39;s and libraries with the commands to install them and storage size for the hosts on AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*avxJvv9-AeMOqCEm" /></figure><p><strong>Implementation</strong>:</p><p><strong>Creating VPC:</strong></p><p>In the AWS Console, I searched for and selected VPC then “Create VPC” at the top of the next page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*_VSiqOztub2_SAsx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*MVMKsLJKeZWKzt_U" /></figure><p>On the create VPC page there are two options: <em>VPC only and VPC and more</em>. I wanted to create every resource myself without the help of AWS so I selected the VPC only option with the following selections and inputs and clicked “Create VPC”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*FeE4RU6Q1_27jyGV" /></figure><p>It’s important to note that the CIDR block (10.0.0.0/16) should not overlap with your on-premises or other cloud providers.</p><p><strong>Creating Subnets:</strong></p><p>I created 1 public subnet and 2 private subnets. The first was for the web application and the latter two for the RDS database. From the VPCs page left menu I selected <em>Subnets -&gt; Create subnet</em> on the next page.</p><p>For the other two private subnets I clicked on the “Add new subnet” button and created them with the following information respectively and then clicked “Create subnet”.</p><p><em>Subnet name: vpc-production-1-pv-1 (Private)</em></p><p><em>CIDR Block: 10.0.1.0/24</em></p><p><em>Availability zone: same as the public subnet</em></p><p><em>Subnet name: vpc-production-1-pv-2 (Private)</em></p><p><em>CIDR Block: 10.0.2.0/24</em></p><p><em>Availability zone: us-east-1b</em></p><p><strong>EC2 Provisioning</strong>:</p><p>In the console I searched for and selected EC2 -&gt; Launch instance with the following:</p><p><em>Name and tags: awsuse1app01</em></p><p><em>Amazon Machine Image: Ubuntu 18.04 LTS</em></p><p><em>Instance type: t2.micro</em></p><p><em>Network: vpc-bootcamp</em></p><p><em>Subnet: (Public)</em></p><p><em>Assign public IP: Enable</em></p><p><em>Security group name: app-sg01</em></p><p><em>Port: 22 — Source: 0.0.0.0/0</em></p><p><em>Port: 8080 — Source: 0.0.0.0/0</em></p><p>I created and downloaded an SSH Key so that I could SSH into the <em>awsuse1app01 </em>instance. You might have noticed I set my security group access to anywhere/public. This is NOT best practice and in production you should only allow from known IP addresses. I verified all options were correct and “Create instance”</p><p><strong>Creating BD RDS</strong>:</p><p>In the console I searched for and selected <em>RDS -&gt; Create database</em> with the following:</p><p><em>MySQL:</em></p><p><em>Standard create</em></p><p><em>MySQL 5.7.33</em></p><p><em>Templates: free-tier</em></p><p><em>DB Instance: awsuse1db01</em></p><p><em>Master username: admin</em></p><p><em>Master password: admin123456</em></p><p><em>DB instance class: db.t2.micro</em></p><p><em>Storage: 20 GB</em></p><p><em>Connectivity:</em></p><p><em>VPC: vpc-production-1</em></p><p><em>Public access: No</em></p><p><em>Create new VPC security group:</em></p><p><em>New VPC security group name: sec-group-db-01</em></p><p><em>Availability Zone: us-east-1a</em></p><p>I verified all options were correct and clicked “Create database”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*B1Nz2vpSbD_agotZAcT-Dg.png" /></figure><p>Then, connected the VM — EC2 using the private key and installed “Git Bash” and runned the command:</p><p>ssh -i chavessh ubuntu@ip-publico-ec2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*uzeYyXS_53f2sNBF7cYHFA.png" /></figure><p><strong>Creating Gateway and attach to the VPC:</strong></p><p>VPC | Internet Gateway: igw-mod3 | Action: Attach to VPC (vpc-bootcamp)<br>VPC | Route Table | Routes | Edit routes | Add route: 0.0.0.0/0 — Target: Internet Gateway (igw-mod3)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*WOxSlAXcC_ZE9cDw2yzH3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*8bDwR_U1so_Qa62WdxjEkQ.png" /></figure><p>I then ran the following commands:</p><p><em>sudo apt-get update</em></p><p><em>sudo apt-get install python3-dev -y</em></p><p><em>sudo apt-get install libmysqlclient-dev -y</em></p><p><em>sudo apt-get install unzip -y</em></p><p><em>sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev -y</em></p><p><em>sudo apt-get install libsasl2-dev libffi-dev -y</em></p><p>Next I installed PIP for Python:</p><p><em>curl -O </em><a href="https://bootstrap.pypa.io/pip/3.6/get-pip.py;"><em>https://bootstrap.pypa.io/pip/3.6/get-pip.py;</em></a><em> python3 get-pip.py — user</em></p><p>I got the following warning,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*P637nf9rRoZsZxJj" /></figure><p>which meant I needed to add ‘/home/ubuntu/.local/bin’ to my PATH. I did so with the command:</p><p><em>export PATH=$PATH:/home/ubuntu/.local/bin/</em></p><p>I then continued to install the other prerequisites.</p><p><em>pip3 install flask</em></p><p><em>pip3 install wtforms</em></p><p><em>pip3 install flask_mysqldb</em></p><p><em>pip3 install passlib</em></p><p>I also installed the AWS CLI and MySQl Client with the commands:</p><p><em>sudo apt install awscli -y</em></p><p><em>sudo apt-get install mysql-client -y</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*UI2GufgoeseZAot7xz9WFQ.png" /></figure><p><strong>Go Live Validation and Final Migration</strong></p><p>RDS | DB Instances | awsuse1db01 | Modify<br>Connectivity | SG: EC2toRDS-sg<br>Continue… Apply immediately e “Modify DB instance”</p><p>Check the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*N6vK_YKrMvv84-PILCZPBQ.png" /></figure><p>Connect VM — EC2 using the private key ‘chavessh’</p><p>ssh -i chavessh1.pem ubuntu@44.205.4.202</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*1D5dqeN-L57DXpcMyaMdqw.png" /></figure><p>I downloaded the application zipped files and the database dump.</p><p><em>wget </em><a href="https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/wikiapp-en.zip"><em>https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/wikiapp-en.zip</em></a></p><p><em>wget </em><a href="https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/dump-en.sql"><em>https://tcb-bootcamps.s3.amazonaws.com/bootcamp-aws/en/dump-en.sql</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRhIChwtb8lPXPXis7pBIw.png" /></figure><p>From the application instance terminal I connected to the RDS instance with the following command:</p><p><em>mysql -h &lt;RDS_ENDPOINT&gt; -P 3306 -u admin -p</em></p><p>Once connected I created the database and imported the sql dumb file with the following commands:</p><p><em>create database wikidb;</em></p><p><em>use wikidb;</em></p><p><em>source dump-en.sql;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*4zudKey4M-49cSPdR8YfCg.png" /></figure><p>Finally I created a new user so that the application could connect to the database.</p><p><em>CREATE USER wiki@’%’ IDENTIFIED BY ‘wiki123456’;</em></p><p><em>GRANT ALL PRIVILEGES ON wikidb.* TO wiki@’%’;</em></p><p><em>FLUSH PRIVILEGES;</em></p><p><em>exit;</em></p><p>The database is all set!</p><p>I then had to change the application configuration so that it could connect to the RDS instance. I unzipped the zip folder and moved into it with the commands:</p><p><em>unzip wikiapp-en.zip</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*4GolkPWf9AYGxcbuOmvKkA.png" /></figure><p><em>cd wikiapp</em></p><p>I updated the wiki.py file configuration for the MYSQL_HOST from the on-premises server name “dbserver01” to the RDS endpoint.</p><p>I brought up the application by running the command:</p><ul><li>python3 wiki.py</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*20ykm_kDhE00Vrp7heerwg.png" /></figure><p>And used the public IP address of the application EC2 instance in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*aGlIBFwr1qRebPPiazdPcg.png" /></figure><p>Clicked on Articles to make sure the data was there. Great!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*mM7y5MhyPTlzR_2i" /><figcaption>(English language)</figcaption></figure><p>To verify an article could be added I logged in and clicked on “Add article” and entered the following</p><p>Faca na caveira — Andressa Parisi</p><p>Bootcamp MultiCloud é na The Cloud Bootcamp!</p><p>then clicked “Send”. The <em>Validation (Dry-run)</em> was successful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*cKUaAnYWBEaisIn1Ndu0WQ.png" /></figure><p><strong>Cutover</strong></p><p>The next step would be the <em>Final Migration (Cut-Over)</em> from the on-premises to AWS where we would take another database dump and replace all the data in RDS then decommission the on-premises servers.</p><p>I hope you enjoyed reading this story</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*K1IF34rVMDDrZ-Kr" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3872688ef623" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>