Skip to content

Commit 6318b88

Browse files
committed
fix
1 parent c8679cf commit 6318b88

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

terraform/envs/prod/main.tf

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
data "aws_caller_identity" "current" {}
2+
data "aws_region" "current" {}
3+
24
locals {
3-
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
47
}
5-
68
terraform {
79
required_providers {
810
aws = {
@@ -30,12 +32,6 @@ provider "aws" {
3032
}
3133
}
3234

33-
data "aws_caller_identity" "current" {}
34-
data "aws_region" "current" {}
35-
36-
locals {
37-
bucket_prefix = "${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}"
38-
}
3935
import {
4036
to = aws_cloudwatch_log_group.main_app_logs
4137
id = "/aws/lambda/${var.ProjectId}-lambda"

0 commit comments

Comments
 (0)