Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation of atlantis variable with an option #1227

Closed
tcheksa62 opened this issue Oct 15, 2020 · 1 comment
Closed

Activation of atlantis variable with an option #1227

tcheksa62 opened this issue Oct 15, 2020 · 1 comment
Labels
question Further information is requested waiting-on-response Waiting for a response from the user

Comments

@tcheksa62
Copy link

Hello,

In issue #419 you have disabled the option to set var setted by information in event.
But I need this option work on terrafom >= 0.12, all actions done by atlantis need to be identified with session_name.
I can't say to my user to use command and set is name in variable, is not secure. He can write an other user name as variable...

So I propose two solution, one is simple by adding parameter to atlantis in a plan command ex: atlantis plan -active_var # or all other word as option :)

The second is by set your atlantis_variable as env variable like $ATLANTIS_USER for exemple and can be called with : atlantis plan -- -var altantis_user=$ATLANTIS_USER

Did you think is possible ?

Regards,

Tcheksa

PS: Apology for my bad english :)

@lkysow
Copy link
Member

lkysow commented Oct 23, 2020

Hi, this doesn't work in 0.12 because:
image

If you want access to these variables then use a custom workflow:

steps:
- init:
    extra_args: [-var, "atlantis_repo_owner=runatlantis"]

extra_args interpolates environment variables, if you play around with it it should work!

@lkysow lkysow added question Further information is requested waiting-on-response Waiting for a response from the user labels Oct 23, 2020
@github-actions github-actions bot added the Stale label Jul 28, 2021
@github-actions github-actions bot closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting-on-response Waiting for a response from the user
Projects
None yet
Development

No branches or pull requests

2 participants