-
Notifications
You must be signed in to change notification settings - Fork 5
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
Validate all resources are mapped #186
Comments
Added to epic https://github.com/pulumi/home/issues/2191 |
Just found a case where a resource isn't mapped: const bucket = new s3.Bucket(this, 'WebsiteBucket', {
websiteIndexDocument: 'index.html',
publicReadAccess: true,
blockPublicAccess: {
blockPublicAcls: false,
blockPublicPolicy: false,
ignorePublicAcls: false,
restrictPublicBuckets: false,
},
autoDeleteObjects: true,
removalPolicy: cdk.RemovalPolicy.DESTROY,
}); In this case a custom resource is added to clean up the items in the bucket on delete. This currently fails with:
The reason for that is that the IAM role that's part of this construct isn't properly detected as a resource. This is an excerpt of the
|
This issue has been addressed in PR #231 and shipped in release v1.0.0. |
Hello!
Issue details
In graph.ts we register resources by walking the
tree.json
file, finding any cfn resources, and then extracting the matching resource from the template. We should also do a final validation that all resources in the template are found in thetree.json
file. It looks like in some cases resources with an id ofDefault
do not show up in thetree.json
file.Affected area/feature
The text was updated successfully, but these errors were encountered: