Take a look at this: Invoking other AWS services from a Systems Manager Automation runbook.
Instead of running a script, you have SSM run the modify-instance-attribute API call against a set of instances.
Thank you for your answer. I am really new to AWS, so it will take some time to figure out how to do it. Thanks again for your response Kentrad. It puts me in the right direction.
Can a SG be deployed using SSM/PS to all Ec2 instances?Accepted Answerasked 7 months ago
Routing network traffic between two EC2 instances in the same subnet to a firewall appliance in another VPCAccepted Answerasked 8 months ago
Is it possible to connect the resources of two or more EC2 instances?Accepted Answerasked 3 months ago
Can GraphQL be deployed to Elastic Beanstalk?Accepted Answerasked 2 years ago
Restricting access to EC2 instances using IAM PolicyAccepted Answerasked 9 months ago
Issues in EKS is causing new EC2 instances to spin offasked 3 years ago
How to remove instances when using the crowd-instance-segmentation widget?asked 3 months ago
Powershell script to retrieve all EC2 instances across all accountsasked 18 days ago
Running multiple container using single EC2 instances in ECSasked 2 months ago
What will be pricing after lowering number of CPUs while creating ec2 instances?Accepted Answerasked 9 months ago