Here is an example to setup team, team users, project, project environment and a snapshot.
terraform {
required_providers {
lynx = {
source = "Clivern/lynx"
version = "0.3.0"
}
}
}
provider "lynx" {
api_url = "http://localhost:4000/api/v1"
api_key = "~api key here~"
}
resource "lynx_user" "stella" {
name = "Stella"
email = "[email protected]"
role = "regular"
password = "~password-here~"
}
resource "lynx_user" "skylar" {
name = "Skylar"
email = "[email protected]"
role = "regular"
password = "~password-here~"
}
resource "lynx_user" "erika" {
name = "Erika"
email = "[email protected]"
role = "regular"
password = "~password-here~"
}
resource "lynx_user" "adriana" {
name = "Adriana"
email = "[email protected]"
role = "regular"
password = "~password-here~"
}
resource "lynx_team" "monitoring" {
name = "Monitoring"
slug = "monitoring"
description = "System Monitoring Team"
members = [
lynx_user.stella.id,
lynx_user.skylar.id,
lynx_user.erika.id,
lynx_user.adriana.id
]
}
resource "lynx_project" "grafana" {
name = "Grafana"
slug = "grafana"
description = "Grafana Project"
team = {
id = lynx_team.monitoring.id
}
}
resource "lynx_environment" "prod" {
name = "Development"
slug = "dev"
username = "~username-here~"
secret = "~secret-here~"
project = {
id = lynx_project.grafana.id
}
}
resource "lynx_snapshot" "my_snapshot" {
title = "Grafana Project Snapshot"
description = "Grafana Project Snapshot"
record_type = "project"
record_id = lynx_project.grafana.id
team = {
id = lynx_team.monitoring.id
}
}
For transparency into our release cycle and in striving to maintain backward compatibility, terraform-provider-lynx
is maintained under the Semantic Versioning guidelines and release process is predictable and business-friendly.
See the Releases section of our GitHub project for changelogs for each release version of terraform-provider-lynx
. It contains summaries of the most noteworthy changes made in each release. Also see the Milestones section for the future roadmap.
If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/terraform-provider-lynx/issues
If you discover a security vulnerability within terraform-provider-lynx
, please send an email to [email protected]
We are an open source, community-driven project so please feel free to join us. see the contributing guidelines for more details.
© 2023, Clivern. Released under MIT License.
terraform-provider-lynx is authored and maintained by @clivern.