https://infracost.io logo
#general
Title
# general
v

victorious-accountant-61545

06/18/2021, 10:18 AM
Does is there any way to register infracost silently? I mean to say without giving name email inputs.
l

little-author-61621

06/18/2021, 10:22 AM
Are you wanting to run it non-interactively, e.g pass name and email as flags?
v

victorious-accountant-61545

06/18/2021, 10:24 AM
yes. If that support not supported by infracost then can we create a task of supporting name and email by flags while executing register command?
l

little-author-61621

06/18/2021, 10:44 AM
It's not supported yet, but something we can look at adding. Can I dig into the use case a bit more? How many API keys are you generating and where do you need to generate them?
v

victorious-accountant-61545

06/18/2021, 11:15 AM
I just need to generate one and and I m trying to execute installing and register infracost commands in shell script file which will be get executed through docker file
l

little-author-61621

06/18/2021, 11:27 AM
Is it okay for now to run it manually and pass the API key into the script using the INFRACOST_API_KEY env var? If not, I think there could be a way of doing it using
expect
.
v

victorious-accountant-61545

06/18/2021, 11:45 AM
@little-author-61621 I am not familiar with go lang but I tried something to support this flags stuff. Please review it once https://github.com/infracost/infracost/pull/822
I know checks are getting failed but please tell me what I am doing wrong
w

white-airport-8778

06/18/2021, 12:43 PM
It feels like there are two steps here: a) register, which is subject to change based on things like single-sign-on. It might help if we can have a short call so I can understand the workflow to see how we can help with the automation of this (I’ll DM you my calendly link in case you’d like to do this). b) use infracost in automation, which is achieved by setting
INFRACOST_API_KEY
.
6 Views