Provision products and raise patch change requests in AWS via ServiceNow
The main architectural value here is not the individual provisioning or patching step, but the control plane pattern that ties them together. By using ServiceNow as the request and approval front end while AWS handles execution through Service Catalog, Systems Manager, and CloudTrail, teams can keep familiar ITSM processes without forcing operators to leave the service management workflow.
That separation, however, creates an integration dependency chain. The solution relies on synchronized identities, matching roles, approved change templates, event store configuration, and carefully scoped IAM permissions. In practice, the weakest link is usually not the automation document itself but the configuration consistency across ServiceNow and AWS. If those mappings drift, requests may appear successful in ITSM while execution fails or becomes hard to trace.
For platform teams, the operational trade-off is between standardization and flexibility. A prebuilt workflow reduces ad hoc manual steps and improves auditability, but it also makes the patch path more opinionated. Teams adopting this model should expect to align catalog design, change governance, and approval logic with AWS resource life cycles, rather than treating the connector as a simple plug-in.
Security and resilience considerations are equally important. The connector introduces additional access keys, user roles, and cross-system permissions that should be reviewed as part of the deployment baseline. CloudTrail-backed visibility helps with post-change investigation, but only if event capture is configured from the start and the event data store remains queryable. For enterprise operations, the real benefit is repeatable control with traceable execution, not just faster provisioning.
ย is a popular cloud-based IT Service Management (ITSM) platform. Organizations use ServiceNow to manage incidents, track scheduled and planned infrastructure changes, manage new service requests and track configuration items across IT systems. Common questions Iโve had from customers include how they can use ServiceNow to provision new instances. Or, how to use ServiceNow to implement patches forย
ย resources while still using ServiceNow defined change management workflows. Fortunately, AWS provides the โAWS Service Management Connector (SMC) for ServiceNowโ, where customers can implement these use cases natively in ServiceNow. The AWS SMC also supports use cases including incident and configuration management. You can refer toย AWS Service Management Connector for ServiceNowย documentation for more details.
In this blog, we walk through the steps to set up and configure a web server, then patch the instance using the pre-configured ServiceNow workflow.ย For this use case, we provision a new NGINX web server product, raise a change request to patch the web server instance, and view the associated AWS events.
Overview of solution

The solution is composed of the following components:
- The ServiceNowย Personal Developer Instance (PDI)ย provides the user interface to provision a new product and raise a change request.
- The AWS Service Management Connector (SMC) application will be installed and configured in the ServiceNow PDI.
- When we order a new web server product within the ServiceNow service catalog, the AWS SMC calls AWS Service Catalog to provision a new EC2 instance.
- When we raise a change request in ServiceNow, the AWS SMC calls AWS Systems Manager Change Manager to initiate a change request and run an automation document (runbook) to patch the instance. The runbook uses AWS CloudFormation templates and AWS Lambda functions.
- AWS Systems Manager also captures events associated with the change request in an AWS CloudTrail event store, which can be queried via SQL.
Walkthrough
The steps to deploy the solution can be summarized in the following order:
- Deploy the CloudFormation template to set up the baseline permissions and IAM users.
- Install the AWS Service Management Connector application in ServiceNow.
- Configure AWS Service Catalog integration in ServiceNow required to provision a new product.
- Configure AWS Systems Manager Automation and Systems Manager Change Manager integration required to raise a new patch management change request.
- Validate the solution by provisioning a new NGINX web server and raising a change request to patch the web server instance.
- Validate the change request details.
- Clean up resources.
Prerequisites
For this walkthrough, you should have the following prerequisites:
- Anย AWS account
- A ServiceNowย Personal Developer Instance (PDI)
Create baseline permission and IAM users in AWS
- To create the users and permissions, use the CloudFormation template from theย AWS Service Management Connector documentation.
- The template creates an AWS Sync User and AWS End User. Make note of the SCEndUserAccessKey, SCEndUserSecretAccessKey, SCSyncUserAccessKey, and SCSyncUserSecretAccessKey values from the stack output. These will be used when configuring the AWS Account within ServiceNow.
Configure ServiceNow components
- The ServiceNow steps are performed using the admin user credentials created as part ofย obtaining a PDIย process.
- Activate the โUser Criteria Scoped APIโ plugin by navigating to the system โPluginsโ page. Search for โUser Criteriaโ. If the plugin is already installed, select the plugin to verify it is active.ย Note:ย Clear the ServiceNow platform cache first.
- Activate the โDiscovery and Service Mapping Patternsโ plugin by searching for the โDiscovery and Service Mapping Patternsโ application and installing it.
- Activate the โChange Management โ Change Model Foundation Dataโ plugin by searching for โChange Managementโ. If the plugin is already installed, select the plugin to verify itโs active.
Install ServiceNow Connector scoped application
- From the ServiceNow PDI, we will use an โUpdate Setโ to install the AWS Service Management Connector.
- Download theย ServiceNow Update Set. From the โRetrieved Update Setsโ, select the โImport Update Set from XMLโ and upload the XML file.
- Preview and โCommit the Retrieved Update Setโ to install the connector.
Configure AWS Service Catalog integration in ServiceNow
- Underย โSystem Definitionโ > โChoice Listsโ, create discovery source and configure platform tables, by adding an entry into the Configuration Item (CI) table for the AWS SMC to report discovered CIs into the CMDB.
- Set permissions on ServiceNow Platform by modifying the โApplication Accessโ for the ServiceNow Service Catalog table so that the AWS products will display under AWS portfolios as subcategories.
- Underย โSystem Definitionโ > โTablesโ, search for and select the โCatalog Item Categoryโ table. Check the boxes โCan createโ, โCan updateโ, โCan deleteโ.
Configure ServiceNow permissions and add AWS products in ServiceNow
- Underย โSystem Securityโ > โUsers and Groupsโ > โUsersโ, edit the userโs role by adding ServiceNow permissions required for managing automation and change manager templates, accessing CloudTrail events, searching AWS Service Catalog products and portfolios, and managing AWS accounts.
- Underย โSelf-Serviceโ > โService Catalogโ, add the โAWS Service Catalogโ product to the ServiceNow Service Catalog.
Configure Systems Manager Change Manager Integration in ServiceNow
- Underย โSystem Definitionโ > โChoice Listsโ, add an entry into the Change Request table with a label of โAWS Change Requestโ and value of โAWSChangeRequestโ.
- Enable AWS Systems Manager Change Manager integration Change models by setting the following properties under โsys_properties.listโ:
-
- โcom.snc.change_management.change_model.type_compatibilityโ = โtrueโ.
- โcom.snc.change_management.change_model.hideโ = โfalseโ.
Configure AWS Accounts in ServiceNow to synchronize data with AWS
- Underย โAWS Service Management Connectorโ > โSetupโ > โAWS Accountsโ, create a new AWS Account (for example, โsmc-cloudopsโ). Use the access key and secret key for the โSyncUserโ and โEndUserโ (created in the CloudFormation stack creation step earlier). Check the boxes to integrate with AWS Service Catalog, AWS Config, AWS Systems Manager Automation, and Systems Manager Change Manager.
- Validate the connectivity of the newly created AWS Account.
Verify the โSMC Example Portfolioโ in AWS
- In theย AWS Management Console, underย โAWS Service Catalogโ > โPortfoliosโ, there will be a โSMC Example Portfolioโ that was created when the CloudFormation template โsmc-iam-setup.jsonโ was run earlier.
- Selecting the โSMC Example Portfolioโ will show two products: โSimple S3 Private Bucketโ and โDemo NGINX Webserverโ.
Configure permissions for sample end user (Abel Tuter) in ServiceNow
- In the ServiceNow PDI, underย โUsers and Groupsโ > โGroupsโ, create a new group record called โOrder_AWS_Productsโ and add the sample user โAbel Tuterโ to the group.
- Underย โAWS Service Management Connectorโ > โAWS Service Catalogโ > โPortfoliosโ, add a new group called โOrder_AWS_Productsโ to the โSMC Example Portfolioโ.
Provision a new Web Server in AWS via the ServiceNow Service Catalog
- Weโre now ready to provision a new AWS service via ServiceNow. Log in to the ServiceNow PDI using the sample user โabel.tuterโ. From the landing page, select โService Catalogโ under โSelf-Serviceโ.
- Select the โDemo NGINX Webserverโ.

- The NGINX web server product details page will request input parameters. These include the product name, the Virtual Private Cloud (VPC) to deploy the web server, the instance type, and any required tagging information. Click on the โCreate planโ to view the resources to be provisioned.

- The Resource Changes shows that a new security group and EC2 instance will be created as part of this product. Select โOrder Nowโ, to provision the product.

- Confirmation page showing that the request has been submitted. Select the โRequest Numberโ link, and view details of the request.

- Requested Item page showing that it has been approved and currently in โFulfilmentโ stage.

- Log in to theย AWS Management Console. Under the EC2 service, confirm that a new EC2 instance running NGINX web server has been successfully created. Copy the public IPv4 DNS and open it in a new browser window.

- The browser shows the default landing page. We have now successfully created a NGINX web server.

Configure AWS Systems Manager Automation integration in ServiceNow
- Now that we have provisioned an Amazon EC2 instance via the ServiceNow Service Catalog, this next section will describe how to raise a change request in ServiceNow. This will help you to apply patch updates to the web server. First, we will configure ServiceNow integration with AWS Systems Manager Automation, which is required in order to run the patch update automation document.
- In the PDI, underย โSystem Propertiesโ > โAWS Systems Managerโ > โSystems Manager Automationโ, verify that the โAWS Systems Manager โ Execute Automation Documentโ workflow exists by navigating to โWorkflow Editorโ.
- Filter workflows by โAWSโ and view the โAWS Systems Manager โ Execute Automation Documentโ workflow, along with other workflows created by the Service Management Connector Application.

- Assign additional permissions to the โSCEndUserโ to stop and update EC2 instances. In theย AWS Management Console, underย โIAMโ > โUsersโ, add an inline policy that contains permissions allowing the โSCEndUserโ to stop/start EC2 instances and retrieve AWS Systems Manager documents.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:StopInstances",
"ec2:StartInstances",
"ssm:GetDocument"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
- Underย โSystems Managerโ > โChange Managerโ, create a standard change template to patch an EC2 instance using the โAWS-PatchInstanceWithRollbackโ runbook provided by AWS.ย Note:ย If Change Manager has not been set up for the account, refer toย Setting up Change Managerย for details.
- Enable auto-approval, as this is required for the connector to synchronize change templates and add an IAM user as the first level approver. Submit the change template for review.
- The template must be in an โApprovedโ state before it is synchronized by the connector, so navigate to the โblog-patch-templateโ and select โApproveโ.
Configure AWS Systems Manager Change Manager integration in ServiceNow
- In theย AWS Management Console, underย โCloudTrailโ > โLakeโ > โEvent data storesโ, create event data store. Check the โManagement eventsโ box.
- In theย ServiceNow PDI, underย โSystem Propertiesโ > โAWS Systems Managerโ > โAWS Systems Manager Change Managerโ, verify that the AWS Systems Manager Change Manager role matches the โServiceNowChangeManagerโ role that was created as part of the CloudFormation template โsmc-iam-setup.jsonโ executed earlier. Update the โEvent Data Store Nameโ with the event data store created in the previous steps.
- Underย โAWS Systems Managerโ > โChange Templatesโ, verify the โblog-patch-templateโ has been synchronized from AWS Systems Manager Change Manager.
Create a new change request from ServiceNow
- Weโre now ready to create a new change request to patch our web server via ServiceNow. Log in to theย Personal Developer Instance (PDI)ย using the โadminโ user and selectย โChangeโ > โCreate Newโ.

- Select the option to make changes to AWS resources using Change Manager Templates.

- Select the โblog-patch-templateโ as the change request template.

- Enter the instance ID of the NGINX web server created earlier and โSubmitโ.

- In the change request form, select an โAssignment groupโ and then select โRequest Approvalโ.

- Approve the change request.


- The change request progresses to the โScheduledโ stage. Select โImplementโ.

- In the โChange Tasksโ tab at the bottom, the implementation task state is โIn Progressโ.


- You can also view the workflow execution states in graphical form.

- After the change request completes, check the โAWS Statusโ attribute for โCompleteWith Successโ.

- You can also verify that the automation execution associated with the change request was successfully implemented by navigating to โAutomation Executionsโ.

- The Automation Executions show that the โblog-patch-templateโ document โCompleted with Successโ.

View the change request details in AWS
- We can view the change request details in AWS by querying the โsmc-change-store-1โ event store we created earlier. In theย AWS Management Console, selectย โCloudTrailโ > โLakeโ. In the Editor, issue a query on the event store where the โsourceIPAddressโ equals โssm.amazonaws.comโ to view the events generated by the change request.

- Additionally, you can view the events for the โPatchInstanceWithRollbackโ stack in CloudFormation.

Cleaning up
To avoid incurring future charges, remove the resources by deleting NGINX web server instance and disabling change requests/scheduled jobs in ServiceNow.
About the Author
Bill Chan
Bill is an Enterprise Solutions Architect working with large enterprises to craft highly scalable, flexible, and resilient cloud architectures. He helps organizations understand best practices around advanced cloud-based solutions, and how to migrate existing workloads to the cloud. He enjoys relaxing with family and shooting hoops.
ย
ย
Extract ServiceNow data using AWS Glue Studio in an Amazon S3 data lake and analyze using Amazon Athena
Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.
