-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcvo_aws.tf
56 lines (52 loc) · 1.59 KB
/
cvo_aws.tf
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
terraform {
required_providers {
netapp-cloudmanager = {
source = "NetApp/netapp-cloudmanager"
version = "23.1.1"
}
}
}
provider "netapp-cloudmanager" {
refresh_token = var.cloudmanager_refresh_token
sa_secret_key = var.cloudmanager_sa_secret_key
sa_client_id = var.cloudmanager_sa_client_id
}
resource "netapp-cloudmanager_connector_aws" "cl-occm-aws" {
provider = netapp-cloudmanager
name = "OCM"
region = "eu-central-1"
key_name = var.ssh_key_name
company = "HashiCorp"
instance_type = "t3.xlarge"
aws_tag {
tag_key = "cloud-manager-connector-aws"
}
subnet_id = aws_subnet.vault_subnet.id
security_group_id = aws_security_group.vault_sg.id
iam_instance_profile_name = "AdminAccess"
account_id = "account-8MEUiBUe"
}
resource "netapp-cloudmanager_cvo_aws" "cvo-aws" {
provider = netapp-cloudmanager
name = "svm_client"
region = "eu-central-1"
subnet_id = aws_subnet.vault_subnet.id
vpc_id = aws_vpc.vault_vpc.id
security_group_id = aws_security_group.vault_sg.id
aws_tag {
tag_key = "kmip"
tag_value = "test"
}
aws_tag {
tag_key = "kmip"
tag_value = "test"
}
cluster_key_pair_name = var.ssh_key_name
svm_password = "password1234"
client_id = netapp-cloudmanager_connector_aws.cl-occm-aws.client_id
writing_speed_state = "NORMAL"
capacity_package_name = "Freemium"
instance_type = "m5.xlarge"
ebs_volume_size = "500"
ebs_volume_size_unit = "GB"
}