Executing scripts required for setting up AWS
-
- UpdatedNov 5, 2024
- 4 minutes to read
- Washington DC
- Now Platform Capabilities
You must execute scripts provided with the Service Graph Connector for AWS to set up the AWS environment for importing data.
The AWS scripts provided with the connector configure AWS resources to import the configuration items (CIs) data into the CMDB. To learn more, see AWS resources used by the Service Graph Connector for AWS.
Based on the AWS environment requirements, the scripts provided with the Service Graph Connector for AWS are categorized as described in the following table.
Basic scripts
Use the basic scripts to configure the AWS environment for importing data using the Service Graph Connector for AWS.
The following table describes the basic AWS scripts available with the connector, the input parameters entered when executing a script, the conditions to execute the scripts, and the script execution results.
Deep discovery scripts
Script | Input parameters | Execution condition | Result |
---|---|---|---|
AmazonSSMForInstancesRoleSetup.yml |
|
Execute the script in all the AWS accounts by creating a CloudFormation StackSet in the management account. See Create a stack set on the AWS documentation site. |
Creates the AmazonSSMForInstancesRole IAM instance profile role to be attached to the EC2 instances. |
SG-AWS-RunShellScript-Setup.yml |
None |
Execute the script in all the AWS accounts and the AWS regions by creating a CloudFormation StackSet in the management account. AWS administrators must update SSM documents and verify that EC2 instances can execute relevant commands for proper integration. See Create a stack set on the AWS documentation site. |
Creates AWS Systems Manager (SSM) documents to fetch deep discovery data from a Linux EC2 instance. Retrieves version details for middleware applications, including Apache HTTP server, Nginx server, Apache Tomcat server, and MySQL instance. |
SG-AWS-RunPowerShellScript-Setup.yml |
None |
Execute the script in all the AWS accounts and the AWS regions by creating a CloudFormation StackSet in the management account. See Create a stack set on the AWS documentation site. |
Creates AWS SSM documents to fetch deep discovery data from a Windows EC2 instance. |
Amazon EKS scripts
The following table describes the Amazon EKS scripts, the conditions to execute the scripts, and the script execution results.
Script | Execution condition | Result |
---|---|---|
SG-AWS-RunKubeCtlEKSNamesShellScript.yml |
Execute the script in all the AWS accounts and the AWS regions where the EC2 Bastion hosts are located by creating a CloudFormation StackSet in the management account. See Create a stack set on the AWS documentation site. |
Creates an AWS SSM document to discover EKS clusters associated with EC2 Bastion hosts. Note: An AWS Cloud administrator can update the SSM document in their AWS setup. |
SG-AWS-RunKubeCtlShellScript.yml |
Execute the script in all the AWS accounts and the AWS regions where the EC2 Bastion hosts are located by creating a CloudFormation StackSet in the management account. See Create a stack set on the AWS documentation site. |
Creates an AWS SSM document to fetch CIs related to Kubernetes components, such as pods, services, and deployments, from EKS clusters. Note: An AWS Cloud administrator can update the SSM document in their AWS setup. |