Defining AWS Observer jobs
Using the AWS Observer, you can define jobs that read services data from the Amazon Web Services (AWS) through AWS SDK and then generate a topology. It is installed as part of the core installation procedure.
Before you begin
Important: The AWS Observer supports the cloud/SaaS AWS version 1.11.
Ensure you have the AWS details to hand, such as AWS Region, Access Key ID and Access Secret Key.
Remember: Swagger documentation for the observer is available at the following default
location: https://<your
host>/1.0/aws-observer/swagger
About this task
The AWS Observer supports EC2 service and currently processes
EC2 resources in the following order. When the account in use has insufficient privileges to access
a resource, the observer skips the resource(s) and proceed to the next one.
- Instance
- AvailabilityZones
- NetworkInterfaces
- Volumes
- SecurityGroups
- VPCs
- Subnets
- RouteTables
Important: As a minimum, the account in use must have the DescribeInstances policy,
or the observer job fails. Please see the following for more information: Identity and access management for Amazon EC2
aws_observer_common.sh
- The configuration file you use to customize AWS Observer settings.
You define and start the following job. You must edit the parameters in the configuration file
before running this job.
- Full Topology Upload job
- A transient (one-off) job that loads all requested topology data.
Required: In order for the AWS Observer to access the Amazon Web
Services (AWS) account automatically, the accessKey,
secretKey and region parameters are required.
- The access key and the secret access key are not the standard user name and password, but are special tokens that allow the services to communicate with the AWS account by making secure REST or Query protocol requests to the AWS service API.
- The region is the geographical location, for example US East (Ohio),
Asia Pacific (Hong Kong), or EU (London).Note: The Full Topology Upload job also supports multi-region full loads, as well as properties filtering, but only via Swagger and UI.
- If you wish to discover more than one region, you will need to comma-separate each region, for example ["eu-east-1","ap-south-1"].
- If you wish to exclude more than one property, you will need to separate each property by comma, for example "kernelId,state-code,keyName".
aws_observer_load_start.sh
script.
Procedure
To find your Access Key and Secret Access Key:
To find the region
To edit the parameters in the configuration file
To start the Load job
Results
This job loads all requested topology data, and runs only once. Run this job whenever you need AWS topology data refreshed.
What to do next
You can also use the following scripts:
- aws_observer_load_stop.sh
- Stops the Load job
- aws_observer_job_list.sh
- Lists the status of current jobs
- aws_observer_log_level.sh
- Sets the log level
Remember: As an alternative to being configured using the Observer Configuration
UI, observer jobs have scripts to start and stop all available jobs, to list the status of a current
job, and to set its logging levels. These scripts can be run with -h or
--help to display help information, and with -v or
--verbose to print out the details of the actions performed by the script,
including the full cURL command. For the on-prem version of Agile Service Manager, observer scripts
are configured for specific jobs by editing the script configuration files.