File tree Expand file tree Collapse file tree
schedule_workflow_autocreate_sa Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,25 +47,17 @@ module "cloud_workflow" {
4747 # This is a sample workflow, feel free to replace it with your source code
4848 #
4949 # This workflow does the following:
50- # - reads current time and date information from an external API and stores
51- # the response in CurrentDateTime variable
52- # - retrieves a list of Wikipedia articles related to the day of the week
53- # from CurrentDateTime
50+ # - retrieves a list of Wikipedia articles related to GoogleCloudPlatform
5451 # - returns the list of articles as an output of the workflow
5552 # FYI, In terraform you need to escape the $$ or it will cause errors.
5653
57- - getCurrentTime:
58- call: http.get
59- args:
60- url: https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam
61- result: CurrentDateTime
6254 - readWikipedia:
6355 call: http.get
6456 args:
6557 url: https://en.wikipedia.org/w/api.php
6658 query:
6759 action: opensearch
68- search: $${CurrentDateTime.body.dayOfWeek}
60+ search: GoogleCloudPlatform
6961 result: WikiResult
7062 - returnOutput:
7163 return: $${WikiResult.body[1]}
Original file line number Diff line number Diff line change @@ -38,25 +38,17 @@ module "cloud_workflow" {
3838 # This is a sample workflow, feel free to replace it with your source code
3939 #
4040 # This workflow does the following:
41- # - reads current time and date information from an external API and stores
42- # the response in CurrentDateTime variable
43- # - retrieves a list of Wikipedia articles related to the day of the week
44- # from CurrentDateTime
41+ # - retrieves a list of Wikipedia articles related to GoogleCloudPlatform
4542 # - returns the list of articles as an output of the workflow
4643 # FYI, In terraform you need to escape the $$ or it will cause errors.
4744
48- - getCurrentTime:
49- call: http.get
50- args:
51- url: https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam
52- result: CurrentDateTime
5345 - readWikipedia:
5446 call: http.get
5547 args:
5648 url: https://en.wikipedia.org/w/api.php
5749 query:
5850 action: opensearch
59- search: $${CurrentDateTime.body.dayOfWeek}
51+ search: GoogleCloudPlatform
6052 result: WikiResult
6153 - returnOutput:
6254 return: $${WikiResult.body[1]}
You can’t perform that action at this time.
0 commit comments