ec2

package
v0.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Amazon EC2/ Linux Server

Introduction

  • The Postman Live Collection Agent (LCA) runs as a systemd service on your server
  • The Postman collection is populated with endpoints observed from the traffic arriving at your service.

Prerequisites

  • Your server's OS supports systemd
  • root user

Usage

  • Log in as root user, or use sudo su to enable root before running the below command
POSTMAN_API_KEY=<postman-api-key> postman-lc-agent setup --collection <postman-collectionID>

To check the status or logs please use

journalctl -fu postman-lc-agent

Why is root required?

  • To enable and configure the agent as a systemd services
  • Env Configuration file location /etc/default/postman-lc-agent
  • Systemd service file location /usr/lib/systemd/system/postman-lc-agent.service

Uninstall

  • You can disable the systemd service using

sudo systemctl disable --now postman-lc-agent

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:          "setup",
	Short:        "Add the Postman Live Collections Agent to the current server.",
	Long:         "The CLI will add the Postman Live Collections Agent as a systemd service to your current server.",
	SilenceUsage: true,
	RunE:         addAgentToEC2,
}
View Source
var RemoveFromEC2Cmd = &cobra.Command{
	Use:          "remove",
	Short:        "Remove the Postman Live Collections Agent from EC2.",
	Long:         "Remove a previously installed Postman agent from an EC2 server.",
	SilenceUsage: true,
	RunE:         removeAgentFromEC2,

	Hidden: true,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL