-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.tf
More file actions
25 lines (22 loc) · 869 Bytes
/
main.tf
File metadata and controls
25 lines (22 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
provider "cloudca" {
api_key = "${var.api_key}"
}
resource "cloudca_environment" "default" {
service_code = "${var.service_code}"
organization_code = "${var.organization_code}"
name = "${var.environment_name}"
description = "${format("${var.environment_description}", "${var.environment_name}")}"
admin_role = ["${var.admin}"]
read_only_role = ["${var.read_only}"]
}
resource "cloudca_vpc" "default" {
environment_id = "${cloudca_environment.default.id}"
name = "${var.environment_name}"
description = "${format("${var.vpc_description}", "${var.environment_name}")}"
vpc_offering = "${var.vpc_offering}"
zone = "${var.zone_id}"
}
resource "cloudca_public_ip" "public_endpoint" {
environment_id = "${cloudca_environment.default.id}"
vpc_id = "${cloudca_vpc.default.id}"
}