@@ -24,7 +24,7 @@ provider "aws" {
2424
2525# Local variables
2626locals {
27- function_name = " hello-world-managed-instances-tf"
27+ function_name = " hello-world-managed-instances-tf"
2828 log_group_name = " /demo/lambda/${ local . function_name } "
2929}
3030
@@ -43,7 +43,7 @@ data "archive_file" "lambda_zip" {
4343resource "aws_cloudwatch_log_group" "demo_log_group" {
4444 name = local. log_group_name
4545 retention_in_days = 14
46-
46+
4747 tags = {
4848 Name = " DemoLogGroup"
4949 Environment = " demo"
@@ -179,7 +179,7 @@ data "aws_availability_zones" "available" {
179179
180180# Elastic IPs for NAT Gateways
181181resource "aws_eip" "nat_eip_1" {
182- domain = " vpc"
182+ domain = " vpc"
183183 depends_on = [aws_internet_gateway . igw ]
184184
185185 tags = {
@@ -189,7 +189,7 @@ resource "aws_eip" "nat_eip_1" {
189189}
190190
191191resource "aws_eip" "nat_eip_2" {
192- domain = " vpc"
192+ domain = " vpc"
193193 depends_on = [aws_internet_gateway . igw ]
194194
195195 tags = {
@@ -199,7 +199,7 @@ resource "aws_eip" "nat_eip_2" {
199199}
200200
201201resource "aws_eip" "nat_eip_3" {
202- domain = " vpc"
202+ domain = " vpc"
203203 depends_on = [aws_internet_gateway . igw ]
204204
205205 tags = {
@@ -400,14 +400,14 @@ resource "aws_default_security_group" "default" {
400400resource "aws_lambda_function" "hello_world_function" {
401401 filename = data. archive_file . lambda_zip . output_path
402402 function_name = local. function_name
403- role = aws_iam_role. lambda_role . arn
404- handler = " hello-world.lambda_handler"
403+ role = aws_iam_role. lambda_role . arn
404+ handler = " hello-world.lambda_handler"
405405 source_code_hash = data. archive_file . lambda_zip . output_base64sha256
406- runtime = " python3.13"
407- architectures = [" arm64" ]
408- description = " Simple Hello World Lambda function on Managed Instances"
409- memory_size = 2048
410- publish = true
406+ runtime = " python3.13"
407+ architectures = [" arm64" ]
408+ description = " Simple Hello World Lambda function on Managed Instances"
409+ memory_size = 2048
410+ publish = true
411411
412412 logging_config {
413413 log_format = " JSON"
@@ -480,7 +480,7 @@ resource "aws_iam_role_policy_attachment" "capacity_provider_managed_policy" {
480480# Lambda Capacity Provider for Managed Instances
481481resource "aws_lambda_capacity_provider" "lambda_capacity_provider" {
482482 name = " lambda-capacity-provider-tf"
483-
483+
484484 vpc_config {
485485 subnet_ids = [aws_subnet . private_subnet_1 . id , aws_subnet . private_subnet_2 . id , aws_subnet . private_subnet_3 . id ]
486486 security_group_ids = [aws_security_group . lambda_security_group . id ]
0 commit comments