- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hello,
I noticed that you are using New-SSMAssociation
with the parameter -InstanceId
.
However, documents that use schema version 2.0 or later must use -Target
instead of -InstanceId
Quoting the :
InstanceId
has been deprecated. To specify a managed node ID for an association, use theTargets
parameter. Requests that include the parameterInstanceID
with Systems Manager documents (SSM documents) that use schema version 2.0 or later will fail. In addition, if you use the parameterInstanceId
, you can't use the parametersAssociationName
,DocumentVersion
,MaxErrors
,MaxConcurrency
,OutputLocation
, orScheduleExpression
. To use these parameters, you must use theTargets
parameter.
You can replace -InstanceId
with:
-Target Key=InstanceIds,Values=$instance_id
Please refer to the following links for more details:
https://docs.aws.amazon.com/powershell/latest/reference/items/New-SSMAssociation.html
https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/SSM/TTarget.html
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 5 ans
- AWS OFFICIELA mis à jour il y a un an
Thank you for the assistance.