Skip to content

Commit 040e8ce

Browse files
committed
Added
1 parent 2f64d4d commit 040e8ce

File tree

1 file changed

+17
-0
lines changed
  • CloudFormation/Creating-Lambda-Backed-Custom-Resources

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Creating Lambda-backed Custom Resources
2+
3+
When you associate a Lambda function with a custom resource, the function is invoked whenever the custom resource is created, updated, or deleted. CloudFormation calls a Lambda API to invoke the function and to pass all the request data (such as the request type and resource properties) to the function.
4+
5+
In this lesson, you will learn how to implement password confirmation logic into a CloudFormation template.
6+
7+
## AWS CloudFormation Deep Dive
8+
9+
<https://linuxacademy.com/cp/modules/view/id/157>
10+
11+
Custom resources are Lambda functions that get called by CloudFormation. CloudFormation has lots of defined resources that you can use to provision AWS resources. However, if you want to provision an AWS resource that CloudFormation doesn't support yet, or if you want to include some complicated logic during your CloudFormation stack create/update/delete, you can use a custom resource to do that easily.
12+
13+
## Create CloudFormation stack
14+
15+
During a stack operation, CloudFormation sends a request to a pre-signed URL with a service token specified in the template, and then waits for a response before proceeding with the stack operation.
16+
17+
The custom resource provider (i.e. Lambda function) processes the CloudFormation request and returns a response of `SUCCESS` or `FAILED` to the pre-signed URL.

0 commit comments

Comments
 (0)