A quick start for a Express to get a simple sidecar online quickly!
An install command can be generated on the sidecar deployment page.
Learn more in the Sidecar Deployment page.
The above command will work on just about any system, but you can follow the below directions to create a new instance for the sidecar.
AWS EC2
- Go to EC2 Service
- Select Launch Instance and provide the following info
- Name: Provide something meaningful like CyralSidecar
- Amazon Machine Image (AMI): The default Amazon Linux image and options are fine, but most linux based images should work
- Instance Type: Our recommended flavor is M5.large, but a T3 or T2 large will work well for a express install as well
- Key Pair: Select or create one
- Network Settings: Utilize the Edit button on the section header to create a new Security Group for this express install
- Make sure Create Security Group is selected
- Security Group Name: Provide a useful name like cyral-sidecar-express
- Description: This is required so provide a description
- Inbound Security Rules:
- ssh - This rule should already exist, but review the Source Type and Source to make sure its appropriate for your environment
- Add Security Group Rule: One per DB type you'd like to test
- Type: Custom TCP
- Port Range: This is the port or range of ports where database clients will connect to this database through the Cyral sidecar
- Source Type / Source: Provide approrpriate values that will allow your database clients to connect to this port
- Launch Instance!
- SSH to the new instance and install the sidecar with the above command
Azure VM
- Go to Virtaual Machines
- Select Create -> Azure virtual Machine
- Required fields outlined below
- Image: Ubuntu Server 20.04 is the optimal option, however other linux based images should work well too
- Size: A typical express install should work well with a Standard_D2s_v3 (2 cpu/8gb)
- Inbound Ports: you'll want to provide ssh access as well as the approrpiate DB ports you'll want the clients to connect to
- Configure network as needed so both the client has access to the instance, and the instance has access to the DB
- Create Instance!
- SSH to the new instance and install the sidecar with the above command
The following command can be used to invoke the script and is what is provided by the Express Install Command
CLIENT_ID=<client id> \
CLIENT_SECRET=<client secret> \
SIDECAR_ID=<sidecar id> \
CONTROL_PLANE=<control plane host> \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/cyral-quickstart/quickstart-sidecar-express/main/install-sidecar.sh)"| Name | Description |
|---|---|
CLIENT_ID |
Sidecar credentials |
CLIENT_SECRET |
Sidecar credentials |
CONTROL_PLANE |
URL of the control plane |
SIDECAR_ID |
Sidecar ID to use |
| Name | Description |
|---|---|
SIDECAR_VERSION |
Version to use for the sidecar (required below version v4.10) |
CONTAINER_REGISTRY |
Where to pull images from |
REGISTRY_KEY |
Base64 encoded docker login credentials |
ENV_FILE_PATH |
Environment variable file to use |
ENDPOINT |
Address to advertise to the CP for configuration |
IMAGE_PATH |
Will override the image used (path/image/tag). Typicaly used for local development |
LOG_DRIVER |
This controls the docker logging driver. default: local |
LOG_OPT |
Additional logging driver options provided as space delimited options. default: max-size=500m |
Instructions for advanced deployment configurations are available for the following topics: