We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8679cf commit 6318b88Copy full SHA for 6318b88
terraform/envs/prod/main.tf
@@ -1,8 +1,10 @@
1
data "aws_caller_identity" "current" {}
2
+data "aws_region" "current" {}
3
+
4
locals {
- account_id = data.aws_caller_identity.current.account_id
5
+ bucket_prefix = "${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}"
6
+ account_id = data.aws_caller_identity.current.account_id
7
}
-
8
terraform {
9
required_providers {
10
aws = {
@@ -30,12 +32,6 @@ provider "aws" {
30
32
31
33
34
-data "aws_caller_identity" "current" {}
-data "aws_region" "current" {}
35
36
-locals {
37
- bucket_prefix = "${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}"
38
-}
39
import {
40
to = aws_cloudwatch_log_group.main_app_logs
41
id = "/aws/lambda/${var.ProjectId}-lambda"
0 commit comments