-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(CustomResources): Error: Resolution error: Resolution error: Trying to resolve() a Construct at /Resources/${Token[ #30339
Comments
Anybody who can help here? |
Your PoC is a little bit too much for us to help and as we don't have SaleForce credentials we can't help you debug like that. Generally, you will need to simplify your code and first make sure you can successfully create the custom resource. new cdk.CustomResource(this, "SalesforceMetadataResource", {
serviceToken: salesforceProvider.serviceToken,
resourceType: "Custom::SalesforceMetadata",
properties: {
objects: this.objects,
},
}); Are you able to create a simple custom resource like that first, iterate from there and see what makes it fail on synth? |
@pahud when removing the other construct called What is wrong with the SalesforceObject construct? I could declare it as a simple class, but would cdk be able to tell me what has changed in the SalesforceMetada construct? Additionally, would the class props be in the synthesized template? I don't want to make another custom provider for When creating a |
Describe the bug
When attempting to synthesize a custom resource that creates resources in Salesforce, I get the following error
Expected Behavior
I was expecting to see SalesforceObject and SalesforceObjectFields as properties of "Custom::SalesforceMetadata" in the synthesized template
Current Behavior
cdk synth
doesn't finish and throws the folllowing errorReproduction Steps
Run
cdk synth
in this repohttps://github.com/AllanOricil/cdk-salesforce-iac-poc
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.141.0
Framework Version
No response
Node.js Version
18.19.1
OS
macos latest
Language
TypeScript
Language Version
5.4.5
Other information
My goal with this custom construct it to be able to use a single tool to develop solutions that require both Salesforce and AWS resources. This simplest repository I shared is attempting to create a very simple Database Table in Salesforce (they call it SObject, but let's try to use terms which both of us understand even if it is wrong). I want to join all salesforce resources under one called "SalesforceMetadata" so that it represents all metadata that belongs to a single Salesforce Organization. Moreover, I did not create custom resources for SalesforceObject and SalesforceObjectField constructs because I wan't them to be deployed by Custom::SalesforceMetadata. In other words, they can't be deployed alone.
I want to build something like Mongodb Atlas did
https://github.com/mongodb/awscdk-resources-mongodbatlas
The text was updated successfully, but these errors were encountered: