- Newest
- Most votes
- Most comments
Hi there,
The mechanism for creating a Distributor package programmatically is described in the documentation here:
We see here that this involves creating an SSM document, since Distributor package details are stored in SSM documents with the document type 'Package'. Although the documentation refers to the AWS CLI specifically, the same principle applies for invoking the API via CloudFormation.
You can create SSM documents in CloudFormation with the AWS::SSM::Document resource type.
After creating your package, you can create an Association programmatically to run AWS-ConfigureAWSPackage to install your Distributor package.
Scheduling a package installation (AWS CLI)
The Association can also be created via CloudFormation, using the AWS::SSM::Association resource type.
Although I don't have a CloudFormation template at hand I can provide, you can start off by building a template using these CloudFormation resources to create the Document and Association (once the document has been created). If this suits your needs, you can then deploy the CloudFormation template to each region you need the Distributor package and Association to be created in.
Note that Quick Setup supports Distributor only for the EC2Launch v2 agent, Amazon Elastic File System (Amazon EFS) utilities and Amazon CloudWatch agent, but not for custom packages at this time.
Hopefully this information is helpful to you.
Many Thanks!
Relevant content
- asked 22 days ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago