Prevents unauthorized deletion or modification of Lambda functions, ensuring that critical application components remain intact.
What this SCP does
This Service Control Policy (SCP) prevents unauthorized deletion or modification of Lambda functions, ensuring that critical application components remain intact. This is important for maintaining serverless application reliability.
By restricting changes to Lambda functions with the "Prod-" prefix to only users with the Operations department tag, this policy creates a separation of duties that protects production serverless workloads from unauthorized or accidental modifications, while still allowing flexibility for non-production environments.
How to test this SCP works
To validate this SCP, try to create and modify Lambda functions with different naming patterns and roles.
This testing approach confirms that only properly tagged roles can modify production Lambda functions, while all other principals are prevented from changing these critical serverless resources.