Skip to content

Conversation

@jtyr
Copy link
Contributor

@jtyr jtyr commented Nov 17, 2020

This PR is adding an extra input called trigger_http which allows to create a function which is triggered by any HTTP request. This makes the previously required input event_trigger optional as only one of them can be used at a time.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! We may need to set it trigger_http to null as CI given an error which I suspect is due to trigger_http = false and event_trigger block being present.

       module.automatic_labelling_from_localhost.module.event_project_log_entry.google_pubsub_topic_iam_member.main: Creating...
       module.automatic_labelling_from_localhost.module.event_project_log_entry.google_pubsub_topic_iam_member.main: Creation complete after 4s [id=projects/ci-event-function-9402/topics/infinite-alpaca/roles/pubsub.publisher/serviceaccount:p771980061706-101280@gcp-sa-logging.iam.gserviceaccount.com]
       
       Error: ConflictsWith
       
         on ../../../main.tf line 70, in resource "google_cloudfunctions_function" "main":
         70: resource "google_cloudfunctions_function" "main" {
       
       "event_trigger": conflicts with trigger_http
       

@jtyr
Copy link
Contributor Author

jtyr commented Nov 25, 2020

Sorry for the delay. I have modify the code as you requested. Please review it and let me know if there is something else needed.

@jtyr jtyr requested a review from bharathkkb December 11, 2020 15:21
@jtyr jtyr force-pushed the jtyr-trigger_http branch from b731b23 to dd135ae Compare December 11, 2020 15:25
@jtyr
Copy link
Contributor Author

jtyr commented Jan 15, 2021

@bharathkkb please could you review this?

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@bharathkkb
Copy link
Member

/gcbrun

@comment-bot-dev
Copy link

comment-bot-dev commented Mar 19, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

@jtyr jtyr force-pushed the jtyr-trigger_http branch from dd135ae to 363f1fb Compare March 20, 2021 02:43
@jtyr
Copy link
Contributor Author

jtyr commented Mar 20, 2021

@bharathkkb Please review the PR.

@bharathkkb
Copy link
Member

Thanks @jtyr and apologies for missing this earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants