Skip to content

dfds/terraform-grafana-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
aws >= 5.34.0
grafana >= 2.9.0
helm >= 2.14.0
onepassword >= 2.1.0
random 3.6.3

Providers

Name Version
aws.route53 >= 5.34.0
grafana.cloud >= 2.9.0
grafana.stack >= 2.9.0
helm >= 2.14.0
kubernetes n/a
onepassword >= 2.1.0
random 3.6.3

Modules

No modules.

Resources

Name Type
aws_route53_record.this resource
aws_ssm_parameter.grafana_cloud_stack_service_account_token resource
aws_ssm_parameter.grafana_cloud_stack_url resource
aws_ssm_parameter.otlp_endpoint resource
aws_ssm_parameter.otlp_user_name resource
aws_ssm_parameter.prometheus_url resource
aws_ssm_parameter.prometheus_user_id resource
aws_ssm_parameter.read_only resource
aws_ssm_parameter.read_only_multi_stack resource
aws_ssm_parameter.rules_management resource
aws_ssm_parameter.sm_access_token resource
aws_ssm_parameter.sm_api_url resource
aws_ssm_parameter.write_only resource
grafana_cloud_access_policy.read_only resource
grafana_cloud_access_policy.read_only_multi_stack resource
grafana_cloud_access_policy.rules_management resource
grafana_cloud_access_policy.this resource
grafana_cloud_access_policy.write_only resource
grafana_cloud_access_policy_token.read_only resource
grafana_cloud_access_policy_token.read_only_multi_stack resource
grafana_cloud_access_policy_token.rules_management resource
grafana_cloud_access_policy_token.this resource
grafana_cloud_access_policy_token.write_only resource
grafana_cloud_plugin_installation.this resource
grafana_cloud_stack.this resource
grafana_cloud_stack_service_account.editor resource
grafana_cloud_stack_service_account.this resource
grafana_cloud_stack_service_account_token.editor resource
grafana_cloud_stack_service_account_token.this resource
grafana_role_assignment_item.editor resource
grafana_role_assignment_item.this resource
grafana_sso_settings.this resource
grafana_synthetic_monitoring_installation.this resource
grafana_team.this resource
helm_release.otel_collector resource
kubernetes_manifest.ingress_route resource
kubernetes_manifest.middleware resource
onepassword_item.stack_vault_item resource
random_password.collector_token resource
aws_route53_zone.this data source
grafana_cloud_stack.this data source
grafana_role.this data source

Inputs

Name Description Type Default Required
create_read_only_token Whether to create a read-only token bool false no
create_rules_management_token Whether to create a rules management token bool false no
create_write_only_token Whether to create a write-only token bool false no
deploy_otel_agent_k8s Whether to deploy the OpenTelemetry agent into a Kubernetes cluster bool false no
enable_collector_for_external_access Whether to enable external access to the OpenTelemetry agent from outside the Kubernetes cluster bool false no
enable_sso_saml Enable SSO SAML bool false no
grafana_folders List of grafana folders to be created list(string) [] no
hosted_zone_name Name of the hosted zone to contain the route53 record. If unspecified no route53 record is created. string null no
install_synthetic_monitoring Whether to install synthetic monitoring bool n/a yes
onepassword_vault_id The ID of the vault to store the stack information in string n/a yes
otel_collector_chart_version Version of the Open Telemetry collector helm chart to deploy string null no
otel_collector_namespace Namespace to deploy the OpenTelemetry agent into string "grafana" no
plugins List of plugins
list(object({
plugin = string
version = string
}))
[] no
region_slug Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region string null no
route53_record_name Name of the route53 record string null no
service_account_editor_permissions List of permissions for the service account for stack editors list(string) n/a yes
slug Subdomain that the Grafana instance will be available at (i.e. setting slug to empty string will make the instance available at https://.grafana.net string null no
sso_saml_assertion_attribute_role The attribute to use for role mapping string "" no
sso_saml_certificate Base64-encoded certificate string "" no
sso_saml_idp_metadata_url The URL to the IDP metadata string "" no
sso_saml_private_key Base64-encoded private key string "" no
sso_saml_role_values_admin List of comma- or space-separated roles which will be mapped into the Admin role used in the saml response string "" no
sso_saml_role_values_editor List of comma- or space-separated roles which will be mapped into the Viewer role used in the saml response string "" no
sso_saml_role_values_viewer List of comma- or space-separated roles which will be mapped into the Viewer role used in the saml response string "" no
stack_description Description of stack string null no
stack_labels Map of labels to apply to the stack map(string) {} no
stack_name Name of stack string null no
stacks_for_multi_stack_querying List of stacks to create access token for multiple stacks list(string) [] no
teams List of teams to create with the groups and permissions
list(object({
name = string
groups = list(string)
permissions = list(string)
}))
[] no
url Custom URL for the Grafana instance. Should not be specified when passing hosted_zone_name string null no

Outputs

Name Description
grafana_url n/a
read_only_multi_stack_token n/a
stack_logs_url n/a
stack_otlp_id n/a
stack_otlp_url n/a
stack_prometheus_url n/a
stack_slug n/a
stack_traces_url n/a
terraform_sa_token n/a
write_only_token n/a