This repository was archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
Bedrock-CLI infra generate relative paths does not support private repos #1347
Copy link
Copy link
Closed
microsoft/bedrock-cli
#10Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug:
Currently, spk infra generate populates a terraform module source in a format that does not support AzDO Private Repos. This is preventing adding relative paths to the integration test for infra.
To Reproduce:
- Create a Private AzDO Project
- Run the
infra-validations.sh
Expected behavior:
Pipleine runs successfully
Screenshots:
2020-04-13T17:57:03.6030598Z ##[section]Starting: Terraform init
2020-04-13T17:57:03.6037450Z ==============================================================================
2020-04-13T17:57:03.6037781Z Task : Command line
2020-04-13T17:57:03.6038098Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2020-04-13T17:57:03.6038408Z Version : 2.164.0
2020-04-13T17:57:03.6038629Z Author : Microsoft Corporation
2020-04-13T17:57:03.6038961Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2020-04-13T17:57:03.6039350Z ==============================================================================
2020-04-13T17:57:03.7360785Z Generating script.
2020-04-13T17:57:03.7376083Z ========================== Starting Command Output ===========================
2020-04-13T17:57:03.7401464Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/9309c5be-65bb-4e97-85f7-81bdc9abd967.sh
2020-04-13T17:57:03.7489130Z argument is --source-only
2020-04-13T17:57:03.7489920Z Sourcing build.sh ...
2020-04-13T17:57:03.9554571Z �[0m�[1mInitializing modules...�[0m
2020-04-13T17:57:03.9876189Z Downloading infra_account:***@naros32.visualstudio.com/spk-testing/_git/fabrikam-tf-template?ref=v0.0.1//template/module/ for resource_group...
2020-04-13T17:57:03.9895754Z �[31m
2020-04-13T17:57:03.9896223Z �[1m�[31mError: �[0m�[0m�[1mModule not found�[0m
2020-04-13T17:57:03.9896466Z
2020-04-13T17:57:03.9896783Z �[0mThe module address
2020-04-13T17:57:03.9897729Z "infra_account:***@naros32.visualstudio.com/spk-testing/_git/fabrikam-tf-template?ref=v0.0.1//template/module/"
2020-04-13T17:57:03.9934394Z could not be resolved.
2020-04-13T17:57:03.9934568Z
2020-04-13T17:57:03.9934804Z If you intended this as a path relative to the current module, use
2020-04-13T17:57:03.9935985Z "./infra_account:***@naros32.visualstudio.com/spk-testing/_git/fabrikam-tf-template?ref=v0.0.1//template/module/"
2020-04-13T17:57:03.9936478Z instead. The "./" prefix indicates that the address is a relative filesystem
2020-04-13T17:57:03.9936759Z path.
2020-04-13T17:57:03.9937066Z �[0m�[0m
2020-04-13T17:57:03.9937329Z �[31m
2020-04-13T17:57:03.9937723Z �[1m�[31mError: �[0m�[0m�[1mModule not found�[0m
2020-04-13T17:57:03.9937920Z
2020-04-13T17:57:03.9938201Z �[0mThe module address
2020-04-13T17:57:03.9939309Z "infra_account:***@naros32.visualstudio.com/spk-testing/_git/fabrikam-tf-template?ref=v0.0.1//template/module/"
2020-04-13T17:57:03.9939697Z could not be resolved.
2020-04-13T17:57:03.9939850Z
2020-04-13T17:57:03.9940080Z If you intended this as a path relative to the current module, use
2020-04-13T17:57:03.9941073Z "./infra_account:***@naros32.visualstudio.com/spk-testing/_git/fabrikam-tf-template?ref=v0.0.1//template/module/"
2020-04-13T17:57:03.9941585Z instead. The "./" prefix indicates that the address is a relative filesystem
2020-04-13T17:57:03.9941851Z path.
2020-04-13T17:57:03.9942159Z �[0m�[0m
2020-04-13T17:57:03.9942311Z
2020-04-13T17:57:04.0017980Z ##[error]Bash exited with code '1'.
2020-04-13T17:57:04.0034495Z ##[section]Finishing: Terraform init
Does this require updates to documentation?:
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working