---
title: "Discussion on \"Terraform: deploy a website via Nginx in an EC2\" | Hashnode"
description: "Discussion on \"Terraform: deploy a website via Nginx in an EC2\". In your AWS console, create a new key pair. You can use an existing one if you wish, but it’s better to be in the clear. You can find it in the EC2 service, under Network & Security:\n\nIn the top-right, click the Create key pair button.\n\nProvide a nam..."
url: "https://hashnode.com/posts/terraform-deploy-a-website-via-nginx-in-an-ec2/63e2a0abb36472010897d254"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Terraform: deploy a website via Nginx in an EC2](https://karenngugi.hashnode.dev/terraform-deploy-a-website-via-nginx-in-an-ec2?utm_source=hashnode&utm_medium=feed)

In your AWS console, create a new key pair. You can use an existing one if you wish, but it’s better to be in the clear. You can find it in the EC2 service, under Network & Security: In the top-right, click the Create key pair button. Provide a nam...

Feb 7, 2023 · 3 min read · karenngugi.hashnode.dev  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#aws-ec2](https://hashnode.com/tag/aws-ec2)

## Written by

[Karen Ngugi](https://hashnode.com/@KarenNgugi)

@KarenNgugi · Nairobi, Kenya

  
[View profile](https://hashnode.com/@KarenNgugi)

Junior DevOps Engineer

Computer Science graduate who's had a taste of DevOps and wants more. This blog will serve as a journal regarding my journey into this field of delight.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
