Overview

Q&A Knowledge Base

What is the Revique Portal and how is it deployed?CI/CD Pipeline

The Revique Portal is the project's frontend web app. It runs on a fully automated CI/CD pipeline: developers push code to Bitbucket, which mirrors it to AWS CodeCommit, and AWS CodePipeline then builds it with CodeBuild and deploys the output to an S3 bucket served over HTTPS via CloudFront.

How does a commit travel from my laptop to the live site?CI/CD Pipeline

A developer pushes to Bitbucket → Bitbucket mirrors the code to AWS CodeCommit → EventBridge detects the CodeCommit update → CodePipeline starts → CodeBuild builds the app → the build is deployed to an S3 bucket → CloudFront serves it as the live HTTPS website.

What triggers the pipeline?CI/CD Pipeline

AWS EventBridge monitors the CodeCommit repository for branch updates and automatically starts CodePipeline when a push arrives — no manual intervention is needed to kick it off.

What does EventBridge do in this setup?AWS Concepts

EventBridge watches CodeCommit and fires a rule whenever the tracked branch is updated, automatically triggering the corresponding CodePipeline. The rules are named Portal-UAT-CodeCommit-Trigger and Portal-Prod-CodeCommit-Trigger.

What role does Bitbucket play?Bitbucket

Bitbucket is where developers actually push their code (the source of truth). A Bitbucket pipeline then mirrors each branch to the matching AWS CodeCommit repository over SSH, which is what starts the AWS side of the deployment.

Why is there a CodeCommit repo if the code lives in Bitbucket?CI/CD Pipeline

CodeCommit is the AWS-side source that CodePipeline reads from. Bitbucket holds the working code, but the AWS pipeline (CodePipeline/CodeBuild) triggers off CodeCommit, so Bitbucket mirrors each push into CodeCommit to bridge the two.

What is CodePipeline's job here?AWS Concepts

CodePipeline orchestrates the deployment stages. For UAT it runs Source → Build → Deploy; for Production it runs Source → Build → Approve → Deploy. It ties together CodeCommit, CodeBuild, the manual-approval step, and the S3 deploy.

What does CodeBuild do?AWS Concepts

CodeBuild is the build service that runs buildspec.yml — it installs dependencies and builds the React app (npm install then npm run build$ENV), producing the dist/ folder that gets deployed.

Where is the built site deployed?CI/CD Pipeline

The build output (the dist/ folder) is deployed to a deploy S3 bucket (por****) that is configured for static website hosting.

What serves the website to end users?AWS Concepts

Amazon CloudFront (a CDN) sits in front of the S3 deploy bucket and serves the site to users over HTTPS.

Is the site served over HTTPS?Domains & SSL

Yes. CloudFront serves the site over HTTPS using an ACM SSL certificate, and the live URLs are https://por****.

Which AWS region are the resources in?AWS Concepts

Almost everything runs in us-east-2 (Ohio) — both the UAT (hptuat) and Production (hptprod) accounts. The only exception is the ACM SSL certificates, which must live in us-east-1.

Why is the ACM certificate in us-east-1 and not us-east-2?Domains & SSL

CloudFront can only use ACM certificates that are in the us-east-1 region, so the SSL certs are created there even though every other resource is in us-east-2.

What are the UAT pipeline stages?CI/CD Pipeline

UAT has three stages: Source (CodeCommit) → Build (CodeBuild) → Deploy (Amazon S3). There is no approval stage, so every push to uat_v2 flows straight through to deployment.

What are the Production pipeline stages?CI/CD Pipeline

Production has four stages: Source (CodeCommit) → Build (CodeBuild) → Manual Approval → Deploy (Amazon S3). The pipeline pauses at approval until someone approves it in the console or via CLI.

What is the artifact S3 bucket used for?CI/CD Pipeline

The artifact S3 bucket stores the intermediate pipeline artifacts that CodePipeline passes between stages (e.g. the source and build outputs). It is separate from the deploy bucket that actually hosts the site.

Do I need to do anything manually to trigger a UAT deployment?CI/CD Pipeline

No. For UAT, pushing to the uat_v2 branch is enough — Bitbucket mirrors it, EventBridge triggers the pipeline, and Source → Build → Deploy runs automatically with no manual steps.

What is the final result of the pipeline?CI/CD Pipeline

The final result is the live website: the built app is deployed to S3 and served via CloudFront over HTTPS at https://por****.

What kind of app does CodeBuild build?BuildSpec

It builds the React frontend app. CodeBuild runs npm install and then npm run build$ENV (builduat or buildprod), producing a dist/ folder.

What is the order of AWS services a deploy passes through?CI/CD Pipeline

Bitbucket → AWS CodeCommit → EventBridge → CodePipeline → CodeBuild → S3 → CloudFront → live website.

What is the source of truth for the code?Bitbucket

Bitbucket is where developers push and where the working code lives; CodeCommit is a downstream mirror that the AWS pipeline reads from.

Do developers push directly to CodeCommit?Bitbucket

No. Developers push to Bitbucket, and the Bitbucket pipeline is what pushes (mirrors) the code into CodeCommit automatically.

How does code get from Bitbucket into CodeCommit?Bitbucket

The Bitbucket pipeline configures SSH using SSH_KEY_ID and BITBUCKET_SSH_KEY_FILE, adds a codecommit remote, and runs git push codecommit for the branch — mirroring the push into the matching CodeCommit repo.

What is the EventBridge rule name for UAT?CI/CD Pipeline

The UAT EventBridge rule is named Portal-UAT-CodeCommit-Trigger; it auto-triggers the UAT pipeline on push.

What is the EventBridge rule name for Production?CI/CD Pipeline

The Production EventBridge rule is named Portal-Prod-CodeCommit-Trigger; it auto-triggers the Production pipeline on push.

What watches CodeCommit for new commits?AWS Concepts

EventBridge watches CodeCommit. When the tracked branch updates, its rule starts the relevant CodePipeline automatically.

Does UAT require manual approval?Deployment

No. UAT has no approval stage — every push to uat_v2 goes through Source → Build → Deploy automatically without any manual intervention.

Does Production require manual approval?Deployment

Yes. Production has a Manual Approval stage between Build and Deploy — someone must approve in the AWS Console (or via CLI) before the deploy runs.

What exactly does CodePipeline orchestrate?CI/CD Pipeline

For UAT it orchestrates Source → Build → Deploy; for Production it orchestrates Source → Build → Approve → Deploy, coordinating CodeCommit, CodeBuild, the approval gate, and the S3 deployment.

What is stored in the artifact bucket versus the deploy bucket?CI/CD Pipeline

The artifact bucket holds CodePipeline's working artifacts passed between stages; the deploy bucket (por****) holds the final static site that CloudFront serves.

What is the deploy S3 bucket for?CI/CD Pipeline

The deploy S3 bucket (por****) is configured for static website hosting and holds the built site (the dist/ output) that users reach via CloudFront.

Which cloud provider hosts the Revique Portal?AWS Concepts

AWS (Amazon Web Services). The primary region is us-east-2, with ACM certificates in us-east-1.

What environments does the Revique Portal have?Environments

Two: UAT (the hptuat account) and Production (the hptprod account). Both are in us-east-2.

What is the CodeBuild project used for?CI/CD Pipeline

The CodeBuild project (rev****) builds the React app by running buildspec.yml — installing dependencies and running the environment-specific build script.

What runs buildspec.yml?BuildSpec

AWS CodeBuild runs buildspec.yml during the Build stage of the pipeline.

What is the difference between the artifact bucket and the deploy bucket?CI/CD Pipeline

The artifact bucket is internal pipeline storage for stage-to-stage artifacts. The deploy bucket is the public-facing static-hosting bucket whose contents CloudFront serves as the live site.

What CDN does the portal use?AWS Concepts

Amazon CloudFront. It fronts the S3 deploy bucket and delivers the site globally over HTTPS.

How is the pipeline automated end to end?CI/CD Pipeline

Bitbucket auto-mirrors pushes to CodeCommit, EventBridge auto-triggers CodePipeline, CodeBuild auto-builds, and CodePipeline auto-deploys to S3/CloudFront. Only Production adds a manual approval gate before deploy.

What is the UAT CodeCommit repository?Environments

Portal-UAT-Revique, in the hptuat account, tracking the uat_v2 branch.

What is the Production CodeCommit repository?Environments

Portal-Prod-Revique, in the hptprod account, tracking the master_v2 branch.

What IAM role does the UAT pipeline use?Security

AWSCodePipelineServiceRole-us-east-2-Portal-UAT-Pipeline is the IAM role for the UAT pipeline.

What IAM role does the UAT CodeBuild project use?Security

codebuild-Portal-UAT-Build-service-role is the IAM role for the UAT build.

What IAM role does the Production pipeline use?Security

AWSCodePipelineServiceRole-us-east-2-Portal-Prod-Pipeline is the IAM role for the Production pipeline.

What IAM role does the Production CodeBuild project use?Security

codebuild-Portal-Prod-Build-service-role is the IAM role for the Production build.

What is the UAT artifact S3 bucket name?Environments

The UAT artifact bucket is cod****; it stores pipeline artifacts.

What is the UAT API Gateway ID and stage?Environments

The UAT API Gateway ID is e5v**** and it uses stage v1.

How is the API backend architected?AWS Concepts

The API backend is fronted by API Gateway routing to Lambda functions (API Gateway → Lambda). The frontend calls it via the VITE_BASE_URL / api**** endpoint.

What version and date is this documentation?General

It is the Revique Portal Infrastructure Documentation v1.0, dated April 2026, and marked Confidential.

Is the CodeCommit push automatic on every branch push?Bitbucket

Yes — for the configured branches (uat_v2, master_v2, and legacy master), each Bitbucket push runs a pipeline step that mirrors the branch into CodeCommit automatically.

Which AWS services are involved in the whole flow?CI/CD Pipeline

Bitbucket (source), CodeCommit (AWS mirror), EventBridge (trigger), CodePipeline (orchestration), CodeBuild (build), S3 (deploy/artifacts), CloudFront (CDN), ACM (SSL), plus IAM roles and API Gateway/Lambda for the backend.

What is the UAT AWS profile name?Environments

The UAT profile is hptuat, in region us-east-2 (Ohio).

What is the Production AWS profile name?Environments

The Production profile is hptprod, in region us-east-2 (Ohio).

Which branch deploys to UAT?Environments

The uat_v2 branch. Pushing to uat_v2 triggers the UAT pipeline.

Which branch deploys to Production?Environments

The master_v2 branch. Pushing to master_v2 triggers the Production pipeline.

What is the legacy master branch used for?Bitbucket

In bitbucket-pipelines.yml, the legacy master branch (HPTUI-2.0, hptdev account) mirrors to the HPTUI-2.0 CodeCommit repo. It's separate from the uat_v2 → UAT and master_v2 → PROD flows.

How do branches map to environments?Environments

uat_v2 → Portal-UAT-Revique (hptuat / UAT), and master_v2 → Portal-Prod-Revique (hptprod / Production). The legacy master maps to the HPTUI-2.0 repo.

What repository variables does the Bitbucket pipeline require?Bitbucket

Two: SSH_KEY_ID (the IAM SSH key ID for CodeCommit auth, not secured) and BITBUCKET_SSH_KEY_FILE (the SSH private key file path, auto-provided by Bitbucket and secured).

What is SSH_KEY_ID?Bitbucket

SSH_KEY_ID is the IAM SSH Key ID used to authenticate the push from Bitbucket to CodeCommit. It's set as a (non-secured) Bitbucket repository variable.

Is SSH_KEY_ID marked as secured in Bitbucket?Bitbucket

No — SSH_KEY_ID is not secured (it's just an ID). The private key file (BITBUCKET_SSH_KEY_FILE) is the secured one.

What is BITBUCKET_SSH_KEY_FILE?Bitbucket

It's the SSH private key file path, auto-provided by Bitbucket and marked as secured. It's referenced as the IdentityFile in the SSH config the pipeline writes.

What Docker image does the Bitbucket pipeline use?Bitbucket

It uses image atlassian/default-image:2.

Why does the pipeline run git fetch --unshallow?Bitbucket

Bitbucket clones are shallow by default; git fetch --unshallow pulls the full history so the complete branch can be pushed (mirrored) to CodeCommit.

How does Bitbucket authenticate to CodeCommit?Bitbucket

The pipeline writes an SSH config entry for git-codecommit.*.amazonaws.com using SSH_KEY_ID as the User and BITBUCKET_SSH_KEY_FILE as the IdentityFile, then pushes over SSH.

What is the CodeCommit remote URL format?Bitbucket

ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/<RepoName> — e.g. .../Portal-UAT-Revique for UAT and .../Portal-Prod-Revique for Production.

What buildspec version is used?BuildSpec

version: 0.2.

What commands run in the buildspec pre_build phase?BuildSpec

node -v, npm -v, rm -Rf node_modules/, and npm install — it prints tool versions, wipes node_modules for a clean install, then installs dependencies.

What command runs in the buildspec build phase?BuildSpec

It echoes "Building for $ENV" and then runs npm run build$ENV — so the $ENV variable selects builduat or buildprod.

What does the buildspec artifacts section specify?BuildSpec

files: '**/*', discard-paths: no, and base-directory: dist — meaning everything under the dist/ folder is packaged (with paths preserved) as the deploy artifact.

What gets uploaded to S3 from the build?BuildSpec

Only the dist/ folder. The buildspec sets base-directory: dist, so just the built output is deployed.

What is the UAT build command?BuildSpec

npm run builduat (invoked as npm run build$ENV with $ENV=uat).

What is the Production build command?BuildSpec

npm run buildprod (invoked as npm run build$ENV with $ENV=prod).

What environment variables does the UAT build use?Environment Variables

VITE_AI_BASE_URL, VITE_BASE_URL, VITE_IOT_ENDPOINT, and VITE_REGION (defined in .env.uat).

What is the value of VITE_REGION?Environment Variables

us-east-2 — for both UAT and Production.

What is VITE_BASE_URL?Environment Variables

It's the API base URL the frontend calls (https://api****), pointing at the environment's API backend.

What is VITE_AI_BASE_URL?Environment Variables

It's the base URL for the AI service the app uses (https://sle****), configured per environment in the .env file.

What is VITE_IOT_ENDPOINT?Environment Variables

It's the IoT endpoint the app connects to (a1u****), set per environment via the VITE_ variables.

Are the environment variable values shown in full in the docs?Environment Variables

No — they are masked (e.g. https://api****, https://sle****, a1u****). Only VITE_REGION (us-east-2) is shown in full.

What GoDaddy DNS record points to UAT?Domains & SSL

A CNAME with name portal.uat pointing at the UAT CloudFront distribution (value masked as XXXXXXXXXXX).

What GoDaddy DNS record points to Production?Domains & SSL

A CNAME with name portal pointing at the Production CloudFront distribution (value masked as XXXXXXXXXXX).

Which DNS provider is used for the domains?Domains & SSL

GoDaddy. CNAME records there point the portal hostnames to the CloudFront distributions.

What do the GoDaddy CNAMEs point at?Domains & SSL

They point at the environment's CloudFront distribution domain, so traffic to the portal hostname is served by CloudFront.

In which region must the ACM SSL certificates live?Domains & SSL

us-east-1 — CloudFront requires its ACM certificates in us-east-1, even though the rest of the stack is in us-east-2.

What is the status of the portal SSL certificates?Domains & SSL

Both the UAT and Production ACM certificates (por****) are ISSUED and in us-east-1.

What does an ACM certificate ARN look like here?Domains & SSL

arn:aws:acm:us-east-1:XXXXXXXXXXX:certificate/XXXXXXXXXXX… — the region is us-east-1 and the account ID/cert ID are masked.

Why do CloudFront certificates need to be in us-east-1?Domains & SSL

It's an AWS requirement: CloudFront only reads ACM certificates from us-east-1. So even with us-east-2 resources, the TLS cert must be created/imported in us-east-1.

What is the origin of the CloudFront distributions?Domains & SSL

The origin is the deploy S3 bucket (por****) that holds the static site.

How many CloudFront distributions does the portal use?Domains & SSL

Two — one for UAT and one for Production, each fronting its own S3 deploy bucket.

What's the key difference between the UAT and Production pipelines?Environments

Production adds a Manual Approval stage before Deploy; UAT does not. Otherwise both do Source → Build → Deploy in us-east-2.

Do UAT and Production use the same environment variable names?Environment Variables

Yes — both .env.uat and .env.prod define the same four VITE_ keys (VITE_AI_BASE_URL, VITE_BASE_URL, VITE_IOT_ENDPOINT, VITE_REGION); only the values differ per environment.

What does the $ENV variable control in the build?BuildSpec

It selects which build script runs: npm run build$ENV resolves to builduat or buildprod, so $ENV picks the environment-specific Vite build.

Are both environments in the same AWS region?Environments

Yes — both UAT (hptuat) and Production (hptprod) run in us-east-2 (Ohio). Only the ACM certs sit in us-east-1.

What does the live URL look like?Domains & SSL

The public HTTPS URL is https://por**** for each environment (the exact hostname is masked).

Where do I configure SSH_KEY_ID?Bitbucket

In the Bitbucket repository settings as a repository variable. If the pipeline fails on the push step, that's the first variable to check.

What happens after the pipeline runs git push codecommit?Bitbucket

The branch lands in the matching CodeCommit repo, EventBridge detects the update, and CodePipeline starts — carrying the change into the AWS build-and-deploy flow.

Why does the buildspec run node -v and npm -v?BuildSpec

They print the Node and npm versions during pre_build so the build log records the runtime versions used — useful for debugging build differences.

Why does the buildspec remove node_modules before installing?BuildSpec

rm -Rf node_modules/ ensures a clean dependency install each build, avoiding stale or partial packages carried over between runs.

What does discard-paths: no mean in the buildspec?BuildSpec

It tells CodeBuild to preserve the directory structure of the artifacts rather than flattening everything into one folder — so the dist/ layout is kept intact on deploy.

What does base-directory: dist mean?BuildSpec

It scopes the artifacts to the dist/ folder, so only the built site (not the whole workspace) is packaged and deployed to S3.

Which profile, repo, and branch go together for UAT?Environments

Profile hptuat, repo Portal-UAT-Revique, branch uat_v2 — all in us-east-2.

Which profile, repo, and branch go together for Production?Environments

Profile hptprod, repo Portal-Prod-Revique, branch master_v2 — all in us-east-2.

How do I deploy to UAT?Deployment

Make and test your changes locally (npm run builduat), commit, and push to the uat_v2 branch on Bitbucket. The pipeline auto-triggers; wait ~3–5 minutes for the build, then check https://por****. No manual steps needed.

How do I deploy to Production?Deployment

Ensure the code is tested on UAT first, commit, and push to master_v2 on Bitbucket. The pipeline auto-triggers and builds, then pauses for manual approval — go to AWS Console → CodePipeline, click Review → Approve, wait ~2 minutes, and verify at https://por****.

How do I test a build locally before pushing to UAT?Deployment

Run npm run builduat locally to reproduce the UAT build before committing and pushing to uat_v2.

How long does a UAT build take?Deployment

About 3–5 minutes from push to the build completing and deploying.

How long does a Production deploy take after approval?Deployment

About 2 minutes for the Deploy stage to finish once you approve.

What are the steps to approve a Production deployment in the console?Deployment

1) Go to AWS Console → CodePipeline → rev****. 2) Wait for Build to finish (green check). 3) In the Approve stage click Review. 4) Add an optional comment and click Approve. 5) Deploy starts automatically. 6) Verify at https://por****.

Where do I go to approve a Production deploy?Deployment

AWS Console → CodePipeline → rev**** (the Production pipeline), then the Approve stage.

Which buttons do I click to approve Production?Deployment

In the Approve stage, click Review, then click Approve (a comment is optional).

Can I add a comment when approving a Production deploy?Deployment

Yes — adding a comment in the Review/Approve dialog is optional but supported.

How do I approve a Production deployment from the CLI?Deployment

Use aws codepipeline put-approval-result with the pipeline name rev****, stage-name Approve, action-name ManualApproval, a result JSON like {"summary":"Approved","status":"Approved"}, the approval token, and --profile hptprod.

How do I get the approval token for a Production deploy?Deployment

Run aws codepipeline get-pipeline-state --name rev**** --profile hptprod with a query on stageStates[?stageName==`Approve`].actionStates[0].latestExecution.token to output the token.

How do I check the UAT pipeline status from the CLI?Operations

aws codepipeline get-pipeline-state --name rev**** --profile hptuat.

How do I manually trigger the UAT pipeline?Operations

aws codepipeline start-pipeline-execution --name rev**** --profile hptuat.

How do I check the Production pipeline status from the CLI?Operations

aws codepipeline get-pipeline-state --name rev**** --profile hptprod.

How do I manually trigger the Production pipeline?Operations

aws codepipeline start-pipeline-execution --name rev**** --profile hptprod (it will still pause at the manual approval stage).

What parameters does put-approval-result need?Deployment

--pipeline-name (rev****), --stage-name Approve, --action-name ManualApproval, --result JSON with summary and status, --token (the approval token), and --profile hptprod.

What happens right after I approve a Production deploy?Deployment

The Deploy stage starts automatically and pushes the build to the S3 deploy bucket; after ~2 minutes the change is live at https://por****.

How do I verify a deployment worked?Deployment

Open the live URL https://por**** in a browser and confirm your changes are live. For UAT check after ~3–5 min; for Production check ~2 min after approval.

My Bitbucket pipeline fails — what's the likely cause?Troubleshooting

Usually an SSH key issue. Check the SSH_KEY_ID variable in the Bitbucket repository settings so the push to CodeCommit can authenticate.

CodeBuild fails during the build — what should I check?Troubleshooting

Missing permissions is the common cause. Check the CodeBuild IAM role's permissions (e.g. codebuild-Portal-UAT-Build-service-role / …-Prod-…).

The deploy fails with S3 Access Denied — how do I fix it?Troubleshooting

The CodePipeline role is missing S3 permissions. Add the S3 PutObject permission to the pipeline role so it can write to the deploy bucket.

The pipeline isn't auto-triggering on push — why?Troubleshooting

The EventBridge rule is likely not configured (or its target role is wrong). Check the EventBridge rule (Portal-UAT-CodeCommit-Trigger / Portal-Prod-CodeCommit-Trigger) and its target role.

The build has the wrong API URL — what went wrong?Troubleshooting

The .env file wasn't copied correctly in the buildspec. Verify the cp command in the buildspec.yml pre_build phase so the right environment file is used.

The site still shows old content after deploy — how do I fix it?Troubleshooting

That's CloudFront caching. Create a CloudFront invalidation for /* to purge the cache and serve the new content.

How do I invalidate the CloudFront cache?Operations

Create a CloudFront invalidation with the path /* on the distribution. This clears cached objects so users get the freshly deployed files.

Users report stale content — what's the first thing to try?Troubleshooting

Invalidate the CloudFront cache (path /*). Stale content after a successful deploy is almost always the CDN cache.

Do I need to approve UAT deployments?Deployment

No — UAT deploys run automatically with no approval. Only Production has an approval gate.

What happens if I push to the wrong branch?Troubleshooting

The branch determines the target: uat_v2 deploys to UAT and master_v2 to Production. Pushing to the wrong one deploys to the wrong environment, so double-check your branch before pushing (especially for Production).

What's the checklist for deploying to Production?Deployment

Ensure the code is tested on UAT, commit, push to master_v2, wait for Build to complete, go to AWS Console → CodePipeline, click Review → Approve, wait ~2 min, then check https://por****.

What's the checklist for deploying to UAT?Deployment

Make changes locally, test with npm run builduat, commit, push to uat_v2, let the pipeline auto-trigger, wait ~3–5 min, then check https://por****.

Should I test on UAT before deploying to Production?Deployment

Yes — the Production checklist explicitly says to ensure code is tested on UAT first before pushing to master_v2.

Where in the console do I click Review for approval?Deployment

In the Production pipeline (rev****), on the Approve stage — click Review, then Approve.

Which AWS profile do I use for Production CLI commands?Operations

--profile hptprod for all Production pipeline commands (status, trigger, approval).

Which AWS profile do I use for UAT CLI commands?Operations

--profile hptuat for UAT pipeline commands.

What does start-pipeline-execution do?Operations

It manually starts a new run of the named pipeline without waiting for a code push — useful for re-running a build. Production still stops at manual approval.

Is there a documented rollback procedure?Troubleshooting

The docs don't describe a dedicated rollback mechanism. The practical approach is to re-deploy a known-good commit through the same pipeline (push it to the branch, or re-run the pipeline), then invalidate the CloudFront cache if needed.

The Production build succeeded but nothing deployed — why?Troubleshooting

Production pauses at the Manual Approval stage after Build. Nothing deploys until someone approves in the console or via CLI.

How do I know the Build stage finished?Deployment

The Build stage shows a green checkmark in CodePipeline when it completes; for Production the Approve stage then becomes actionable.

Where does the manual approval sit in the Production flow?CI/CD Pipeline

Between the Build stage and the Deploy stage — Source → Build → Approve → Deploy. The pipeline waits at Approve until action is taken.

What symptom means the EventBridge rule is missing or broken?Troubleshooting

The pipeline doesn't start automatically after a push. Check the EventBridge rule and its target role to restore auto-triggering.

Where do I check the SSH key if pushes to CodeCommit fail?Troubleshooting

In Bitbucket's repository settings — verify the SSH_KEY_ID variable used by the pipeline.

How do I fix an S3 Access Denied on deploy?Troubleshooting

Grant the CodePipeline service role S3 PutObject permission on the deploy bucket — the deploy fails when the role lacks that permission.

How do I fix CodeBuild permission failures?Troubleshooting

Review and correct the CodeBuild IAM role permissions (the codebuild-Portal-*-Build-service-role) so the build has what it needs.

What causes the wrong environment config in a build?Troubleshooting

An incorrect cp of the .env file in the buildspec pre_build phase — verify the cp command so the correct .env is active for the build.

Can I start a deployment without pushing code?Operations

Yes — use aws codepipeline start-pipeline-execution --name rev**** --profile <hptuat|hptprod> to manually kick off the pipeline.

What is the action name for the Production approval step?Deployment

ManualApproval — it's the action referenced in the put-approval-result CLI call, within the Approve stage.

What is the stage name for the Production approval?Deployment

Approve — used in both the console (the Approve stage) and CLI (--stage-name Approve).

Does the Production pipeline deploy automatically after building?CI/CD Pipeline

No — it pauses at the Manual Approval stage and only deploys after approval.

What are the two ways to approve a Production deploy?Deployment

Via the AWS Console (CodePipeline → rev**** → Review → Approve) or via the CLI (aws codepipeline put-approval-result with the token).

Which PCI DSS version do the reports assess?PCI DSS

PCI DSS v4.0.1. The docs include requirement-wise gap-analysis reports for Requirements 2 through 12.

How many PCI DSS requirement reports are included?PCI DSS

Eleven — Requirements 2 through 12, each with its own gap-analysis report reachable from the PCI DSS panel in the docs.

Are the PCI DSS reports read-only assessments?PCI DSS

Yes. Every report states it is a read-only gap-check — only describe/list/get calls were used and no AWS resources or configurations were modified.

Were any AWS resources changed while generating the reports?PCI DSS

No. The assessments made no create/update/put/delete/modify calls; they only read the live state and changed nothing (other than writing the report files).

What does PCI DSS Requirement 2 cover?PCI DSS

"Apply Secure Configurations to All System Components" — hardening baselines, vendor defaults, unnecessary services, and secure system parameters.

What does PCI DSS Requirement 3 cover?PCI DSS

"Protect Stored Account Data" — encryption at rest for S3/RDS/EBS and scanning logs for exposed PAN and Sensitive Authentication Data (SAD).

What does PCI DSS Requirement 4 cover?PCI DSS

"Protect Cardholder Data with Strong Cryptography During Transmission" — TLS posture across CloudFront, ACM certificates, API Gateway, load balancers, and S3 transport policy.

What does PCI DSS Requirement 5 cover?PCI DSS

"Protect All Systems and Networks from Malicious Software" — malware/threat detection via GuardDuty and Inspector, container image scanning, and host-based anti-malware.

What does PCI DSS Requirement 6 cover?PCI DSS

"Develop and Maintain Secure Systems and Software" — vulnerability management, runtime currency, WAF coverage, and CI/CD change-control posture.

What does PCI DSS Requirement 7 cover?PCI DSS

"Restrict Access to System Components and Cardholder Data by Business Need to Know" — IAM least privilege and public-exposure checks on S3 and RDS.

What does PCI DSS Requirement 8 cover?PCI DSS

"Identify Users and Authenticate Access to System Components" — root protection, per-user MFA, password policy, credential rotation, and admin network exposure.

What does PCI DSS Requirement 9 cover?PCI DSS

"Restrict Physical Access to Cardholder Data" — largely an AWS responsibility under the Shared Responsibility Model, plus customer-side media encryption, backups, and retention.

What does PCI DSS Requirement 10 cover?PCI DSS

"Log and Monitor All Access to System Components and Cardholder Data" — CloudTrail audit logging, security-event alerting, VPC flow logs, retention, and time sync.

What does PCI DSS Requirement 11 cover?PCI DSS

"Test Security of Systems and Networks Regularly" — vulnerability scanning, intrusion detection, WAF coverage, file integrity monitoring, and external attack-surface review.

What does PCI DSS Requirement 12 cover?PCI DSS

"Support Information Security with Organizational Policies and Programs" — governance, cryptographic inventory, incident-response readiness, and a consolidated master summary of Reqs 3–12.

What does the MATCH status mean in the Requirement 2 report?PCI DSS

MATCH means AWS configuration evidence shows the control is met.

What does the GAP status mean?PCI DSS

GAP means the evidence shows the control is NOT met — these are the red findings for the team to act on.

What does the PARTIAL status mean?PCI DSS

PARTIAL means the control is partly met, or depends on architecture or in-instance configuration that can't be fully proven from AWS APIs.

What does the MANUAL status mean?PCI DSS

MANUAL means the item can't be proven from AWS APIs — it's a policy, process, or documentation control needing organizational evidence.

What does the N/A status mean?PCI DSS

N/A means the item doesn't apply to the AWS-managed layer (for example, on-prem wireless or POI/POS devices that aren't in the cloud scope).

What does the AWS-Managed status mean?PCI DSS

AWS-Managed means the control is AWS's responsibility under the Shared Responsibility Model (e.g. physical data-center security), with evidence available via AWS Artifact.

What does the Needs Review status mean?PCI DSS

Needs Review means the automated check couldn't conclusively pass or fail the control, so a human needs to review it (e.g. admin group membership, or checks blocked by SSM).

What does the Critical status mean?PCI DSS

Critical flags the most severe findings requiring immediate attention — for example an unencrypted RDS instance or publicly accessible data buckets.

What is the biggest single problem in the Requirement 2 report?PCI DSS

The Dev environment: its security groups expose SSH (22), MySQL (3306) and other ports to the entire internet (0.0.0.0/0), including a default security group attached to a database instance.

What is the state of AWS Config and Security Hub in the Requirement 2 report?PCI DSS

Both are disabled across all three environments (Dev/Stg/Prod) in us-east-2 and us-east-1 — no configuration recorders and Security Hub not subscribed, so no automated hardening baseline is enforced.

What is the critical finding in the Requirement 3 report?PCI DSS

An unencrypted RDS instance — vm1lxyp9qd594ip-2 — whose stored data is not encrypted at rest. The fix is to snapshot and restore into an encrypted instance (encryption can't be enabled in place).

How did S3 encryption score in the Requirement 3 report?PCI DSS

Compliant — all 21 of 21 buckets have default encryption (mostly AES256, some aws:kms). EBS volumes (2/2) and manual DB snapshots (5/5) were also encrypted.

Which certificate was flagged as expired in the Requirement 4 report?PCI DSS

An ACM certificate for hel**** was EXPIRED (not currently in use); the report recommends removing/replacing it. A *.rev**** cert was also flagged as expiring within 60 days.

How many S3 buckets enforce TLS-only in the Requirement 4 report?PCI DSS

Only 1 of 21 buckets denies non-TLS access (aws:SecureTransport=false). The report recommends adding that Deny statement to the other 20 buckets' policies.

What is the GuardDuty and Inspector status in the malware report (Req 5)?PCI DSS

GuardDuty is ENABLED (compliant for threat/behavioral detection), but Amazon Inspector v2 is DISABLED — a gap for continuous vulnerability/malware exposure scanning.

Which Lambda runtimes were flagged as end-of-life in the Requirement 6 report?PCI DSS

nodejs12.x (6 functions), python3.7 (3 functions), and dotnetcore3.1 (2 functions) are end-of-life. nodejs20.x and dotnet6 are supported.

What is the WAF coverage in the Requirement 6 report?PCI DSS

4 of 7 public CloudFront distributions have a WAF Web ACL attached; 3 (including por****) have none — the report recommends attaching WAF to those.

How did CI/CD change control score in the Requirement 6 report?PCI DSS

Compliant. The pipeline rev**** has 4 stages (Source, Build, Approve, Deploy) with a manual-approval step present, satisfying change-control review/approval (PCI 6.5.1).

What critical access findings did the Requirement 7 report raise?PCI DSS

Several S3 buckets evaluate as PUBLIC (including patient/data stores like v1-501****-hpt-patientdocs), and two RDS instances (vm1lxyp9qd594ip, vm1lxyp9qd594ip-2) are marked PubliclyAccessible.

How many users are in the admin group per the Requirement 7 report?PCI DSS

Five users have account-admin via the admin group (ali-prod, farhanprod, payalkprod, rakheeprod, waris-prod) — flagged Needs Review for least-privilege.

What did the Requirement 8 report find about MFA?PCI DSS

Root MFA is enabled (compliant), but 4 console users (ali-prod, payalkprod, rakheeprod, waris-prod) have no MFA — a gap. The password policy (12 chars, complexity, 90-day age, reuse 5) is compliant.

What did the Requirement 8 report say about access keys?PCI DSS

Several active access keys are older than 365 days (e.g. craigprod at 1782d and 1258d, plus SES SMTP user keys), flagged as a rotation gap — keys should be rotated ≤90 days.

Who is responsible for physical security in the Requirement 9 report?PCI DSS

AWS, under the Shared Responsibility Model. Physical data-center controls are AWS-managed; evidence comes from AWS Artifact (SOC 2, PCI DSS AOC). The customer handles media encryption, backups, and retention.

What did the Requirement 10 report find about CloudTrail?PCI DSS

CloudTrail is active, multi-region, with log file validation and KMS encryption (compliant) — but CloudTrail → CloudWatch Logs integration is NOT enabled, which is a gap.

How many security-event alarms are configured per the Requirement 10 report?PCI DSS

Zero of the 12 recommended CIS metric-filter alarms are configured (unauthorized API calls, root usage, IAM/policy changes, etc.), because CloudTrail isn't wired to CloudWatch Logs.

What testing gaps did the Requirement 11 report identify?PCI DSS

Amazon Inspector is disabled (no continuous internal scanning), there's no ASV external-scan or penetration-test evidence, and WAF covers only 4 of 7 public distributions. GuardDuty (IDS/anomaly) is enabled.

What are the master summary totals in the Requirement 12 report?PCI DSS

Across Requirements 3–12: 4 Critical, 19 Gap, 10 Needs Review, and 28 Compliant items.

What is the QSA engagement roadmap in the Requirement 12 report?PCI DSS

Four phases: 1) 0–30d fix Critical items (encrypt RDS, lock down public S3/RDS, enable MFA); 2) 30–60d detective controls (CloudTrail→CloudWatch + CIS alarms, Inspector, WAF, flow logs); 3) 60–90d program/evidence (policies, ASV/pen-test, FIM, IR test); 4) 90d+ engage a QSA and gather the AWS AOC.

Which account and region do the Requirement 3–12 reports cover?PCI DSS

They target the hptprod environment in us-east-2, account 501**** (account ID masked). Generated around 2026-07-07.

How do I open a PCI DSS report from the documentation?General

On the main docs page, click the "PCI DSS v4.0.1 Requirements" button to expand the panel, then click any requirement card (2–12) to open its gap-analysis report in a new tab.

How do I use this Q&A page?General

Type any word(s) in the search box to live-filter the questions, or click a category chip to narrow by topic. Click a question to expand its answer. Use the "Back to Documentation" link to return to the docs.

How do I get back to the main documentation from here?General

Use the "← Back to Documentation" link at the top of this page (or the link in the footer) — it opens index.html.

Is the PCI gap-check a formal QSA assessment?PCI DSS

No. Each report is explicitly an internal engineering gap-check, not a formal QSA assessment. Formal PCI compliance requires a Qualified Security Assessor (QSA).

What is IAM least privilege and why does it matter here?AWS Concepts

Least privilege means granting each user/role only the permissions they need. The Requirement 7 report flags five admin-group users and recommends least privilege / just-in-time elevation, and access reviews at least every 6 months.

What is AWS CodePipeline?AWS Concepts

A managed continuous-delivery service that models release stages. Here it orchestrates Source → Build → (Approve) → Deploy, coordinating CodeCommit, CodeBuild, the approval gate, and the S3 deployment.

What is AWS CodeBuild?AWS Concepts

A managed build service that compiles/builds code per a buildspec. Here it runs npm install and npm run build$ENV to produce the React app's dist/ output.

What is Amazon CloudFront?AWS Concepts

AWS's content delivery network (CDN). It caches and serves the static site from the S3 origin over HTTPS. Note: after a deploy you may need a /* invalidation to clear its cache.

What is AWS Certificate Manager (ACM)?AWS Concepts

A service that provisions and manages TLS/SSL certificates. For CloudFront the certificate must be in us-east-1; the portal's certs are ISSUED there.

What is Amazon GuardDuty?AWS Concepts

A threat-detection service using behavioral analytics to flag malicious or anomalous activity. It's ENABLED in the assessed account and counts toward malware detection (Req 5), IDS (Req 11), and alerting (Req 12).

What is Amazon Inspector?AWS Concepts

A continuous vulnerability-scanning service for EC2, Lambda, and container images. In the reports Inspector v2 is DISABLED, which is a gap for Requirements 5, 6, and 11.

What is AWS WAF?AWS Concepts

A web application firewall that filters malicious web traffic in front of apps/CDNs via a Web ACL. The reports note only 4 of 7 public CloudFront distributions have a WAF Web ACL attached.

What is AWS KMS?AWS Concepts

Key Management Service — it creates and controls the encryption keys protecting data at rest (S3, RDS, EBS, CloudTrail). The reports enumerate 10 KMS keys (1 customer-managed) and flag missing rotation on the customer key.

What is AWS CloudTrail?AWS Concepts

A service that records AWS API activity as an audit trail. The trail (auditlog-hipaa) is active, multi-region, validated, and KMS-encrypted — but not integrated with CloudWatch Logs, which limits alerting.

What are VPC Flow Logs?AWS Concepts

Logs that capture network traffic metadata for a VPC. The Requirement 10 report found 1 of 2 VPCs had active flow logs (vpc-3**** was missing one).

What is S3 Block Public Access?AWS Concepts

Account- and bucket-level guardrails that prevent buckets/objects from being made public. The Requirement 2 report found account-level Block Public Access was not configured in any environment.

What is AWS Artifact?AWS Concepts

AWS's portal for compliance evidence (SOC 2, PCI DSS AOC, etc.). Requirements 9 and 12 recommend downloading the AWS PCI DSS Attestation of Compliance (AOC) from AWS Artifact as physical-control/TPSP evidence.

What is AWS Security Hub?AWS Concepts

A service that centralizes security posture and maps findings to standards like CIS/PCI. The reports note it is not subscribed in any account, so no automated standard is running (a Req 2 and Req 12 gap).

What is AWS Secrets Manager?AWS Concepts

A service for storing and rotating application secrets. The Requirement 8 report found 1 secret without automatic rotation (metadata only was read; values were never accessed).

How is the documentation page itself protected?Security

index.html has a client-side login gate (a username plus a SHA-256-hashed password checked via SubtleCrypto). The docs note this is a light gate only — for real protection of a public URL you'd add server/edge auth like HTTP Basic Auth or Cloudflare Access.

Why are values like por****, rev**** and 501**** masked?Security

They're intentionally redacted so the documentation and reports are safe to share. Sensitive identifiers (domains, bucket/project names, account IDs) are masked while keeping enough context to be useful. This Q&A keeps them masked too.

How is the CI/CD pipeline relevant to PCI compliance?PCI DSS

It's the change-control evidence for PCI Requirement 6.5.1: the pipeline (rev****) has a manual-approval stage, which the Requirement 6 report marks Compliant for review/approval-based change control.

What does the Requirement 3 report say about PAN and SAD in logs?PCI DSS

No Luhn-valid PAN candidates were found in the scanned logs (compliant for 3.4.1), but 12 SAD keyword hits (CVV/track/PIN) were flagged for manual review — SAD must never be stored after authorization (3.3.1).

What are the three environments compared in the Requirement 2 report?PCI DSS

Dev (development), Stg (staging/UAT), and Prod (production). Their AWS account IDs are intentionally withheld; Stg and Prod were in materially better shape than Dev.

Where can I find the developer checklist and troubleshooting table?General

In the main documentation (index.html): section 9 (Developer Checklist) has the UAT/Production deploy steps, quick-reference CLI commands, and a troubleshooting table of common issues and fixes.

← Back to Documentation

Search 200+ questions about the Revique pipeline, deployment, PCI DSS & AWS — grounded in the docs.

200 of 200 questions
No questions match your search Try fewer or different words, or pick a different category.
REVIQUE PORTAL DOCUMENTATION · Q&A KNOWLEDGE BASE · Back to Docs →