You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a Openfaas Python3 function with terraform to create bucket in my AWS Account. I am trying it locally and created a local cluster using k3s and installed openfaas cli.
Steps:
-> Created local cluster and deployed faas-netes.
-> Created a new project using openfaas template of python3. Exposed the port.
-> Changed my project yaml file with new host on gateway key in provider.
-> I am creating my tf files with python only and I am sure that the files are created with proper info as checked it by executing
ls and printing the file data after closing the file.
->Checked if terraform is installed in image and live by executing terraform--version.
Expected Behaviour
Execution of command and creation of resource.
Current Behaviour
Not able to execute the function and if the commands are commented the function will be found and files will be created.
Also, it is not clear to me what the question or problem is. I assume that either the function fails or it succeeds but doesn't have the correct side effects. When you restructure to use the issue template, make sure it include fill in the details for the Expected Behavior and Current Behavior including any error messages or log lines.
Without any of the error or log details, it is impossible to say what is wrong. But i would suggest to make sure you are configuring the required secrets for terraform to access your amazon account. it looks like you set the access and secret keys to "" but these should probably be read from a mounted secret instead.
My actions before raising this issue
Read/searched the docs
Why do you need this?
To use terraform on openfaas python template.
I am using a Openfaas Python3 function with terraform to create bucket in my AWS Account. I am trying it locally and created a local cluster using k3s and installed openfaas cli.
Steps:
-> Created local cluster and deployed faas-netes.
-> Created a new project using openfaas template of python3. Exposed the port.
-> Changed my project yaml file with new host on gateway key in provider.
-> I am creating my tf files with python only and I am sure that the files are created with proper info as checked it by executing
ls and printing the file data after closing the file.
->Checked if terraform is installed in image and live by executing terraform--version.
Expected Behaviour
Execution of command and creation of resource.
Current Behaviour
Not able to execute the function and if the commands are commented the function will be found and files will be created.
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
No
Context
We will be able to use terraform on openfaas.
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
): 0.14.2Docker version
docker version
(e.g. Docker 17.0.05 ): 20.10.15Are you using OpenFaaS on Kubernetes or faasd?
*Kubernetes
Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 20.04
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs from troubleshooting guide
The text was updated successfully, but these errors were encountered: