| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Custom resource provider requests with RequestType set to "Update" are sent
when the template developer updates a stack that contains a custom resource.
Update requests contain the following fields:
Will be "Update".
A unique ID for the request.
The response URL identifies a pre-signed Amazon S3 bucket that receives responses from the custom resource provider to AWS CloudFormation.
The Amazon Resource Name (ARN) that identifies the stack containing the custom resource.
The template developer-chosen name (logical ID) of the custom resource in the AWS CloudFormation template.
A required custom resource provider-defined physical ID that is unique for that provider.
The new resource property values declared by the template developer in the updated AWS CloudFormation template.
The resource property values that were previously declared by the template developer in the AWS CloudFormation template.
{
"RequestType" : "Update",
"RequestId" : "unique id for this update request",
"ResponseURL" : "pre-signed-url-for-update-response",
"StackId" : "arn:aws:cloudformation:us-east-1:namespace:stack/stack-name/guid",
"LogicalResourceId" : "name of resource in template",
"PhysicalResourceId" : "custom resource provider-defined physical id",
"ResourceProperties" : {
"key1" : "new-string",
"key2" : [ "new-list" ],
"key3" : { "key4" : "new-map" }
}
"OldResourceProperties" : {
"key1" : "string",
"key2" : [ "list" ],
"key3" : { "key4" : "map" }
}
} If the custom resource provider is able to successfully update the resource, AWS CloudFormation expects status to be set to
"SUCCESS" in the response.
Must be "SUCCESS".
The Amazon Resource Name (ARN) that identifies the stack containing the custom resource. This response value should be copied verbatim from the request.
A unique ID for the request. This response value should be copied verbatim from the request.
The template developer-chosen name (logical ID) of the custom resource in the AWS CloudFormation template. This response value should be copied verbatim from the request.
This value should be an identifier unique to the custom resource vendor, and can be up to 1Kb in size.
{
"Status" : "SUCCESS",
"StackId" : "arn:aws:cloudformation:us-east-1:namespace:stack/stack-name/guid (copied from request)",
"RequestId" : "unique id for this update request (copied from request)",
"LogicalResourceId" : "name of resource in template (copied from request)",
"PhysicalResourceId" : "custom resource provider-defined physical id"
} If the resource cannot be updated with new set of properties, AWS CloudFormation expects the status to be set to "FAILED", along with a failure reason in the response.
Must be "FAILED".
Describes the reason for a failure response.
The template developer-chosen name (logical ID) of the custom resource in the AWS CloudFormation template. This response value should be copied verbatim from the request.
A unique ID for the request. This response value should be copied verbatim from the request.
The Amazon Resource Name (ARN) that identifies the stack containing the custom resource. This response value should be copied verbatim from the request.
This value should be an identifier unique to the custom resource vendor, and can be up to 1Kb in size.
{
"Status" : "FAILED",
"Reason" : "Required failure reason string",
"LogicalResourceId" : "name of resource in template (copied from request)",
"RequestId" : "unique id for this update request (copied from request)",
"StackId" : "arn:aws:cloudformation:us-east-1:namespace:stack/stack-name/guid (copied from request)",
"PhysicalResourceId" : "custom resource provider-defined physical id"
}