https://github.com/ahmetnasri/project-aws

https://github.com/ahmetnasri/project-aws

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: Ahmetnasri
  • Language: HCL
  • Default Branch: main
  • Size: 1.95 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 11 months ago · Last pushed 11 months ago
Metadata Files
Readme

README.md

🛠️ Terraform AWS EC2 Deployment Example

This project demonstrates how to use Terraform to provision an AWS EC2 instance with an autogenerated SSH key pair. It's designed as an educational example for students learning infrastructure as code (IaC).


📦 What This Project Does

  • Creates an EC2 key pair using a locally generated RSA private key.
  • Provisions an EC2 instance in the eu-central-1 AWS region.
  • Stores the private key locally for SSH access.
  • Sets up a Security Group allowing SSH (port 22) access from anywhere.
  • Outputs the public IP address of the instance.

📁 Files and Resources

| File | Purpose | |-----------------------------|----------------------------------------------| | provider "aws" | AWS provider configuration | | tls_private_key | Generates an RSA private key | | aws_key_pair | Uploads the public key to AWS | | local_file | Saves the private key to your local system | | aws_instance | Launches the EC2 instance | | aws_security_group | Enables SSH access to the instance | | output | Displays instance's public IP after apply |


🚀 How to Use

⚠️ Pre-requisites: - AWS CLI configured with appropriate IAM credentials - Terraform installed (>= 1.0) - Replace the vpc_id in the security group block with a valid VPC ID from your AWS account - Make sure that ami in the resource "aws_instance" is correct and aligns with the instance type you want to create and its region

  1. Initialize Terraform:

    bash terraform init

  2. Review the execution plan:

    bash terraform plan

  3. Apply the configuration:

    bash terraform apply

Owner

  • Name: Ahmet Nasri
  • Login: Ahmetnasri
  • Kind: user
  • Location: Berlin, Germany

AI and Computer Vision Engineer

GitHub Events

Total
  • Push event: 2
  • Create event: 1
Last Year
  • Push event: 2
  • Create event: 1