How do I resolve the "Resource timed out waiting for creation of physical resource" error when I create a resource using my resource provider type in CloudFormation?

2 minute read

When I use my Resource Provider type to create a resource in AWS CloudFormation, I receive the following error: "Resource timed out waiting for creation of physical resource"

Short description

When a resource doesn't return its primaryIdentifier or Physical ID within 60 seconds, you receive the "Resource timed out waiting for creation of physical resource" error. This error occurs because the CreateHandler of your resource doesn't return the property that's specified as the primaryIdentifier in the organization-service-resource.json resource provider schema file.

For other errors that are related to using a resource provider, see the following articles:


1.    In your organization-service-resource.json file, confirm that the primaryIdentifier definition uses the following format, where Id is a property that's defined in the properties section:

"primaryIdentifier": [

Note: The organization-service-resource.json format is located in the root directory of your project.

2.    In your CreateHandler, set the primaryIdentifier property in the model object. For example:

final ResourceModel model = request.getDesiredResourceState();
return ProgressEvent.<ResourceModel, CallbackContext>builder()

Related information

AWS CloudFormation CLI (from the GitHub website)

AWS OFFICIALUpdated 2 years ago