· 7 years ago · Apr 27, 2018, 11:56 AM
1terraform {
2 required_version = ">=0.10.6"
3}
4
5provider "rancher" {
6 api_url = "http://144.2xx.xxx.xx:8080"
7 access_key = "F44xxxxxxxxxxxx"
8 secret_key = "MVbxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9
10resource "rancher_environment" "production" {
11 name = "production"
12 description = "Production Environment"
13 orchestration = "kubernetes"
14}
15
16resource "rancher_environment" "staging" {
17 name = "stagin"
18 description = "Stagin Environment"
19 orchestration = "kubernetes"
20}
21
22[rancher@rancheros-iku ~]$ terraform init