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

[BUG] Terraspace latest docker image as devcontainer for Azure not working #342

Open
peterburlakov opened this issue Jan 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@peterburlakov
Copy link

peterburlakov commented Jan 3, 2024

Checklist

  • [*] Upgrade Terraspace: Are you using the latest version of Terraspace? This allows Terraspace to fix issues fast. There's an Upgrading Guide: https://terraspace.cloud/docs/misc/upgrading/
  • [*] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.boltops.com
  • [*] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.

My Environment

I'm trying to use official docker image ghcr.io/boltops-tools/terraspace:ubuntu as devcontainer in VSCode for Azure.
I'm adding only az cli - https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt

Software Version
Operating System MacOS
Terraform 1.6.2
Terraspace 2.2.15
Ruby uby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]

Expected Behaviour

terraspace should work with official image in devcontainer :)

Current Behavior

following documentation with demo project creation for Azure:
terraspace new project -p azurerm infra --examples
cd infra
terraspace up demo -y
terraspace down demo -y

not working :(

Step-by-step reproduction instructions

  1. Use devcontainer with official docker image ghcr.io/boltops-tools/terraspace:ubuntu as devcontainer for Azure.
    devcontainer.json
    {
    "name": "Terraspace",
    "image": "ghcr.io/boltops-tools/terraspace:ubuntu",
    "features": {
    },
    "customizations": {
    "vscode": {
    "extensions": [
    "hashicorp.terraform"
    ]
    }
    }
    }
  2. Install az cli - https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
    than
  3. Login to azure
    az login --use-device-code
  4. Create test Terraspace project https://terraspace.cloud/docs/install/docker/azure/
    terraspace new project -p azurerm infra --examples
    Got error:
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  5. apt install ruby-full build-essential
  6. now terraspace new project -p azurerm infra --examples works
  7. cd infra
    terraspace up demo -y
    Building .terraspace-cache/eastus/dev/stacks/demo
    Current directory: .terraspace-cache/eastus/dev/stacks/demo
    Exception Errno::ECONNREFUSED: Failed to open TCP connection to 169.254.169.254:80 (Connection refused - connect(2) for "169.254.169.254" port 80)

Code Sample

Solution Suggestion

@peterburlakov peterburlakov added the bug Something isn't working label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant