Skip to content

Commit

Permalink
fix:RuntimeManagementConfig (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorRobertson committed Jul 27, 2023
1 parent 2a331b9 commit fd232e7
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion samtranslator/model/lambda_.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class LambdaVersion(Resource):
"CodeSha256": GeneratedProperty(),
"Description": GeneratedProperty(),
"FunctionName": GeneratedProperty(),
"RuntimeManagementConfig": GeneratedProperty(),
}

runtime_attrs = {
Expand Down
2 changes: 0 additions & 2 deletions samtranslator/model/sam_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,6 @@ def _construct_version(
lambda_version = LambdaVersion(logical_id=logical_id, attributes=attributes)
lambda_version.FunctionName = function.get_runtime_attr("name")
lambda_version.Description = self.VersionDescription
# Copy the same runtime policy for the version and the function
lambda_version.RuntimeManagementConfig = function.RuntimeManagementConfig

return lambda_version

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithRuntimeManagementConfigAndAlias"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down
6 changes: 0 additions & 6 deletions tests/translator/output/aws-cn/globals_for_function.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithOverrides"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "FunctionChange"
}
},
"Type": "AWS::Lambda::Version"
Expand Down Expand Up @@ -262,9 +259,6 @@
"Properties": {
"FunctionName": {
"Ref": "MinimalFunction"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithRuntimeManagementConfigAndAlias"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down
6 changes: 0 additions & 6 deletions tests/translator/output/aws-us-gov/globals_for_function.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithOverrides"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "FunctionChange"
}
},
"Type": "AWS::Lambda::Version"
Expand Down Expand Up @@ -262,9 +259,6 @@
"Properties": {
"FunctionName": {
"Ref": "MinimalFunction"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down
3 changes: 0 additions & 3 deletions tests/translator/output/function_with_runtime_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithRuntimeManagementConfigAndAlias"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down
6 changes: 0 additions & 6 deletions tests/translator/output/globals_for_function.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@
"Properties": {
"FunctionName": {
"Ref": "FunctionWithOverrides"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "FunctionChange"
}
},
"Type": "AWS::Lambda::Version"
Expand Down Expand Up @@ -262,9 +259,6 @@
"Properties": {
"FunctionName": {
"Ref": "MinimalFunction"
},
"RuntimeManagementConfig": {
"UpdateRuntimeOn": "Auto"
}
},
"Type": "AWS::Lambda::Version"
Expand Down

0 comments on commit fd232e7

Please sign in to comment.