State Manager Associations with SSM Command Documents vs. SSM Automation Documents

0

I have been successfully using State Manager Associations with SSM Command Documents to automatically apply the documents to EC2 instances based on target tags. The association runs once automatically when the instance with matching tags is available in SSM Fleet Manager, and then never again (with the association set to manual).

I’m trying to get the same behavior out of State Manager Associations with SSM Automation Documents, by creating associations the same way I am doing with Command Documents. However, despite being able to make associations with target tags the same way as Command Documents, the Automation Documents seem to have completely different behavior. The Automation Documents don’t automatically get applied to EC2 instances with the target tags when they are available in Fleet Manager. If I run the association manually, it applies the association to all instances matching the tags, regardless of their state and whether the association has already been applied.

The documentation has a lot of references to using EventBridge rules to apply Automation Documents based on tags, but I find it odd nothing prevents you from creating associations with Automation Documents the same way as Command Documents. Ideally I would love a method to have the same behavior with Automation Documents that I have working with Command Documents.

Am I doing something wrong, have a fundamental misunderstanding of how Automation Docs are supposed to work, or possibly both?

tuomas
질문됨 5달 전284회 조회
1개 답변
0

Hello,

Greetings from AWS! Hope you're safe and doing well. Thank you for posting your query on AWS!

From your query, I understand that you are using SSM state manager association to run SSM Command and Automation documents by targetting the EC2 Instances by their tags. However, the SSM Automation documentation is not working correctly and the SSM Run command document works fine.

Kindly allow me to mention that both the SSM Run command and automation document should have a parameter called "Rate Control" where you can choose your target where you can select the value as "Tags" which should have worked correctly. I have also tested the scenario in my lab and I was able to execute the state manager assocition for both run command and SSM automation successfully targeting the EC2 Instance tags.

In order to investigate further we would need to look into how the Association was created/triggered and what all parameters were passed to the automation when compared to SSM Command document. Therefore, to investigate the issue in more depth, I would recommend creating a case/ticket support teams via your Support Center: http://go.aws/support-center who should be able to investigate the issue that you are facing and provide an accurate solution for the same.

Thank you!

AWS
지원 엔지니어
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠