Installation
Before you begin
REST API gateway
To monitor the REST API gateway, complete the following:
Navigate to the
console.aws.amazon.com/apigateway/.Select the API and then select the stage.
Navigate to Logs/tracing.
Select
Error and info logsfromCloudwatch Logsdrop-down list.Toggle
Custom Access Loggingto on, provide a log group arn for exporting the logs underAccess log destination ARNand append the following JSON inLog Format:
{
"requestId": "$context.requestId",
"ip": "$context.identity.sourceIp",
"httpMethod": "$context.httpMethod",
"path": "$context.path",
"status": "$context.status",
"responseLength": "$context.responseLength",
"domainName": "$context.domainName"
}HTTP API gateway
To monitor the HTTP API gateway, enable access logging and append the JSON mentioned above in the Log Format.
Configure AWS
Configure AWS in your shell and verify that the region is set correctly. Enter the following command to set up your AWS CLI installation:
The following example shows sample values. Replace them with your values to configure the credentials correctly.
For more information on the credentials file, see Configuration and credential file settings.
If you have configured named AWS profiles, export the environment variable AWS_PROFILE=myprofile where the profile named myprofile has the credentials that you wish to use to deploy the Traceable mirroring resources.
Finally, run the following command and verify that the AWS region is set to the region where you wish to install Traceable:
Alternatively, you can configure the following environment variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION or AWS_DEFAULT_REGION
AWS_DEFAULT_OUTPUT
For more configuration information, see AWS documentation.
Multiple Accounts
A single AWS API Gateway account can support multiple accounts across different regions. However, each region within an account must be configured separately. This setup requires establishing cross-account IAM roles in each account, allowing the host account to authenticate and access the necessary resources. An IAM role can be created using the linked CloudFormation template. It takes a parameter account_id, in which the id of the account from which the monitoring is to be done is passed.
Deployment
Deployment via Console
Download the template tarball and untar it. The latest version of the template can be found in Traceable's Downloads site.
Search for CloudFormation in your AWS console and click CloudFormation.
Click on Create Stack.
In the Prerequisite—Prepare template section, Choose an existing template; in the Specify template section, select Upload a template file.
Specify a stack name and configure the various template file values.
Add tags, select rollback options, and configure additional settings as needed.
Review the settings and create the stack. Monitor the progress and ensure the stack is created successfully.
Deployment via CLI
Download the template tarball and untar it. The latest version of the template can be found in Traceable's Downloads site.
Create a parameters override json file with parameters that you want to override in the template. The json is of the format
A complete sample parameter file can be found here.
Run the following command to create the stack
Last updated
Was this helpful?