Skip to content

User terraform command on OpenFaas Python 3 Function deployment #1720

Open
@iAbhinavKarn

Description

@iAbhinavKarn

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.2

  • Docker version docker version (e.g. Docker 17.0.05 ): 20.10.15

  • Are 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

DockerFile
code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions