Skip to content

Commit

Permalink
Revert "Update open5gs-worker-x86.yaml"
Browse files Browse the repository at this point in the history
This reverts commit 9a77bd8.
  • Loading branch information
jungy-aws committed May 26, 2021
1 parent 2736dc7 commit 8887c32
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions x86-Architecture/cfn-templates/open5gs-worker-x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ Resources:
"ec2:DescribeInstances",
"ec2:DetachNetworkInterface",
"ec2:ModifyNetworkInterfaceAttribute",
"ec2:DescribeSubnets",
"autoscaling:CompleteLifecycleAction",
"ec2:DeleteTags",
"ec2:DescribeNetworkInterfaces",
Expand All @@ -676,7 +675,7 @@ Resources:
LambdaAttach2ndENI:
Type: "AWS::Lambda::Function"
Properties:
Runtime: "python3.8"
Runtime: "python2.7"
Handler: "lambda_function.lambda_handler"
Role: !GetAtt RoleLambdaAttach2ndEniCfn.Arn
Code:
Expand All @@ -685,8 +684,18 @@ Resources:
Timeout: "60"
Environment:
Variables:
SubnetIds: !Join [",", [Fn::ImportValue: !Sub "${InfraStackName}-MultusSubnet1Az1", Fn::ImportValue: !Sub "${InfraStackName}-MultusSubnet2Az1"]]
SecGroupIds: !Join [",", [Fn::ImportValue: !Sub "${InfraStackName}-MultusSecurityGroup"]]
SubnetId1:
Fn::ImportValue:
!Sub "${InfraStackName}-MultusSubnet1Az1"
SubnetId2:
Fn::ImportValue:
!Sub "${InfraStackName}-MultusSubnet2Az1"
SecGroupId1:
Fn::ImportValue:
!Sub "${InfraStackName}-MultusSecurityGroup"
SecGroupId2:
Fn::ImportValue:
!Sub "${InfraStackName}-MultusSecurityGroup"
# End of Lambda

# CloudWatch Event Trigger
Expand Down Expand Up @@ -747,7 +756,7 @@ Resources:
cfnresponse.send(event, context, cfnresponse.SUCCESS, responseData, "CustomResourcePhysicalID")
Handler: index.handler
Runtime: "python3.8"
Runtime: "python3.6"
Timeout: "60"
Role: !GetAtt RoleLambdaAttach2ndEniCfn.Arn

Expand Down

0 comments on commit 8887c32

Please sign in to comment.