Repository navigation
ci(cd): migrate CloudMonitor EC2 deployment from SSH to SSM - #22
Merged
Merged
Conversation
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prepares the CloudMonitor production deployment migration from SSH (TCP port 22) to AWS Systems Manager Run Command, authenticated through GitHub Actions OIDC.
What changes
oidc-check,ssm-preflight, explicitly confirmeddeploy, and explicitly confirmedrollback.docs/SSM_DEPLOYMENT_MIGRATION.mdwith EC2 instance-role, SSM Agent/network, GitHub OIDC trust, IAM permissions, environment variables, and rollout instructions.Important rollout guard
This PR intentionally makes the CD workflow manual-only during the migration. It removes automatic
push: maindeployment until the SSM path has been configured and verified. Merging this PR will not itself deploy to EC2.Do not re-enable automatic deployment until:
AmazonSSMManagedInstanceCore).Onlineinap-southeast-2.ssm-preflightoperation succeeds.Keep administrator SSH access as a break-glass path until SSM is proven.
Data safety
/home/ubuntu/cloud_monitor/.envexists and is not Git-tracked. It never prints its contents.docker compose config,build, andup -d --remove-orphans.docker compose down -v, delete volumes, or recreate PostgreSQL storage.Verification boundary
Scope
No AWS resources are changed by this PR. No production deployment is authorized by this PR.