Skip to content

Commit b6892a6

Browse files
author
Sai Ray
committed
fix: replacing empty template with dummy resource to avoid cfn no resource error
1 parent 9740cdf commit b6892a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/amplify-cli/src/commands/gen2-migration/decommission.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep {
3838
new CreateChangeSetCommand({
3939
StackName: stackName,
4040
ChangeSetName: changeSetName,
41-
TemplateBody: JSON.stringify({ Resources: {} }),
41+
TemplateBody: JSON.stringify({
42+
Resources: {
43+
DummyResource: {
44+
Type: 'AWS::CloudFormation::WaitConditionHandle',
45+
},
46+
},
47+
}),
4248
}),
4349
);
4450

0 commit comments

Comments
 (0)