The gitlab_integration_emails_on_push
resource allows to manage the lifecycle of a project integration with Emails on Push Service.
Upstream API: GitLab REST API docs
resource "gitlab_project" "awesome_project" {
name = "awesome_project"
description = "My awesome project."
visibility_level = "public"
}
resource "gitlab_integration_emails_on_push" "emails" {
project = gitlab_project.awesome_project.id
recipients = "myrecipient@example.com myotherrecipient@example.com"
}
project
(String) ID or full-path of the project you want to activate integration on.recipients
(String) Emails separated by whitespace.branches_to_be_notified
(String) Branches to send notifications for. Valid options are all
, default
, protected
, default_and_protected
. Notifications are always fired for tag pushes.disable_diffs
(Boolean) Disable code diffs.push_events
(Boolean) Enable notifications for push events.send_from_committer_email
(Boolean) Send from committer.tag_push_events
(Boolean) Enable notifications for tag push events.active
(Boolean) Whether the integration is active.created_at
(String) The ISO8601 date/time that this integration was activated at in UTC.id
(String) The ID of this resource.slug
(String) The name of the integration in lowercase, shortened to 63 bytes, and with everything except 0-9 and a-z replaced with -. No leading / trailing -. Use in URLs, host names and domain names.title
(String) Title of the integration.updated_at
(String) The ISO8601 date/time that this integration was last updated at in UTC.Import is supported using the following syntax:
# You can import a gitlab_integration_emails_on_push state using the project ID, e.g.
terraform import gitlab_integration_emails_on_push.emails 1