|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>Random AWS Service</title> |
| 6 | + <style> |
| 7 | + body { |
| 8 | + font-family: sans-serif; |
| 9 | + display: flex; |
| 10 | + flex-direction: column; |
| 11 | + justify-content: center; |
| 12 | + align-items: center; |
| 13 | + height: 100vh; |
| 14 | + background: #f5f5f5; |
| 15 | + text-align: center; |
| 16 | + } |
| 17 | + |
| 18 | + #service { |
| 19 | + font-size: 2rem; |
| 20 | + padding: 1.5rem 2rem; |
| 21 | + border: 2px solid #ccc; |
| 22 | + border-radius: 12px; |
| 23 | + background: white; |
| 24 | + box-shadow: 0 4px 12px rgba(0,0,0,0.1); |
| 25 | + cursor: pointer; |
| 26 | + } |
| 27 | + |
| 28 | + #description { |
| 29 | + margin-top: 1rem; |
| 30 | + font-size: 1.1rem; |
| 31 | + max-width: 600px; |
| 32 | + display: none; |
| 33 | + padding: 1rem; |
| 34 | + background: #fff; |
| 35 | + border-radius: 8px; |
| 36 | + border: 1px solid #ccc; |
| 37 | + box-shadow: 0 2px 8px rgba(0,0,0,0.05); |
| 38 | + } |
| 39 | + </style> |
| 40 | +</head> |
| 41 | +<body> |
| 42 | + <div id="service" onclick="toggleDescription()"></div> |
| 43 | + <div id="description"></div> |
| 44 | + |
| 45 | + <script> |
| 46 | + const services = { |
| 47 | + "EC2": "Resizable virtual machines in the cloud.", |
| 48 | + "Lambda": "Run code without provisioning or managing servers.", |
| 49 | + "S3": "Scalable object storage for any type of data.", |
| 50 | + "RDS": "Managed relational databases like MySQL and PostgreSQL.", |
| 51 | + "DynamoDB": "Fully managed NoSQL database with millisecond performance.", |
| 52 | + "VPC": "Virtual network for your AWS resources.", |
| 53 | + "IAM": "Manage access to AWS services and resources securely.", |
| 54 | + "API Gateway": "Create and manage REST or WebSocket APIs.", |
| 55 | + "CloudFront": "Content delivery network for low-latency content delivery.", |
| 56 | + "SQS": "Decoupled message queuing service.", |
| 57 | + "SNS": "Pub/sub messaging for distributed systems.", |
| 58 | + "CloudWatch": "Monitor AWS resources and custom metrics.", |
| 59 | + "CloudFormation": "Infrastructure as code for defining and deploying resources.", |
| 60 | + "Redshift": "Fully managed data warehouse for big data analytics.", |
| 61 | + "ECS": "Run and scale containerized applications using Docker.", |
| 62 | + "Fargate": "Serverless compute engine for containers.", |
| 63 | + "Route 53": "Scalable DNS and domain name management.", |
| 64 | + "ELB": "Distribute incoming traffic across multiple targets.", |
| 65 | + "Glue": "Serverless ETL service for data integration.", |
| 66 | + "Athena": "Query S3 data using SQL without setting up servers.", |
| 67 | + "App Sync": "Build GraphQL APIs with real-time data access and syncing." |
| 68 | + }; |
| 69 | + |
| 70 | + const keys = Object.keys(services); |
| 71 | + const randomKey = keys[Math.floor(Math.random() * keys.length)]; |
| 72 | + |
| 73 | + document.getElementById("service").textContent = randomKey; |
| 74 | + |
| 75 | + function toggleDescription() { |
| 76 | + const desc = document.getElementById("description"); |
| 77 | + desc.textContent = services[randomKey]; |
| 78 | + desc.style.display = desc.style.display === "none" ? "block" : "none"; |
| 79 | + } |
| 80 | + </script> |
| 81 | +</body> |
| 82 | +</html> |
0 commit comments