---
schemaVersion: '2.0'
description: >-
  Promote an AEM standby Author to primary.
parameters:
  executionTimeout:
    description: >-
      (Optional) The time in seconds for a command to be completed before it is
      considered to have failed. Default is 3600 (1 hour). Maximum is 28800 (8
      hours).
    type: String
    allowedPattern: ([1-9][0-9]{0,3})|(1[0-9]{1,4})|(2[0-7][0-9]{1,3})|(28[0-7][0-9]{1,2})|(28800)
    default: '3600'
mainSteps:
  - action: aws:runShellScript
    name: runShellScript
    inputs:
      runCommand:
        - '. /etc/profile'
        - /opt/shinesolutions/aem-tools/promote-author-standby-to-primary.sh
      timeoutSeconds: '{{ executionTimeout }}'
      workingDirectory: /tmp

---
schemaVersion: '2.0'
description: >-
  Promote an AEM standby Author to primary.
parameters:
  executionTimeout:
    description: >-
      (Optional) The time in seconds for a command to be completed before it is
      considered to have failed. Default is 3600 (1 hour). Maximum is 28800 (8
      hours).
    type: String
    allowedPattern: ([1-9][0-9]{0,3})|(1[0-9]{1,4})|(2[0-7][0-9]{1,3})|(28[0-7][0-9]{1,2})|(28800)
    default: '3600'
mainSteps:
  - action: aws:runShellScript
    name: runShellScript
    inputs:
      runCommand:
        - '. /etc/profile'
        - /opt/shinesolutions/aws-tools/promote-author-standby-to-primary.sh
      timeoutSeconds: '{{ executionTimeout }}'
      workingDirectory: /tmp

Update StackManager Event Promote Author standby to primary
Update StackManager Event Promote Author standby to primary

* update StackManager Event Promote Author standby instance to primary to call AWS Tool instead of AEM Tool
