Bobcares

Ansible AWS SSM | Integration Guide

by | Jul 14, 2023

Ansible AWS SSM enables us to manage and automate AWS resources. Bobcares, as a part of our AWS Support Services offers solutions to every query that comes our way.

What Is Ansible AWS SSM?

We can manage and automate AWS resources with AWS Systems Manager because of the Ansible feature called Ansible AWS SSM. Using a variety of APIs and tools, AWS SSM offers a consolidated and integrated interface for managing AWS resources, including EC2 instances.

ansible aws ssm

We can start EC2 instances, manage security groups, set up IAM roles, and remotely execute commands on EC2 instances, among other tasks, using AWS resources using Ansible AWS SSM. It also enables us to effectively manage AWS resources by using the declarative language and automation features of Ansible.

Incorporating with AWS SSM

Consider we need to set up a group of Apache web servers to provide the same web content. To distinguish them, each of them has a resource tag with the key “role” and the value “webserver”. We want to establish a procedure that constantly checks to see if these instances are configured correctly.

Let’s review an example of how to streamline processes using the new Ansible SSM document.

1. Firstly, we must open the AWS Management Console and sign in.

2. Then go to State Manager.

3. Press the Association button.

4. Give the association a name if you want to. It’s referred to as a web server.

5. From the list of SSM documents, pick AWS-ApplyAnsiblePlaybooks.

6. Select S3 in the source type field.

7. Enter the path to the zip file in Amazon S3 location in the source info field. Enter the file location in the following format using JSON notation. For instance: {“path”:”https://example-bucket.s3.amazonaws.com/automation.zip”}

8. Select true in the install dependencies field. This installs Ansible for us along with all of its requirements.

9. We must include the complete relative path to the main playbook’s location in the playbook file. Since the primary file is called server.yml and we compressed the files into a folder called automation. In this area, we enter “automation/server.yml”.

10. We can enter a second variable to be used during execution in the extra variable field.

11. We choose the specify tags option under the targets section. then type in our web server’s tag definition. That is tag value: webserver and tag key: role. All instances that contain a tag with the key role and value webserver are the ones that the Systems Manager State Manager will execute on.

12. Set the frequency at which we want to run this association on the specified schedule.

13. Lastly, click Create Association.

These steps help us to integrate Ansible – AWS SSM easily.

[Looking for a solution to another query? We are just a click away.]

Conclusion

The article provides a 13-step method from our Tech team to incorporate Ansible AWS SSM.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF