Automated CloudFormation drift remediation using Import functionality
MIT License
Update 2022: Check out https://github.com/WeAreCloudar/cfn-drift-remediation for a new, better way to achieve this
The following script will programmatically perform the following steps:
❗ This script is not thoroughly tested and you should attempt to use this on a non-critical resource before real-world usage as some resources refuse to re-import for a variety of reasons. I am not responsible for your data loss.
python3 index.py MyStackName
or to specify a region
python3 index.py MyStackName us-east-1
The following resources are supported for import operations (other resources will be ignored, even if drift is detected):
Fn::Sub
string may cause the process to fail