Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move list of stateful resource types to data file (#1897)
The CDK would like to use the same data that cfn-lint is using to help our code generation. This change moves the list of stateful resource types to a JSON file, which is easier to parse for the CDK build process than a Python source file. This will help keep the source of truth in sync between the two projects. This is not supposed to be the be-all-and-end-all solution of integration between the two projects. I'm aware it's quite ad-hoc; but let's try something low-friction and see how it goes?
- Loading branch information
Showing
2 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"ResourceTypes": { | ||
"AWS::CloudFormation::Stack" : {}, | ||
"AWS::Backup::BackupVault" : {}, | ||
"AWS::Cognito::UserPool" : {}, | ||
"AWS::DocDB::DBCluster" : {}, | ||
"AWS::DocDB::DBInstance" : {}, | ||
"AWS::DynamoDB::Table" : {}, | ||
"AWS::EC2::Volume" : {}, | ||
"AWS::EFS::FileSystem" : {}, | ||
"AWS::EMR::Cluster" : {}, | ||
"AWS::ElastiCache::CacheCluster" : {}, | ||
"AWS::ElastiCache::ReplicationGroup" : {}, | ||
"AWS::Elasticsearch::Domain" : {}, | ||
"AWS::FSx::FileSystem" : {}, | ||
"AWS::Logs::LogGroup" : {}, | ||
"AWS::Neptune::DBCluster" : {}, | ||
"AWS::Neptune::DBInstance" : {}, | ||
"AWS::QLDB::Ledger" : {}, | ||
"AWS::RDS::DBCluster" : {}, | ||
"AWS::RDS::DBInstance" : {}, | ||
"AWS::Redshift::Cluster" : {}, | ||
"AWS::SDB::Domain" : {}, | ||
"AWS::SQS::Queue" : {}, | ||
"AWS::S3::Bucket" : { | ||
"DeleteRequiresEmptyResource": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters