Error while calling the deleteresourceconfig boto3 api #3771
-
While calling the deleteresourceconfig boto3 api through code, facing the below error but we are able to listresourceconfig using the api. Could you please us here and let us know the reason for the error? botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the DeleteResourceConfig operation: Value 'AWS::EC2::Instance' at 'resourceType' failed to satisfy constraint: resourceType must not have an organization name that matches any of the following 'aws', 'amazon', 'amzn', 'alexa'. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @sgopa, thanks for reaching out. Could you provide debug logs of this behavior? You can get debug logs by adding |
Beta Was this translation helpful? Give feedback.
Hi @sgopa, thanks for getting back to me. It looks like
delete_resource_config
is intended for use with custom resources that aren't natively supported by AWS Config.AWS::EC2::Subnet
is already supported by AWS Config, so that doesn't apply. If you want to change which resources are recorded, I'd recommend taking a look at this piece of documentation. Hope that helps, and please let me know if you have any follow-up questions.