Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPAT: Updating PowerBI Gateway AMI #4509

Merged
merged 3 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ locals {
powerbi_gateway_ec2 = {
instance_name = "dpat-${local.environment}-powerbi"
most_recent = true
name = ["Windows_Server-2022-English-Core-Base-*"]
name = ["Windows_Server-2022-English-Full-Base-*"]
virtualization_type = "hvm"
owner_account = "801119661308" # amazon
instance_type = "t3a.xlarge" # 4vCPU, 16G RAM
Expand Down Expand Up @@ -156,7 +156,7 @@ locals {
powerbi_gateway_ec2 = {
instance_name = "dpat-${local.environment}-powerbi"
most_recent = true
name = ["Windows_Server-2022-English-Core-Base-*"]
name = ["Windows_Server-2022-English-Full-Base-*"]
virtualization_type = "hvm"
owner_account = "801119661308" # amazon
instance_type = "t3a.xlarge" # 4vCPU, 16G RAM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ data "aws_iam_policy_document" "powerbi_gateway_data_access" {
]
resources = formatlist("arn:aws:iam::%s:role/alpha_*", local.environment_configuration.powerbi_target_accounts)
}

statement {
sid = "AccessPowerBIGatewayCredentials"

actions = [
"secretsmanager:GetSecretValue",
"secretsmanager:DescribeSecret"
]
resources = [
aws_secretsmanager_secret.powerbi_gateway_reg_credentials.arn
]
}
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "aws_secretsmanager_secret" "powerbi_gateway_reg_credentials" {
name = "${local.environment_configuration.powerbi_gateway_ec2.instance_name}-credentials"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "powerbi_gateway" {
monitoring = true
create_iam_instance_profile = true
iam_role_description = "IAM role for PowerBI Gateway Instance"
ignore_ami_changes = true
ignore_ami_changes = false
enable_volume_tags = false
associate_public_ip_address = false
iam_role_policies = {
Expand Down