Alien Story

Setting Up and Creating AWS All at Once (Terraform)

Created: 2024-05-08

Created: 2024-05-08 04:13

Alien App AWS Setup Records


In the previous post, I briefly mentioned the region and AWS design of the Alien app.


Setting Up and Creating AWS All at Once (Terraform)


"Actually, I know you haven't seen it lol"


This time, I'm going to write down the records about using Terraform to quickly set it up.



What is Terraform?

Simply put, it's a tool that automates cloud infrastructure.

You can think of it like a script that automates the configuration and creation of cloud services like AWS and GCP.


Let's briefly mention the advantages:


1. Reduced risk of errors.

Since you view the configuration script instead of manually setting things one by one, errors are reduced.


2. Reusable

As the name suggests, if you need to apply the same settings again later, you can simply reuse the script.


3. Fast configuration speed

You can apply all the settings by simply running it, making it faster than using AWS CLI directly, and a world of difference compared to using web pages!


Personally, I think these three are the most significant.



Setting Up and Creating AWS All at Once (Terraform)

Let's Get Started


First, let's download AWS CLI.


Well, you can also just download it from the website. It's up to you.



Next, you need to verify it.




The next step is to configure it.

You just need to set the Access Key and Secret Access Key of the IAM user issued from your AWS account, and the region to be used as the default.


In the IAM dashboard,

1. Add a user,

2. And then create security credentials within that user.




Next, you need to download Terraform, but since there are many versions, you can install it using tfenv after installing it.



Comments0