-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
48 lines (44 loc) · 1.1 KB
/
main.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
terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.38"
}
}
}
# Configure the GitHub Provider
provider "github" {
# app_auth {
# id = "371766"
# installation_id = "40392571"
# pem_file = file("~/Downloads/steelecosystems.2023-09-24.private-key.pem")
# }
owner = "SteelecoSystems"
}
resource "github_actions_variable" "test-variable" {
repository = "tf-test"
value = "hello world"
variable_name = "TEST_VARIABLE"
}
resource "github_actions_variable" "test-variable-2" {
repository = "tf-test"
value = "hello world"
variable_name = "TEST_VARIABLE_2"
}
#resource "github_actions_secret" "test_secret" {
# secret_name = "SECRET_NAME"
# plaintext_value = "SECRET_${var.secret_name}"
# repository = "tf-test"
#}
#
#resource "github_actions_secret" "test_secret_2" {
# secret_name = "SECRET_${var.secret_name}"
# plaintext_value = "SECRET_${var.secret_name}"
# repository = "tf-test"
#}
#
#variable "secret_name" {
# description = "The secret name"
# type = string
# sensitive = true
#}