Calculadora estática en Google Cloud Storage

Guía paso a paso para alojar un sitio web estático en Google Cloud Storage: crea un bucket, sube archivos, configura hosting y accede al sitio en vivo de forma escalable y económica.

10 sept 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Resumen Este artículo explica cómo alojar un sitio web estático utilizando Google Cloud Storage GCS paso a paso. Aprenderá a crear un bucket en GCS, subir los archivos del sitio, configurar el bucket para hosting estático y comprobar el sitio en vivo. Esta es una solución escalable y económica para contenido estático.

Pre requisitos Tener familiaridad básica con Google Cloud y operaciones por línea de comandos. Se recomienda usar Cloud Shell para simplificar autenticación y acceso al proyecto.

Tarea 0 Activar Cloud Shell Cloud Shell es una máquina virtual con herramientas de desarrollo y un directorio home persistente de 5GB. Haga clic en el icono Activar Cloud Shell en la parte superior de la consola de Google Cloud. Cuando esté conectado ya estará autenticado y el proyecto activo será su PROJECT_ID. Verificar cuenta ejecutar gcloud auth list para ver la cuenta activa. Para cambiar la cuenta activa usar gcloud config set account ACCOUNT. Verificar proyecto usar gcloud config list project.

Tarea 1 Crear un bucket en Google Cloud Storage Establecer el Project ID con gcloud config set project PROJECT_ID. Crear el bucket con control de acceso uniforme usando gcloud storage buckets create gs://PROJECT_ID-website --uniform-bucket-level-access. Sustituya PROJECT_ID por el identificador de su proyecto.

Tarea 2 Subir los archivos del sitio Crear un archivo index.html simple con contenido como <!DOCTYPE html><html><head><meta charset=utf-8><title>Mi Sitio Estático</title></head><body><p>Hola desde Google Cloud Storage</p></body></html>. Subir el archivo al bucket con gcloud storage cp index.html gs://PROJECT_ID-website.

Tarea 3 Configurar el bucket para hosting web Habilitar la configuración web para que index.html sea la página principal con gcloud storage buckets update gs://PROJECT_ID-website --web-main-suffix=index.html. Hacer que los objetos del bucket sean públicos para que cualquiera pueda verlos con gcloud storage buckets add-iam-policy-binding gs://PROJECT_ID-website --member=allUsers --role=roles/storage.objectViewer.

Tarea 4 Acceder a su sitio Obtener la URL pública con echo https://storage.googleapis.com/PROJECT_ID-website/index.html y abra esa dirección en su navegador para ver el sitio en vivo.

Tarea 5 Limpieza Eliminar el bucket y su contenido para evitar cargos no deseados con gcloud storage rm -r gs://PROJECT_ID-website.

Conclusión Ha alojado con éxito un sitio web estático en Google Cloud Storage. Pasos completados Creación de un bucket en GCS Subida de archivos del sitio Configuración para hosting estático Acceso al sitio en vivo Esta arquitectura es ideal para páginas informativas, demos y aplicaciones de front end estáticas por su coste reducido y escalabilidad.

Sobre Q2BSTUDIO Q2BSTUDIO es una empresa de desarrollo de software especializada en aplicaciones a medida y software a medida. Ofrecemos soluciones de inteligencia artificial, ciberseguridad y servicios cloud integrales. Si necesita desarrollar una aplicación o migrar infraestructura puede conocer nuestras opciones de aplicaciones a medida y software a medida y también contamos con servicios cloud para AWS y Azure en servicios cloud aws y azure. Además brindamos servicios de servicios inteligencia de negocio, integración de power bi, agentes IA y soluciones de ia para empresas, así como auditorías y prácticas de ciberseguridad y pentesting para proteger sus activos digitales.

Palabras clave integradas aplicaciones a medida, software a medida, inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes IA, power bi

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat