/ci360-direct-iac-aws

IaC template to deploy and configure CI360 Direct in AWS

Primary LanguageHCLApache License 2.0Apache-2.0

FullCloud CI360 Direct IaC

Overview

This project consists of two parts:

  • Terraform template to set up the AWS infrastructure (VPC, subnets, AMIs, Postgres, etc)
  • Automation scripts to configure SAS (update hostnames, update licences, configure DirectAgent, other assets)

Prerequisites

Installation

  • Clone this project to a path without spaces
  • Put your SAS license in ./files/custom-data/license.txt

Config for terraform

  • Put your config ovverrides in ./terraform.tfvars (Available variables are described in ./variables.tf)

Architecture Diagram

architecture diagram

Config for SAS

  • Copy ./files/custom-data/config.txt.example to ./files/custom-data/config.txt and set appropriate config variables

Running

To run both infrasturcture and config

  • Put AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in ./files/tools/run_all.sh
  • Run:
./files/tools/run_all.sh | tee run.log

To run only config

  • set environment variables
    • LIN_IP # SAS server address
    • PG_ADDRESS # Postgres server address
    • PG_PASS # Postgres password
  • postgres user must be 'pgadmin'
  • Make sure your private ssh key is configured for the SAS server
  • Run:
./files/tools/prepare_ci_content.sh | tee prepare_ci_content.log

Contributing

We welcome your contributions! Please read CONTRIBUTING.md for details on how to submit contributions to this project.

License

This project is licensed under the Apache 2.0 License.

Additional Resources

Terraform template based on viya4-iac-aws