This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
modules/tf-cloud-credential Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- resource "tfe_workspace" "workspace" {
2- name = var. workspace_name_prefix
1+ data "tfe_workspace" "workspace" {
2+ name = var. name_prefix
33 organization = var. organization
44}
Original file line number Diff line number Diff line change 11resource "tfe_variable" "workspace_aws_access_key_id" {
2- workspace_id = tfe_workspace. workspace . id
2+ workspace_id = data . tfe_workspace . workspace . id
33 key = " AWS_ACCESS_KEY_ID"
44 value = var. iam_access_key . id
55 category = " env"
66 sensitive = true
77}
88
99resource "tfe_variable" "workspace_aws_secret_access_key_id" {
10- workspace_id = tfe_workspace. workspace . id
10+ workspace_id = data . tfe_workspace . workspace . id
1111 key = " AWS_SECRET_ACCESS_KEY"
1212 value = var. iam_access_key . secret
1313 category = " env"
1414 sensitive = true
1515}
1616
1717resource "tfe_variable" "workspace_aws_default_region" {
18- workspace_id = tfe_workspace. workspace . id
18+ workspace_id = data . tfe_workspace . workspace . id
1919 key = " AWS_DEFAULT_REGION"
2020 value = var. region
2121 category = " env"
You can’t perform that action at this time.
0 commit comments