Skip to content

Commit f567c68

Browse files
committedFeb 24, 2025·
update docs
1 parent d24a813 commit f567c68

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed
 

‎content/docs/deploy/enterprise/configure-terraform.md

+28-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ keywords:
1515

1616
# Configure with Terraform
1717

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
1924

2025
## Provider Configuration
2126

@@ -39,9 +44,9 @@ provider "pomerium" {
3944

4045
## Authentication Methods
4146

42-
The provider supports two authentication methods:
47+
The provider supports one of the two authentication methods:
4348

44-
### 1. Service Account Token (Recommended)
49+
### 1. Service Account Token
4550

4651
This method uses a [Pomerium Enterprise Service Account](/docs/capabilities/service-accounts) and provides fine-grained access control at the namespace level:
4752

@@ -52,9 +57,18 @@ provider "pomerium" {
5257
}
5358
```
5459

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+
5569
### 2. Bootstrap Service Account
5670
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.
5872
5973
```hcl
6074
provider "pomerium" {
@@ -63,6 +77,15 @@ provider "pomerium" {
6377
}
6478
```
6579

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+
6689
:::warning
6790
6891
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
103126
## Next Steps
104127

105128
- [Provider Documentation](https://registry.terraform.io/providers/pomerium/pomerium/latest/docs)
106-
- [Example Configurations](https://github.com/pomerium/enterprise-terraform-provider/tree/main/examples)
129+
- [Example Configurations](https://github.com/pomerium/enterprise-terraform-provider/tree/main/example)
107130
- [Enterprise API Reference](/docs/internals/management-api-enterprise)
108131
- [Service Accounts](/docs/capabilities/service-accounts)

0 commit comments

Comments
 (0)
Please sign in to comment.