Create SSM Association with CloudFormation

0
AWSTemplateFormatVersion: "2010-09-09"
Description: Testing agent install association
Resources:
  AgentInstallAssociation:
    Type: AWS::SSM::Association
    Properties:
      # Specify document to use
      Name: AWS-ConfigureAWSPackage
      Targets:
        - Key: InstanceIds
          Values: 
          - [instance id]
      Parameters:
        # Install AgentInstall Package
        Action:
          - Install
        Installation_Type:
          - Uninstall and reinstall
        Name:
          - AgentInstall #Package name`

I am trying to create this association with a cloudformation stack. I am getting the error there is no parameter 'action' in the document. I can't find any documentation that will help in this use case.

rpope
asked 6 months ago219 views
1 Answer
0

To install the SSM Agent package via CloudFormation, you need to use the AWS-InstallSsmAgent document instead

profile pictureAWS
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions