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
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
Metadata Files
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-1AWS 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 thevpc_idin the security group block with a valid VPC ID from your AWS account - Make sure thatamiin theresource "aws_instance"is correct and aligns with the instance type you want to create and its region
Initialize Terraform:
bash terraform initReview the execution plan:
bash terraform planApply the configuration:
bash terraform apply
Owner
- Name: Ahmet Nasri
- Login: Ahmetnasri
- Kind: user
- Location: Berlin, Germany
- Website: https://www.linkedin.com/in/ahmet-nasri-453aa317a/
- Repositories: 1
- Profile: https://github.com/Ahmetnasri
AI and Computer Vision Engineer
GitHub Events
Total
- Push event: 2
- Create event: 1
Last Year
- Push event: 2
- Create event: 1