Skip to content

Enhance AWS SSM integration and update troubleshooting guides - #119

Merged
rishabkumar7 merged 5 commits into
mainfrom
aws-ssm-readiness
Jun 22, 2026
Merged

Enhance AWS SSM integration and update troubleshooting guides#119
rishabkumar7 merged 5 commits into
mainfrom
aws-ssm-readiness

Conversation

@rishabkumar7

Copy link
Copy Markdown
Collaborator

This pull request updates the AWS deployment process to use AWS Systems Manager (SSM) Run Command for release-mode setup readiness, replacing the previous SSH-based readiness check. It also adds new IAM resources for SSM, improves documentation for Windows users (requiring WSL), and provides troubleshooting steps for SSM-related issues.

AWS Release Mode Setup Readiness via SSM:

  • Added new IAM resources in aws/main.tf to create an EC2 instance profile with the AmazonSSMManagedInstanceCore policy, enabling the instance to register as an SSM managed node.
  • Updated the aws_instance resource to attach the SSM instance profile when not in local setup mode.
  • Replaced the SSH-based readiness check in the release_setup_ready resource with a local-exec provisioner that waits for SSM registration and uses SSM Run Command to check setup readiness.

Documentation and Troubleshooting Improvements:

  • Updated aws/README.md and CONTRIBUTING.md to explain the new SSM-based readiness check, required permissions, and the need for WSL on Windows. [1] [2] [3] [4]
  • Added troubleshooting steps and a new section for SSM setup readiness errors in TROUBLESHOOTING.md, including common causes and diagnostic commands. [1] [2] [3]

These changes ensure more robust and cloud-native setup readiness checks for AWS deployments and provide clearer guidance for contributors and users.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AWS “release mode” deployment flow to use AWS Systems Manager (SSM) Run Command for setup readiness checks instead of relying on SSH, and refreshes contributor/user docs and troubleshooting guidance (including Windows/WSL requirements) accordingly.

Changes:

  • Add AWS IAM role + instance profile (with AmazonSSMManagedInstanceCore) and attach it to the EC2 instance in release mode.
  • Replace the AWS SSH-based readiness wait with an SSM registration wait + SSM Run Command execution to validate setup completion.
  • Expand documentation and troubleshooting steps for SSM readiness and Windows (WSL) deployment constraints.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
aws/main.tf Adds SSM IAM resources, attaches instance profile, and switches release readiness from SSH to SSM Run Command via local-exec.
aws/README.md Documents WSL requirement on Windows and adds SSM readiness troubleshooting guidance/permissions.
CONTRIBUTING.md Updates provider readiness behavior notes to reflect AWS SSM-based readiness in release mode.
TROUBLESHOOTING.md Adds an AWS SSM readiness troubleshooting section and Windows/WSL guidance for the AWS path.

Comment thread aws/main.tf
Comment on lines +370 to +374
set -eu
instance_id='${aws_instance.ctf_instance.id}'
region='${var.aws_region}'
command_file='${path.module}/.terraform/linux-ctfs-ssm-readiness-command.json'

Comment thread aws/main.tf Outdated
Comment on lines +377 to +381
ping_status=$(aws ssm describe-instance-information \
--region "$region" \
--filters "Key=InstanceIds,Values=$instance_id" \
--query 'InstanceInformationList[0].PingStatus' \
--output text 2>/dev/null || true)
Comment thread aws/main.tf Outdated
Comment on lines +446 to +451
status=$(aws ssm get-command-invocation \
--region "$region" \
--command-id "$command_id" \
--instance-id "$instance_id" \
--query 'Status' \
--output text 2>/dev/null || true)
@rishabkumar7 rishabkumar7 linked an issue Jun 21, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread aws/main.tf
Comment thread aws/main.tf

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@rishabkumar7
rishabkumar7 merged commit 9ae2fe1 into main Jun 22, 2026
4 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.

Prototype AWS SSM setup readiness Improve setup readiness with provider-specific signals

2 participants