File tree Expand file tree Collapse file tree
lambdas/iroco2-cur-analyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ data "aws_ami" "amazon_linux_3" {
3434# name = "${var.namespace}-${var.environment}-bastion-${data.aws_ami.amazon_linux_3.name}-encrypted-temp"
3535# description = "A copy of ${data.aws_ami.amazon_linux_3.description} but encrypted"
3636# source_ami_id = data.aws_ami.amazon_linux_3.id
37- # source_ami_region = data.aws_region.current.name
37+ # source_ami_region = data.aws_region.current.region
3838# encrypted = true
3939# tags = {
4040# image-type = "encrypted-al3-linux"
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ resource "aws_lambda_function" "lambda_function" {
7474 environment {
7575 variables = {
7676 " QUEUE_URL" = aws_sqs_queue.analyzer_sqs_queue.url
77- " REGION" = data.aws_region.current.name
77+ " REGION" = data.aws_region.current.region
7878 }
7979 }
8080
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module "vpc" {
2222
2323 cidr = var. cidr
2424
25- azs = var. azs [data . aws_region . this . name ]
25+ azs = var. azs [data . aws_region . this . region ]
2626 public_subnets = var. public_subnets
2727 public_subnet_names = [for az in var . azs [var . aws_region ] : " ${ var . namespace } -${ var . environment } -public-subnet-${ az } " ]
2828 private_subnets = var. private_subnets
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ locals {
1919 prefix_list_ids = {
2020 vpce_s3 = {
2121 alias = " vpce_s3_prefix_list"
22- name = " com.amazonaws.${ data . aws_region . this . name } .s3"
22+ name = " com.amazonaws.${ data . aws_region . this . region } .s3"
2323 }
2424 }
2525
You can’t perform that action at this time.
0 commit comments