Creating infra with Terraform locally

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии •

  • @brohan313
    @brohan313 22 дня назад

    Do i need to run this inside docker? Or does tflocal create in local stack automatically? I was going to try using docker compose

    • @localstack
      @localstack  12 дней назад

      No, you can run tflocal commands from your host. The wrapper will re-direct all of the AWS API requests to the LocalStack Docker container. You can use Docker Compose, Docker CLI or even our native LocalStack CLI to start/manage LocalStack.

  • @alejandrocoronado1131
    @alejandrocoronado1131 25 дней назад

    I have this issue
    /infrastructure && samlocal deploy --template template.yaml --stack-name test --resolve-s3 --no-confirm-changeset /bin/sh: samlocal: command not found
    it seems that localsam was replaced by sam. Also, the vscode extension seems to be on preview which makes me think that the extension might not be working? I tried creating an alias to map samlocal to sam but it didn't worked. I'm just not sure if I should downgrade sam o maybe install a different package?

    • @localstack
      @localstack  24 дня назад

      Hi Alejandro - That's interesting. `samlocal: command not found` indicates that `samlocal` is not installed. Can you follow the documentation to install it: docs.localstack.cloud/user-guide/integrations/aws-sam/#samlocal-wrapper-script
      Can you further reach out via Slack (localstack.cloud/slack) if you encounter further issues?