Skip to content

Repository files navigation

Terraform Provider for Flashduty

TestsTerraform RegistryGo Report CardLicense: MPL 2.0

English | 中文

The Flashduty Terraform provider allows you to manage Flashduty resources as infrastructure-as-code using Terraform.

Supported Resources

Resources

ResourceDescription
flashduty_teamManage teams
flashduty_member_inviteInvite members to the account
flashduty_channelManage collaboration spaces with alert grouping and flap detection
flashduty_scheduleConfigure on-call schedules with rotation rules
flashduty_incidentCreate and manage incidents programmatically
flashduty_escalate_ruleDefine alert escalation rules with layered notification
flashduty_silence_ruleConfigure alert silence rules during maintenance
flashduty_inhibit_ruleSet up alert inhibition based on conditions
flashduty_fieldDefine custom metadata fields for incidents
flashduty_routeConfigure alert routing for shared integrations
flashduty_templateManage notification templates across channels
flashduty_alert_pipelineDefine alert processing pipeline rules (transform, drop, inhibit)

Data Sources

Data SourceDescription
flashduty_team / flashduty_teamsLook up teams
flashduty_channel / flashduty_channelsLook up channels
flashduty_member / flashduty_membersLook up members
flashduty_field / flashduty_fieldsLook up custom fields
flashduty_route / flashduty_route_historyLook up routing rules and change history
flashduty_template / flashduty_templatesLook up notification templates
flashduty_alert_pipelineLook up alert pipeline rules

Requirements

  • Terraform >= 1.0
  • Go >= 1.25.5 (only for building the provider)

Quick Start

Configure the provider with your Flashduty APP key:

terraform {
required_providers {
flashduty={
source ="flashcatcloud/flashduty"
version ="~> 0.1"
}
}
}
provider"flashduty" {
app_key="your-app-key"
}

Or set the FLASHDUTY_APP_KEY environment variable:

export FLASHDUTY_APP_KEY="your-app-key"

Example: Create a Team and Invite a Member

resource"flashduty_team""engineering" {
team_name="Engineering"description="Engineering team"
}
resource"flashduty_member_invite""example" {
email="user@example.com"member_name="Example User"
}

Documentation

Full documentation is available on the Terraform Registry.

You can also browse the docs locally:

Developing the Provider

See CONTRIBUTING.md for full development guidelines.

# Build
go build -o terraform-provider-flashduty
# Run testsexport FLASHDUTY_APP_KEY="your-app-key"
make testacc
# Generate/update documentation
make generate

Contributing

Contributions are welcome! Please read our Contributing Guide before submitting a pull request.

Security

To report a security vulnerability, please see SECURITY.md. Do not open a public issue.

License

This project is licensed under the Mozilla Public License 2.0.

About

This project is the official terraform provider for flashcat.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages