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

Terraform not working with Linux Mint or Docker container #1968

Open
salfredogonzalez opened this issue Jan 2, 2025 · 0 comments
Open

Terraform not working with Linux Mint or Docker container #1968

salfredogonzalez opened this issue Jan 2, 2025 · 0 comments

Comments

@salfredogonzalez
Copy link

I will add as much as I did.
First, I try to install it with the instructions in your README.md page that its saying exec command error, so I tried in Docker container and golang1.22 its needed so.

FROM golang:1.22-alpine

RUN apk add --no-cache git bash

RUN git clone https://github.com/GoogleCloudPlatform/terraformer.git /terraformer
WORKDIR /terraformer

RUN go mod download

RUN go build -o /terraformer/terraformer ./build/main.go

ENTRYPOINT ["/terraformer/terraformer"]

That works well but running

#!/bin/bash

docker run --rm \
  -e AWS_PROFILE=develop \
  -v ~/.aws:/root/.aws \
  -v $(pwd)/output:/terraformer/output \
  terraformer import aws --resources=lambda --regions=us-west-1 --output=output

Just print

Build terraformer with import provider...

No more info or debug flag, output folder empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant