File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,22 @@ resource "github_repository_environment" "this" {
24
24
}
25
25
}
26
26
27
- resource "github_actions_environment_secret" "this " {
27
+ resource "github_actions_environment_secret" "iam_role " {
28
28
repository = " aws-lambda-opentofu-github-actions"
29
29
30
30
environment = github_repository_environment. this . environment
31
31
secret_name = " AWS_IAM_ROLE"
32
32
plaintext_value = var. aws_iam_role
33
33
}
34
34
35
+ resource "github_actions_environment_secret" "terraform_cloud_token" {
36
+ repository = " aws-lambda-opentofu-github-actions"
37
+
38
+ environment = github_repository_environment. this . environment
39
+ secret_name = " TF_TOKEN_app_terraform_io"
40
+ plaintext_value = var. terraform_cloud_token
41
+ }
42
+
35
43
resource "github_actions_environment_variable" "this" {
36
44
repository = " aws-lambda-opentofu-github-actions"
37
45
environment = var. environment_name
Original file line number Diff line number Diff line change @@ -7,3 +7,10 @@ variable "environment_name" {
7
7
type = string
8
8
nullable = false
9
9
}
10
+
11
+ variable "terraform_cloud_token" {
12
+ type = string
13
+ description = " The token to authenticate with Terraform Cloud"
14
+ sensitive = true
15
+ nullable = false
16
+ }
You can’t perform that action at this time.
0 commit comments