Skip to content

Commit

Permalink
Creating secret to store gateway registration information.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Jan 11, 2024
1 parent a16dc0c commit 3d447c6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
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"
}

0 comments on commit 3d447c6

Please sign in to comment.