Aws-cdk: Allow drift detection

Created on 10 Feb 2019  Â·  7Comments  Â·  Source: aws/aws-cdk

There doesn't see to be a way to enable drift detection in CDK.

efformedium feature-request needs-cfn p2 packagtools

Most helpful comment

@bpcrao As @rix0rrr mentioned earlier, the implementation would be to potentially add a cdk drift command, but it would still ultimately be CloudFormation that will compare templated resources against actual resources.

Although CloudFormation supports drift detection, it's limited to these resources. There is a lot of surface area that is still not covered by CloudFormation drift detection

All 7 comments

Do you mean, start a drift detection action on a stack?

That's right, that feature is not built into the CDK. We could conceivably add a cdk drift command to perform a drift detection cycle, but there would not be a lot of advantage over making the CloudFormation call directly.

My thought was more to fix the stack or the drift. not sure whta the plans
are with aws on drift fixing.

On Mon, Mar 4, 2019 at 10:14 AM Rico Huijbers notifications@github.com
wrote:

Do you mean, start a drift detection action on a stack?

That's right, that feature is not built into the CDK. We could conceivably
add a cdk drift command to perform a drift detection cycle, but there
would not be a lot of advantage over making the CloudFormation call
directly.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-cdk/issues/1723#issuecomment-469357450,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAvLM_Kljxcj3bdMbGeKZb5zgvDh0F5ks5vTWKOgaJpZM4ay7fr
.

Please take this up with CloudFormation if you have any requests regarding keeping reality in sync with the template on a continuous basis.

CDK will get your application model to CloudFormation. CloudFormation will get your application model to reality, and do any and all of the work to keep it there.

I think this is much needed feature

I wont be able to see the Diff of "AWS INFRA" compared with my "Stack template"
since after CDK deploy some one can modify things from AWS Console

@bpcrao As @rix0rrr mentioned earlier, the implementation would be to potentially add a cdk drift command, but it would still ultimately be CloudFormation that will compare templated resources against actual resources.

Although CloudFormation supports drift detection, it's limited to these resources. There is a lot of surface area that is still not covered by CloudFormation drift detection

@shivlaks Is correct but I'd still like to see this feature added.

@shivlaks @rix0rrr

Are there any updates to this issue? It would be great if it could be completed within the cdk toolchain like cdk diff.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abelmokadem picture abelmokadem  Â·  3Comments

Kent1 picture Kent1  Â·  3Comments

schof picture schof  Â·  3Comments

peterdeme picture peterdeme  Â·  3Comments

artyom-melnikov picture artyom-melnikov  Â·  3Comments