Skip to content

Commit

Permalink
add precondition otherwise this runs on Linux hosts and breaks things (
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman authored Feb 22, 2024
1 parent dbb8886 commit a9804f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ parameters:
mainSteps:
- name: installCWAgent
action: aws:runDocument
precondition:
StringEquals:
- platformType
- Windows
inputs:
documentType: SSMDocument
documentPath: AWS-ConfigureAWSPackage
Expand All @@ -17,6 +21,10 @@ mainSteps:
name: AmazonCloudWatchAgent
- name: configureCWAgent
action: aws:runDocument
precondition:
StringEquals:
- platformType
- Windows
inputs:
documentType: SSMDocument
documentPath: AmazonCloudWatch-ManageAgent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ parameters:
mainSteps:
- name: installCWAgent
action: aws:runDocument
precondition:
StringEquals:
- platformType
- Windows
inputs:
documentType: SSMDocument
documentPath: AWS-ConfigureAWSPackage
Expand All @@ -17,6 +21,10 @@ mainSteps:
name: AmazonCloudWatchAgent
- name: configureCWAgent
action: aws:runDocument
precondition:
StringEquals:
- platformType
- Windows
inputs:
documentType: SSMDocument
documentPath: AmazonCloudWatch-ManageAgent
Expand Down

0 comments on commit a9804f3

Please sign in to comment.