Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbangurajr/terraform-aws-apache-example
https://app.exampro.co/student/material/terraform/3327
https://github.com/jbangurajr/terraform-aws-apache-example
Last synced: about 2 months ago
JSON representation
https://app.exampro.co/student/material/terraform/3327
- Host: GitHub
- URL: https://github.com/jbangurajr/terraform-aws-apache-example
- Owner: jbangurajr
- Created: 2023-08-29T06:37:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-02T03:39:23.000Z (over 1 year ago)
- Last Synced: 2023-09-03T04:54:02.553Z (over 1 year ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Terraform Module to providion an EC2 Instance that is running Apache
Not intended for production use. Just showcasing how to create a custom module on Terraform Registry.
```hcl
terraform {}
provider "aws" {
profile = "default"
region = "us-east-1"
}module "apache" {
source = ".//terraform-aws-apache-example"
vpc_id = "vpc-0000000000-example"
my_ip_with_cidr = "YOUR_OWN_IP_ADDRESS/32"
public_key = "ssh-rsa YOUR PUBLIC KEY"
instance_type = "t2.micro"
server_name = "Apache Example Server"
}output "public_ip" {
value = module.apache.public_ip
}
```git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:jbangurajr/terraform-aws-apache-example.git
git push -f origin main