Skip to content

CLI writes stack file outside of project #1912

@lionello

Description

@lionello

When trying to clean-up a project, I ran this locally in the defang-mvp folder. It ended up writing a stack file in that folder, which is not really what I needed/expected. In fact, I was doing a down, so why bother writing a file at all?

$ export DEFANG_PROVIDER=aws
$ AWS_REGION=us-west-2 defang down --detach --project-name crewai --stack oneclick
 * Stack "oneclick" loaded and saved to "/Users/llunesu/dev/defang-mvp/.defang/oneclick". Add this file to source control
 * Using the "oneclick" stack on aws from --stack flag and previous deployment
 * Running CD command "destroy" in project "crewai"
 * Waiting for CloudFormation stack defang-cd to be updated...
 * Deleted services, deployment ID 76b5bcb13b104224abb1abcd0233d7ff
 ! Stored project configs are not deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions