Skip to content

Stack-action vs. action variables (TERRAFORM_APPLY | DESTROY) #14

@LeoDiazL

Description

@LeoDiazL

As it is right now, you can define a stack-action and yet pass TERRAFORM_APPLY / TERRAFORM_DESTROY as an environment variable. Hence, you could create the environment and destroy it in the same run.

The idea would be to:

  • Sanitize options. Make sure only one of them is chosen. (What should we do if stack-action collides with TERRAFORM_* ?)
  • Run through a case statement, avoiding unnecessary validations and keeping the code cleaner.
  • Print warning for the environment variables we want to remove in the future ( if we want to. 😄 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions