SOLIX / deployment labSTAGING · STATIC TEST

AWS DEPLOYMENT SETUP

A small page.
A real deployment.

An isolated HTML test for the build and deployment process. This page runs on the existing staging server over HTTPS. No company application code or database operations are part of this release.

Explore the setup ↓
ENVIRONMENTstaging.ateliersolix.com
RELEASELoading build metadata…
BUILT AT · UTC—

01 / DELIVERY FLOW

From local files to a verified release.

01

Local test bundle

An explicit file allowlist packages only the test page and deployment hooks.

02

S3 → CodePipeline

A versioned ZIP starts a separate Solix pipeline. No GitHub push is needed.

03

CodeBuild

Checks required assets and generates build metadata before packaging. This stage requires an available account build quota.

04

CodeDeploy → EC2

Installs the static site, validates Nginx and verifies the exact release over HTTPS.

02 / AWS SERVICES

What exists in this environment.

The lab reuses the existing server and network. It adds its own pipeline resources; it does not create another EC2 instance or database.

ScopeServicePurpose
Solix labCloudFormation / CDKOne separate stack for repeatable test infrastructure.
Solix labS3 · 2 bucketsVersioned test source and build artifacts, private with encryption and HTTPS-only access.
Solix labCodePipeline V2Source → Build → DeployStaging, explicitly started for each test release.
Solix labCodeBuildStatic artifact checks, release metadata and packaging.
Solix labCodeDeployOne application and deployment group targeting the selected staging server.
Solix labIAM / CloudWatch LogsPipeline service roles, artifact read permission and one build log group.
Existing stagingVPC / networkingVPC, 6 subnets, Internet Gateway, one NAT Gateway, routes and security groups.
Existing stagingEC2 / EBS / Elastic IPUbuntu server, encrypted 30 GB disk and fixed public IP. Nginx serves this page.
Existing stagingRDS PostgreSQLPrivate encrypted database with backups. This static lab does not connect to it.
Existing stagingS3 / Secrets ManagerApplication storage, original artifacts, audit logs and application configuration; not packaged in this release.
Existing stagingCloudWatch / SNS4 infrastructure alarms: EC2 CPU, EC2 status, RDS CPU and RDS storage. Email subscription is not configured.
Existing stagingCloudTrail / EventBridge / LambdaAudit trail, original deployment failure rules and application secret-change restart automation.
Existing stagingSystems ManagerServer administration without an open SSH port.
Existing stagingOriginal CI/CD / GitHub connectionPreserved separately. Its browser authorization is not required by this S3 test pipeline.

DNS is managed at Namecheap. HTTPS uses a Let’s Encrypt certificate on Nginx, not an AWS load balancer or ACM certificate. Existing NAT, EC2, RDS and other resources continue to incur charges.

03 / HANDLED EDGE CASES

Checks around each deployment.

Secrets stay out

The uploader uses a file allowlist. Environment files, Git history, credentials, company source and CDK output are excluded.

Missing or invalid assets

Build validation stops the pipeline when the HTML marker or required deployment files are missing.

Wrong server or account

The deployment command verifies account identity and the selected instance. A dedicated tag limits CodeDeploy targeting.

Invalid Nginx configuration

The hook validates before reload. On failure it restores the previous config; a first-install backup is also retained.

Missing HTTPS certificate

Deployment fails clearly when the existing certificate or private key is absent. HTTPS trust remains enabled in health checks.

Failed release

CodeDeploy rollback is enabled. The health check compares served build metadata with the current artifact. Rollback needs a previous successful revision.

04 / CURRENT LIMITS

A deployment test, with clear boundaries.

05 / FUTURE MODIFICATIONS

Change one layer at a time.

  1. Page changes: edit site/, validate locally, then run the publish command. Each upload creates a new version and build record.
  2. Infrastructure changes: edit cdk/, review cdk diff, then deploy the Solix stack. Keep resource IDs stable to avoid replacements.
  3. Application migration: replace static packaging and hooks with application-specific installation, secrets, migration and health checks. Keep testing isolated until approved.
  4. GitHub automation: after explicit approval, publish the clean test project and configure a GitHub source connection. No commits or pushes are performed by the lab scripts.
  5. Production readiness: add separate targets, approval, load balancing, log shipping and tested backup/restore and rollback procedures before using real customer data.