You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
When doing a convection diff, convection may re-order resources, resulting in a configuration that is correct, but a diff that contains extra noise. This means the developer must carefully read a diff to be satisfied that it is correct. Eventually this will cause someone to miss an error.
Expected behavior
When I add a new resource, I see only Create statements, and not a list of idempotent Update statements.
Observed behavior
When I add a new resource, I see a Create statements buried in a list of idempotent Update statements.
Steps to Reproduce
Create a stack s3buckets whose template contains a single s3_bucket resource.
Converge the s3buckets stack.
Add two s3_bucket_policy resources linked to the bucket to the s3buckets stack.
Converge the s3buckets again (notice only Create events being emitted).
Add a new s3_bucket_policy between the other two in your convection template.
Notice that there are updates to the second stack and a new create.
The expected behavior would be that only the new policy get printed as create but since the policy elements are scalar and the order changes we interpret it as a diff.
The text was updated successfully, but these errors were encountered:
@tomhart-r7 that's an internal convection repository. 😉 External users won't be able to access that link but we shouldn't leak locations either. (edited your message)
erran-r7
changed the title
Convection re-orders resources
Convection re-orders policy resources
Nov 2, 2016
erran-r7
changed the title
Convection re-orders policy resources
Convection detects re-ordered policy resources as a diff
Nov 2, 2016
erran-r7
changed the title
Convection detects re-ordered policy resources as a diff
Convection detects re-ordered scalar resources as a diff
Nov 2, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When doing a
convection diff
, convection may re-order resources, resulting in a configuration that is correct, but a diff that contains extra noise. This means the developer must carefully read a diff to be satisfied that it is correct. Eventually this will cause someone to miss an error.Expected behavior
When I add a new resource, I see only
Create
statements, and not a list of idempotentUpdate
statements.Observed behavior
When I add a new resource, I see a
Create
statements buried in a list of idempotentUpdate
statements.Steps to Reproduce
s3buckets
whose template contains a singles3_bucket
resource.s3buckets
stack.s3_bucket_policy
resources linked to the bucket to thes3buckets
stack.s3buckets
again (notice onlyCreate
events being emitted).s3_bucket_policy
between the other two in your convection template.The expected behavior would be that only the new policy get printed as create but since the policy elements are scalar and the order changes we interpret it as a diff.
The text was updated successfully, but these errors were encountered: