-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathprovider.tf
More file actions
39 lines (37 loc) · 1.18 KB
/
Copy pathprovider.tf
File metadata and controls
39 lines (37 loc) · 1.18 KB
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
terraform {
backend "s3" {
bucket = "tofu"
region = "us-east-1"
key = "oci.tfstate"
endpoint = "https://s3.mafyuh.xyz"
skip_region_validation = true
skip_credentials_validation = true
skip_requesting_account_id = true
use_path_style = true
skip_s3_checksum = true
skip_metadata_api_check = true
}
required_providers {
oci = {
source = "oracle/oci"
version = "8.15.0"
}
bitwarden-secrets = {
source = "bitwarden/bitwarden-secrets"
version = "1.0.0"
}
}
}
provider "oci" {
tenancy_ocid = data.bitwarden-secrets_secret.tenancy_ocid.value
user_ocid = data.bitwarden-secrets_secret.user_ocid.value
private_key = data.bitwarden-secrets_secret.oci_private_key.value
fingerprint = data.bitwarden-secrets_secret.fingerprint.value
region = "us-ashburn-1"
}
provider "bitwarden-secrets" {
access_token = var.access_token
organization_id = "305f1e91-cd2b-411c-8acf-b1a3004a82b2"
api_url = "https://api.bitwarden.com"
identity_url = "https://identity.bitwarden.com"
}