-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvprofile02.html
More file actions
267 lines (213 loc) · 10.6 KB
/
vprofile02.html
File metadata and controls
267 lines (213 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="VProfile_base">
<meta name="author" content="Kauã Pozzi">
<title>Kauã Pozzi | VProfile_Re-estructure</title>
<!-- font icons -->
<link rel="stylesheet" href="assets/vendors/themify-icons/css/themify-icons.css">
<!-- Bootstrap + Steller main styles -->
<link rel="stylesheet" href="assets/css/steller.css">
<!-- Custom CSS for subtitle -->
<style>
.subtitle {
margin-top: 100px; /* Adjust the value to push the subtitle down */
}
</style>
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="40" id="home">
<!-- Page navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" data-spy="affix" data-offset-top="0">
<div class="container">
<a class="navbar-brand" href="#"><img src="assets/imgs/pozziops-high-resolution-logo-transparent.png" alt=""></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
<!-- End of page navigation -->
<!-- Page Header -->
<header class="portfolio" id="home">
<div class="container text-center">
<h6 class="subtitle">Projects</h6>
<h6 class="section-title mb-4"></h6>
<p class="mb-5 pb-4"><title></title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
text-align: left;
}
h1, h2, h3, h4, h5, h6, li, ul, p {
text-align: left;
}
ul {
list-style-type: none;
padding-left: 0;
}
ul li {
margin-bottom: 0.5em;
}
</style>
</head>
<body>
<h1>[VProfile - Cloud] Improvement #2 - Re-architect Services on AWS for better performance.</h1>
<h2>1. Project Overview:</h2>
<p>Vprofile project now is running on AWS but its not configured in the best way possible. Before, the application was running basically on Ec2 instances with the services running in them. Now, we are going to run the application on AWS services like RDS, using Beanstalk to IAAC and make it easier to automate the process.<br>
The objective is to minimize operational overhead, operate more efficiently and with better performance using AWS native services. Finally, avoiding upfront payment is still also a positive aspect about using the Cloud.<br>
Using PAAS and SAAS
</p>
<h2>2. Services Used:</h2>
<ul>
<li> - Elastic Beanstalk (Deploy VM Tomcat9)</li>
<li> - Elastic Cache (Memcached)</li>
<li> - ActiveMQ (RabbitMQ)</li>
<li> - Cloudfront (Content Delivery Network)</li>
<li> - S3</li>
<li> - Application Load Balancer (ALB)</li>
<li> - Auto-Scaling Group (ASG)</li>
<li> - RDS</li>
<li> - Route 53 (for DNS)</li>
</ul>
<h2>4. Project Structure:</h2>
<p>
<img src="assets/imgs/VProfile_Re-estructure.png" alt="VProfile base" width="800" height="400 ">
</p>
<ul>
<li>Create a Key pair.</li>
<li>Create Security Group for Backend Services.</li>
</ul>
<p>
<img src="assets/imgs/rs001.png" alt="VProfile base" width="800" height="200">
</p>
<p>Defining Inboud Rules (SSH and It’s own Security Group, so the services are allowed between each other)</p>
<p>
<img src="assets/imgs/rs002.png" alt="VProfile base" width="800" height="200">
</p>
<p>RDS <br> Subnet Group</p>
<p>
<img src="assets/imgs/rs003.png" alt="VProfile base" width="800" height="350 ">
</p>
<p>
<img src="assets/imgs/rs004.png" alt="VProfile base" width="500" height="400">
</p>
<p>Creating Parameter group</p>
<p>
<img src="assets/imgs/rs005.png" alt="VProfile base" width="800" height="200">
</p>
<p>"Creating RDS Instance (MySQL 8.0)"</p>
<p>
<img src="assets/imgs/rs006.png" alt="VProfile base" width="800" height="500 ">
</p>
<p>"Creating ElastiCache (Memcached)"</p>
<p>
<img src="assets/imgs/rs007.png" alt="VProfile base" width="800" height="200 ">
</p>
<p>"Creating Amazon MQ (Before: RabbitMQ)"</p>
<p>
<img src="assets/imgs/rs008.png" alt="VProfile base" width="800" height="400 ">
</p>
<p>Allow Inbound rules to backend, from Ec2 instances. For this, i took the instance id from Ec2 and allowed on port 3306.</p>
<p>
<img src="assets/imgs/rs009.png" alt="VProfile base" width="800" height="300 ">
</p>
<p>Fetch the database data, into MySQL from an Ec2 Instance</p>
<p>
<img src="assets/imgs/rs010.png" alt="VProfile base" width="800" height="500 ">
</p>
<p>Launching Elastic Beanstalk</p>
<p>
<img src="assets/imgs/rs011.png" alt="VProfile base" width="800" height="450 ">
</p>
<p>Enabled ACL, updated the security groups for the backend. so the instance from Beanstalk and the backend can be connected.<br>
Then changed the app url endpoints, and filling username and password so the services can connect to the app.</p>
<p>
<img src="assets/imgs/rs012.png" alt="VProfile base" width="800" height="500 ">
</p>
<p>Building Maven Artifact</p>
<p>
<img src="assets/imgs/rs013.png" alt="VProfile base" width="800" height="400 ">
</p>
<p>Upload and Deploy the artifact in Beanstalk</p>
<p>
<img src="assets/imgs/rs014.png" alt="VProfile base" width="800" height="450 ">
</p>
<p>Configured DNS with CNAME and SSL certificate</p>
<p>
<img src="assets/imgs/rs015.png" alt="VProfile base" width="800" height="250 ">
</p>
<h2>5. Testing:</h2>
<ul>
<li>Now the website is fully functioning, here are the tests!</li>
<li>This is the Main page. Once it’s showing everything, like images, it means RDS (database) is working properly.</li>
<p>This is the Main page. Once it’s showing everything, like images, it means RDS (database) is working properly
<p>
<img src="assets/imgs/rs016.png" alt="VProfile base" width="800" height="400">
</p>
<p>Amazon MQ is working fine as shown below</p>
<p>
<img src="assets/imgs/rs017.png" alt="VProfile base" width="800" height="300">
</p>
<p>Setup Cloudfront</p>
<p>
<img src="assets/imgs/rs018.png" alt="VProfile base" width="800" height="200 ">
</p>
<p>This project was a great way to understand how some services in AWS are connected to each other, how<br>
to configure and deploy Beanstalk to make Cloudfront work, as this is a very used service in AWS. </p>
<p>Any feedback will be welcome.</p>
<p>Kauã Pozzi</p>
</ul>
</p>
</div>
</header>
<!-- End of Page Header -->
<!-- Hire me section -->
<section class="bg-gray p-0 section">
<div class="container">
<div class="card bg-primary">
<div class="card-body text-light">
<div class="row align-items-center">
<div class="col-sm-9 text-center text-sm-left">
<h5 class="mt-3">Hire Me For Your Project</h5>
<p class="mb-3">I would love to know how i can help.</p>
</div>
<div class="col-sm-3 text-center text-sm-right">
<a href="https://wa.me/5541999084646" target="_blank" class="btn btn-light rounded">Hire Me!</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End od Hire me section. -->
<!-- Page Footer -->
<footer class="page-footer">
<div class="container">
<div class="row align-items-center">
<div class="col-sm-6">
<p>Copyright <script>document.write(new Date().getFullYear())</script> © <a href="http://www.devcrud.com" target="_blank">DevCRUD</a></p>
</div>
<div class="col-sm-6">
<div class="socials">
<a class="social-item" href="https://www.facebook.com/pozzi81"><i class="ti-facebook"></i></a>
<a class="social-item" href="https://www.linkedin.com/in/kauapozzi/"><i class="ti-linkedin"></i></a>
<a class="social-item" href="https://github.com/KaPozzi"><i class="ti-github"></i></a>
<a class="social-item" href="https://twitter.com/PozziKaua"><i class="ti-twitter"></i></a>
</div>
</div>
</div>
</div>
</footer>
<!-- End of page footer -->
<!-- core -->
<script src="assets/vendors/jquery/jquery-3.4.1.js"></script>
<script src="assets/vendors/bootstrap/bootstrap.bundle.js"></script>
<!-- bootstrap 3 affix -->
<script src="assets/vendors/bootstrap/bootstrap.affix.js"></script>
<!-- steller js -->
<script src="assets/js/steller.js"></script>
</body>
</html>