Skip to content

Commit

Permalink
Add elastio:resource tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Jul 31, 2024
1 parent ec48dd7 commit c403c80
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions elastio-nat-provision-lambda/cloudformation-lambda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -122,6 +129,10 @@ Resources:
lambdaInvocationRole:
Type: AWS::IAM::Role
Properties:
Tags:
- Key: elastio:resource
Value: 'true'

AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
Expand All @@ -144,6 +155,10 @@ Resources:
stateMachineExecutionRole:
Type: AWS::IAM::Role
Properties:
Tags:
- Key: elastio:resource
Value: 'true'

AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c403c80

Please sign in to comment.