Skip to content

infra: deployment scripts and documentation update - #42

Merged
qasimgulzar merged 3 commits into
masterfrom
qasim/deployment
Jun 30, 2026
Merged

infra: deployment scripts and documentation update#42
qasimgulzar merged 3 commits into
masterfrom
qasim/deployment

Conversation

@qasimgulzar

Copy link
Copy Markdown
Contributor

This pull request introduces initial infrastructure-as-code and deployment automation for the Primzel E-Commerce Platform. It adds environment-specific configuration for AWS deployment, a robust Docker build script, and comprehensive documentation for setup and operations. The changes lay the groundwork for multi-environment (dev, stage, production) deployments using Docker, AWS ECS, and CloudFormation.

Key changes:

Deployment Automation & Build Tooling

  • Added build.sh, a Bash script to automate Docker image building and ECR publishing for different environments, with support for custom tags, cache control, and automatic repository creation. It also persists the latest build tag for deployment use.

Infrastructure Configuration (CloudFormation Parameters)

  • Introduced environment-specific infrastructure parameter files for dev, stage, and production (cloudformation/parameters/*/infra.json), defining VPC, subnets, RDS, Redis, and ACM certificate settings. [1] [2] [3]
  • Added corresponding service parameter files for each environment (cloudformation/parameters/*/service.json), specifying ECS resource sizing, scaling, and S3 bucket names. [1] [2] [3]

Documentation & Onboarding

  • Overhauled README.md to provide a detailed guide on local development, deployment workflows, infrastructure structure, environment differences, tenant management, and integration with AWS and Stripe. The documentation now clearly explains the use of the new scripts and parameter files.

Versioning

  • Added a VERSION file as the canonical source of the application version, referenced by build and deployment scripts.
  • .last-build-tag file is now generated to track the latest built image tag for deployment automation.

@qasimgulzar qasimgulzar self-assigned this May 14, 2026
@gitguardian

gitguardian Bot commented May 14, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
32862004 Triggered Generic Password e1ef826 cloudformation/infrastructure.yml View secret
32862004 Triggered Generic Password 0f77fda cloudformation/infrastructure.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@qasimgulzar
qasimgulzar merged commit 5722c53 into master Jun 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant