From c403c803b34dd5b1dc47b5f1bf02bad0636d50d3 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Wed, 31 Jul 2024 17:57:23 +0000 Subject: [PATCH] Add `elastio:resource` tags --- .../cloudformation-lambda.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/elastio-nat-provision-lambda/cloudformation-lambda.yaml b/elastio-nat-provision-lambda/cloudformation-lambda.yaml index d56edb1..75203d8 100644 --- a/elastio-nat-provision-lambda/cloudformation-lambda.yaml +++ b/elastio-nat-provision-lambda/cloudformation-lambda.yaml @@ -65,10 +65,17 @@ Resources: Properties: LogGroupName: /aws/lambda/elastio-nat-gateway-provision RetentionInDays: !Ref LambdaLogsRetention + Tags: + - Key: elastio:resource + Value: 'true' lambdaRole: Type: AWS::IAM::Role Properties: + Tags: + - Key: elastio:resource + Value: 'true' + AssumeRolePolicyDocument: Version: 2012-10-17 Statement: @@ -122,6 +129,10 @@ Resources: lambdaInvocationRole: Type: AWS::IAM::Role Properties: + Tags: + - Key: elastio:resource + Value: 'true' + AssumeRolePolicyDocument: Version: 2012-10-17 Statement: @@ -144,6 +155,10 @@ Resources: stateMachineExecutionRole: Type: AWS::IAM::Role Properties: + Tags: + - Key: elastio:resource + Value: 'true' + AssumeRolePolicyDocument: Version: 2012-10-17 Statement: @@ -164,6 +179,10 @@ Resources: lambdaFunction: Type: AWS::Lambda::Function Properties: + Tags: + - Key: elastio:resource + Value: 'true' + FunctionName: elastio-nat-gateway-provision Handler: lambda.lambda_handler Runtime: python3.12 @@ -278,6 +297,9 @@ Resources: natGatewayCleanupStateMachine: Type: AWS::StepFunctions::StateMachine Properties: + Tags: + - Key: elastio:resource + Value: 'true' StateMachineName: elastio-nat-gateway-provision-state-machine RoleArn: !GetAtt lambdaInvocationRole.Arn Definition: