Skip to content

Commit fd22e04

Browse files
committed
feat: allowing the user to enable entreprise subscription
1 parent cbd7c84 commit fd22e04

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Diff for: main.tf

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
## Provision enterprise quicksight if enabled
3+
resource "aws_quicksight_account_subscription" "subscription" {
4+
count = var.enable_quicksight_enterprise ? 1 : 0
5+
6+
account_name = var.enterprise_account_name
7+
authentication_method = "IAM_AND_QUICKSIGHT"
8+
edition = "ENTERPRISE"
9+
notification_email = var.enterprise_email
10+
}
11+
212
## Provision a SAML identity provider in the data collection account - this will be
313
## used to authenticate sso users into quicksights
414
resource "aws_iam_saml_provider" "saml" {

Diff for: variables.tf

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ variable "tags" {
44
type = map(string)
55
}
66

7+
variable "enable_quicksight_enterprise" {
8+
description = "Enable QuickSight Enterprise edition"
9+
type = bool
10+
default = false
11+
}
12+
13+
variable "enterprise_email" {
14+
description = "The email address for the QuickSight Enterprise edition"
15+
type = string
16+
default = null
17+
}
18+
19+
variable "enterprise_account_name" {
20+
description = "The account name for the QuickSight Enterprise edition"
21+
type = string
22+
default = null
23+
}
24+
725
variable "stacks_bucket_name" {
826
description = "The name of the bucket to store the CloudFormation templates"
927
type = string

0 commit comments

Comments
 (0)