File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,24 @@ export const runDriftCTL = async ({
239
239
} ) : Promise < DriftctlExecutionResult > => {
240
240
const path = await findOrDownload ( ) ;
241
241
await validateArgs ( options ) ;
242
+
243
+ if ( options . kind === 'describe' ) {
244
+ const descOptions = options as DescribeOptions ;
245
+
246
+ if (
247
+ descOptions . deep ||
248
+ descOptions . all ||
249
+ descOptions [ 'only-managed' ] ||
250
+ descOptions . drift
251
+ ) {
252
+ process . stderr . write (
253
+ `DEPRECATION NOTICE: Drift detection of managed resources,\n` +
254
+ `including --only-managed and --drift has been deprecated.\n` +
255
+ `The end-of-life date for drift detection of managed resources is September 30. 2023.\n\n` ,
256
+ ) ;
257
+ }
258
+ }
259
+
242
260
const args = await generateArgs ( options , driftIgnore ) ;
243
261
244
262
if ( ! stdio ) {
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ describe('iac describe', () => {
172
172
) ;
173
173
174
174
expect ( stdout ) . toBe ( '' ) ;
175
- expect ( stderr ) . toBe ( ' ') ;
175
+ expect ( stderr ) . toContain ( 'DEPRECATION NOTICE ') ;
176
176
expect ( exitCode ) . toBe ( 0 ) ;
177
177
178
178
const output = fs . readFileSync ( outputFile ) . toString ( ) ;
You can’t perform that action at this time.
0 commit comments