iann0036 / Cfn Remediate Drift
Licence: mit
Automated CloudFormation drift remediation using Import functionality
Stars: ✭ 19
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Cfn Remediate Drift
Aws Bootstrap
A template for setting up an AWS environment from scratch.
Stars: ✭ 488 (+2468.42%)
Mutual labels: aws, cloudformation
Serverless Aws Lambda Node Postgres
Serverless AWS Lambda with Node.js,Postgres Rest API with Sequelize.
Stars: ✭ 18 (-5.26%)
Mutual labels: aws, cloudformation
Aws Cloudformation User Guide
The open source version of the AWS CloudFormation User Guide
Stars: ✭ 493 (+2494.74%)
Mutual labels: aws, cloudformation
Cfn nag
Linting tool for CloudFormation templates
Stars: ✭ 808 (+4152.63%)
Mutual labels: aws, cloudformation
Udacity Data Engineering Projects
Few projects related to Data Engineering including Data Modeling, Infrastructure setup on cloud, Data Warehousing and Data Lake development.
Stars: ✭ 458 (+2310.53%)
Mutual labels: aws, cloudformation
Aws Cloudformation Coverage Roadmap
The AWS CloudFormation Public Coverage Roadmap
Stars: ✭ 800 (+4110.53%)
Mutual labels: aws, cloudformation
Aws Demos
A hands on repo with multiple demonstrations on AWS 🎓
Stars: ✭ 324 (+1605.26%)
Mutual labels: aws, cloudformation
Aws Vpn Server Setup
Setup your own private, secure, free* VPN on the Amazon AWS Cloud in 10 minutes. CloudFormation
Stars: ✭ 672 (+3436.84%)
Mutual labels: aws, cloudformation
Goformation
GoFormation is a Go library for working with CloudFormation templates.
Stars: ✭ 671 (+3431.58%)
Mutual labels: aws, cloudformation
Devops Python Tools
80+ DevOps & Data CLI Tools - AWS, GCP, GCF Python Cloud Function, Log Anonymizer, Spark, Hadoop, HBase, Hive, Impala, Linux, Docker, Spark Data Converters & Validators (Avro/Parquet/JSON/CSV/INI/XML/YAML), Travis CI, AWS CloudFormation, Elasticsearch, Solr etc.
Stars: ✭ 406 (+2036.84%)
Mutual labels: aws, cloudformation
Former2
Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources.
Stars: ✭ 751 (+3852.63%)
Mutual labels: aws, cloudformation
Pipeline Aws Plugin
Jenkins Pipeline Step Plugin for AWS
Stars: ✭ 389 (+1947.37%)
Mutual labels: aws, cloudformation
Org Formation Cli
Better than landingzones!
Stars: ✭ 471 (+2378.95%)
Mutual labels: aws, cloudformation
Lamby
Simple Rails & AWS Lambda Integration 🐑🛤
Stars: ✭ 336 (+1668.42%)
Mutual labels: aws, cloudformation
Aws Lex Web Ui
Sample Amazon Lex chat bot web interface
Stars: ✭ 500 (+2531.58%)
Mutual labels: aws, cloudformation
Awesome Cloudformation
A curated list of resources and projects for working with AWS CloudFormation.
Stars: ✭ 290 (+1426.32%)
Mutual labels: aws, cloudformation
Auto Tag
Automatically tag AWS resources on creation, for cost assignment
Stars: ✭ 322 (+1594.74%)
Mutual labels: aws, cloudformation
Startup Kit Templates
CloudFormation templates to accelerate getting started on AWS.
Stars: ✭ 669 (+3421.05%)
Mutual labels: aws, cloudformation
Dawson Cli
A serverless web framework for Node.js on AWS (CloudFormation, CloudFront, API Gateway, Lambda)
Stars: ✭ 721 (+3694.74%)
Mutual labels: aws, cloudformation
CloudFormation Remediate Drift
The following script will programmatically perform the following steps:
- Check for drifted resources
- Using CloudFormation outputs, extract any references to resources that have drifted and replace the references with the dereferenced values temporarily
- Remove any supported drifted resources from the stack, whilst retaining the resource
- Import the resources with their current state back into the stack
- Perform an update on the stack back to its original template, effectively remediating the resources
❗️ 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.
Usage
python3 index.py MyStackName
or to specify a region
python3 index.py MyStackName us-east-1
Supported Resources
The following resources are supported for import operations (other resources will be ignored, even if drift is detected):
- AWS::ACMPCA::Certificate
- AWS::ACMPCA::CertificateAuthority
- AWS::ACMPCA::CertificateAuthorityActivation
- AWS::AccessAnalyzer::Analyzer
- AWS::ApiGateway::Authorizer
- AWS::ApiGateway::Deployment
- AWS::ApiGateway::Method
- AWS::ApiGateway::Model
- AWS::ApiGateway::RequestValidator
- AWS::ApiGateway::Resource
- AWS::ApiGateway::RestApi
- AWS::ApiGateway::Stage
- AWS::Athena::DataCatalog
- AWS::Athena::NamedQuery
- AWS::Athena::WorkGroup
- AWS::AutoScaling::AutoScalingGroup
- AWS::AutoScaling::LaunchConfiguration
- AWS::AutoScaling::LifecycleHook
- AWS::AutoScaling::ScalingPolicy
- AWS::AutoScaling::ScheduledAction
- AWS::CE::CostCategory
- AWS::Cassandra::Keyspace
- AWS::Cassandra::Table
- AWS::Chatbot::SlackChannelConfiguration
- AWS::CloudFormation::Stack
- AWS::CloudTrail::Trail
- AWS::CloudWatch::Alarm
- AWS::CloudWatch::CompositeAlarm
- AWS::CodeGuruProfiler::ProfilingGroup
- AWS::CodeStarConnections::Connection
- AWS::Config::ConformancePack
- AWS::Config::OrganizationConformancePack
- AWS::Detective::Graph
- AWS::Detective::MemberInvitation
- AWS::DynamoDB::Table
- AWS::EC2::EIP
- AWS::EC2::FlowLog
- AWS::EC2::GatewayRouteTableAssociation
- AWS::EC2::Instance
- AWS::EC2::InternetGateway
- AWS::EC2::LocalGatewayRoute
- AWS::EC2::LocalGatewayRouteTableVPCAssociation
- AWS::EC2::NatGateway
- AWS::EC2::NetworkAcl
- AWS::EC2::NetworkInterface
- AWS::EC2::PrefixList
- AWS::EC2::RouteTable
- AWS::EC2::SecurityGroup
- AWS::EC2::Subnet
- AWS::EC2::VPC
- AWS::EC2::Volume
- AWS::ECS::CapacityProvider
- AWS::ECS::Cluster
- AWS::ECS::PrimaryTaskSet
- AWS::ECS::Service
- AWS::ECS::TaskDefinition
- AWS::ECS::TaskSet
- AWS::EFS::AccessPoint
- AWS::EFS::FileSystem
- AWS::ElasticLoadBalancing::LoadBalancer
- AWS::ElasticLoadBalancingV2::Listener
- AWS::ElasticLoadBalancingV2::ListenerRule
- AWS::ElasticLoadBalancingV2::LoadBalancer
- AWS::EventSchemas::RegistryPolicy
- AWS::Events::Rule
- AWS::FMS::NotificationChannel
- AWS::FMS::Policy
- AWS::GlobalAccelerator::Accelerator
- AWS::GlobalAccelerator::EndpointGroup
- AWS::GlobalAccelerator::Listener
- AWS::ImageBuilder::Component
- AWS::ImageBuilder::DistributionConfiguration
- AWS::ImageBuilder::Image
- AWS::ImageBuilder::ImagePipeline
- AWS::ImageBuilder::ImageRecipe
- AWS::ImageBuilder::InfrastructureConfiguration
- AWS::IoT::ProvisioningTemplate
- AWS::IoT::Thing
- AWS::KinesisFirehose::DeliveryStream
- AWS::Lambda::Alias
- AWS::Lambda::Function
- AWS::Lambda::Version
- AWS::Logs::LogGroup
- AWS::Logs::MetricFilter
- AWS::Logs::SubscriptionFilter
- AWS::Macie::CustomDataIdentifier
- AWS::Macie::FindingsFilter
- AWS::Macie::Session
- AWS::NetworkManager::CustomerGatewayAssociation
- AWS::NetworkManager::Device
- AWS::NetworkManager::GlobalNetwork
- AWS::NetworkManager::Link
- AWS::NetworkManager::LinkAssociation
- AWS::NetworkManager::Site
- AWS::NetworkManager::TransitGatewayRegistration
- AWS::QLDB::Stream
- AWS::RDS::DBCluster
- AWS::RDS::DBInstance
- AWS::RDS::DBProxy
- AWS::RDS::DBProxyTargetGroup
- AWS::ResourceGroups::Group
- AWS::Route53::HostedZone
- AWS::S3::AccessPoint
- AWS::S3::Bucket
- AWS::SES::ConfigurationSet
- AWS::SNS::Topic
- AWS::SQS::Queue
- AWS::SSM::Association
- AWS::ServiceCatalog::CloudFormationProvisionedProduct
- AWS::Synthetics::Canary
- AWS::WAFv2::IPSet
- AWS::WAFv2::RegexPatternSet
- AWS::WAFv2::RuleGroup
- AWS::WAFv2::WebACL
- AWS::WAFv2::WebACLAssociation
- AWS::IAM::Group
- AWS::IAM::InstanceProfile
- AWS::IAM::Role
- AWS::IAM::User
- AWS::IAM::ManagedPolicy
Known Issues
- Templates with a high amount of drifted resources may cause an error regarding too many outputs
- Drifted resources referenced within a
Fn::Sub
string may cause the process to fail
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].