MANUALLY - bucket → permissions → policy me edit (policy generator pe jake krlo and arn change krdo and last m /*) and ab ye host ho jayega
Host a static website (HTML, CSS, JS) on S3 bucket - no server needed!
Website URL format:
http://{bucket-name}.s3-website.{region}.amazonaws.com
| Resource | Purpose |
|---|---|
aws_s3_bucket |
Create the bucket |
aws_s3_bucket_public_access_block |
Allow public access |
aws_s3_bucket_policy |
Allow everyone to read files |
aws_s3_bucket_website_configuration |
Enable website hosting |
aws_s3_object |
Upload files to bucket |
output |
Get website URL |
📄 Reference:
Kuch yaad na rahe so chill yaha se refer karo sidha but steps pta honi chahiye kese work krta h manually and terraform se.