You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/docs/deploy/enterprise/configure-terraform.md
+28-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,12 @@ keywords:
15
15
16
16
# Configure with Terraform
17
17
18
-
Pomerium Enterprise can be configured and managed using Terraform through our official provider. This enables you to manage your Pomerium Enterprise resources as infrastructure as code, making it easier to version, review, and automate your configuration changes.
18
+
Pomerium Enterprise can be configured and managed using Terraform through the [official Pomerium provider](https://registry.terraform.io/providers/pomerium/pomerium/latest/docs). This enables you to manage your Pomerium Enterprise resources as infrastructure as code, making it easier to version, review, and automate your configuration changes.
19
+
20
+
## Prerequisites
21
+
22
+
- Pomerium Enterprise must be running first
23
+
- Console API must be accessible
19
24
20
25
## Provider Configuration
21
26
@@ -39,9 +44,9 @@ provider "pomerium" {
39
44
40
45
## Authentication Methods
41
46
42
-
The provider supports two authentication methods:
47
+
The provider supports one of the two authentication methods:
43
48
44
-
### 1. Service Account Token (Recommended)
49
+
### 1. Service Account Token
45
50
46
51
This method uses a [Pomerium Enterprise Service Account](/docs/capabilities/service-accounts) and provides fine-grained access control at the namespace level:
47
52
@@ -52,9 +57,18 @@ provider "pomerium" {
52
57
}
53
58
```
54
59
60
+
The Pomerium API route should authorize the relative pomerium service account access:
61
+
62
+
```yaml
63
+
- allow:
64
+
or:
65
+
- user:
66
+
is: 'bootstrap-014e587b-3f4b-4fcf-90a9-f6ecdf8154af.pomerium'
67
+
```
68
+
55
69
### 2. Bootstrap Service Account
56
70
57
-
This method requires enabling bootstrap service accounts in your Enterprise Console:
71
+
This method requires enabling bootstrap service accounts in your Enterprise Console. It may be used if you wish to configure Pomerium Enterprise part of the installation process, without accessing its UI to create a new service account.
58
72
59
73
```hcl
60
74
provider "pomerium" {
@@ -63,6 +77,15 @@ provider "pomerium" {
63
77
}
64
78
```
65
79
80
+
The Pomerium API route should have the following policy, with the special bootstrap service account user ID.
81
+
82
+
```yaml
83
+
- allow:
84
+
or:
85
+
- user:
86
+
is: 'bootstrap-014e587b-3f4b-4fcf-90a9-f6ecdf8154af.pomerium'
87
+
```
88
+
66
89
:::warning
67
90
68
91
The Bootstrap Service Account method requires setting `BOOTSTRAP_SERVICE_ACCOUNT=true` in your Enterprise Console configuration.
@@ -103,6 +126,6 @@ The Bootstrap Service Account method requires setting `BOOTSTRAP_SERVICE_ACCOUNT
0 commit comments