File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed
examples/automatic-labelling-from-repository Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ resource "null_resource" "configure_repository" {
39
39
}
40
40
}
41
41
42
- data "null_data_source" "main" {
43
- inputs = {
44
- source_repository_url = " https://source.developers.google.com/projects/${ var . project_id } /repos/${ random_pet . main . id } /moveable-aliases/master/paths/"
45
- }
46
-
47
- depends_on = [null_resource. configure_repository ]
48
- }
49
-
50
42
module "event_project_log_entry" {
51
43
source = " ../../modules/event-project-log-entry"
52
44
@@ -71,11 +63,12 @@ module "repository_function" {
71
63
name = random_pet. main . id
72
64
project_id = var. project_id
73
65
region = var. region
74
- source_repository_url = data . n ull_data_source . main . outputs [ " source_repository_url " ]
66
+ source_repository_url = " https://source.developers.google.com/projects/ ${ var . project_id } /repos/ ${ random_pet . main . id } /moveable-aliases/master/paths/ "
75
67
76
68
timeouts = {
77
69
update = " 10m"
78
70
}
71
+ depends_on = [null_resource. configure_repository ]
79
72
}
80
73
81
74
resource "null_resource" "wait_for_function" {
Original file line number Diff line number Diff line change @@ -39,23 +39,13 @@ resource "null_resource" "dependent_files" {
39
39
}
40
40
}
41
41
42
- data "null_data_source" "wait_for_files" {
43
- inputs = {
44
- # This ensures that this data resource will not be evaluated until
45
- # after the null_resource has been created.
46
- dependent_files_id = null_resource.dependent_files.id
47
-
48
- # This value gives us something to implicitly depend on
49
- # in the archive_file below.
50
- source_dir = pathexpand (var. source_directory )
51
- }
52
- }
53
-
54
42
data "archive_file" "main" {
55
43
type = " zip"
56
44
output_path = pathexpand (" ${ var . source_directory } .zip" )
57
- source_dir = data . n ull_data_source . wait_for_files . outputs [ " source_dir " ]
45
+ source_dir = pathexpand (var . source_directory )
58
46
excludes = var. files_to_exclude_in_source_dir
47
+
48
+ depends_on = [null_resource. dependent_files ]
59
49
}
60
50
61
51
You can’t perform that action at this time.
0 commit comments