This repository provides Terraform scripts to provision an EC2 instance running Windows Server 2022 with IIS. The solution includes configuration for IIS, integration with AWS S3 for log storage, and automation for uploading IIS logs to S3 every day.
- Terraform installed
- AWS CLI installed and configured with appropriate IAM credentials
- A valid AWS account
- Generated key for windows machines
-
Clone the repository:
git clone https://github.com/barakvalzer/IIS.git cd IIS -
Modify terraform/main.tf and setup_iis.ps1
-
Run Terraform
cd terraform terraform plan/terraform apply -
copy setup_iis.ps1 to created windows instance
-
run powershell script to configure IIS + HTML + Logs to S3