Skip to content

Commit

Permalink
CC-2391: Added a test SSM document.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgovuk committed Feb 29, 2024
1 parent f708891 commit 0559282
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions terraform/environments/ccms-ebs/ccms-ssm-document-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ccms-ssm-document-test.yaml
---
schemaVersion: "2.2"
description: Perform a healthcheck on the target instance
mainSteps:
- name: TestSSMdocument
action: aws:runShellScript
precondition:
StringEquals:
- platformType
- Linux
inputs:
runCommand:
- "tail -n 16 /var/log/messages"
7 changes: 7 additions & 0 deletions terraform/environments/ccms-ebs/ccms-ssm-documents.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "aws_ssm_document" "test" {
name = "TestSSMdocument"
document_type = "Command"
document_format = "YAML"

content = file("ccms-ssm-document-test.yaml")
}

0 comments on commit 0559282

Please sign in to comment.