Skip to content

Conversation

@ltellesfl
Copy link
Contributor

No description provided.

environment = var.load_environment == "" ? local.environment : lower(var.load_environment)
lambda_sns_forwarder_enabled = var.lambda_sns_forwarder_enabled
lambda_sns_forwarder_iam_principal_arn = local.environment_lambda_sns_forwarder_iam_principal_arn
aws_access_key = var.aws_access_key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these being passed in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vault aws integration requires to setup aws credentials for the account

}
}
provisioner "local-exec" {
command = "./vault write auth/aws/${local.account_region_name}/config/client secret_key=${var.aws_secret_key} access_key=${var.aws_access_key}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm very uncomfortable with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants