I have sg and vpc there just to mess around with… ofc that vpce github url is not valid.
So I’m confused as to how you can/should reference the github urls like this withough a full https url and if you support something like this which I have in the main.tf in some stack right now:
I guess I’m confused what the “standard” way is to reference a github terraform module in a Terrfafile and also how I can use the vpc-endpoints submoudle. Just pull the vpc module and do some extra path magic? I need some guidance. I’ve read docs and looked a bunch of things but it’s not clear so I just gave up on using the Terrafile for now. and have standard references in the .tf files like above. I do like the idea of letting terraspace manage things in the Terrafile though. I just need some help.
I guess you would probably also check in vendor/modules as well since your code will/can reference them. Well, I guess you guys can close this issues since I was just having a dumb brain day. Sorry about that.
I am experiencing the same issue via this Terrafile:
mod "vpc", source: "terraform-aws-modules/vpc/aws", version: "5.5.1"
mod "vpc_endpoints", source: "https://github.com/terraform-aws-modules/terraform-aws-vpc//modules/vpc-endpoints", version: "5.5.1"
# mod "vpc_endpoints", source: "terraform-aws-modules/terraform-aws-vpc//modules/vpc-endpoints", version: "5.5.1"
line 3 fails on fresh terraspace bundle (when vendor/modules is empty):
ERROR: Unauthorized. Unable to lookup up module in Terraform Registry:
terraform-aws-modules/terraform-aws-vpc//modules/vpc-endpoints
Try logging in with:
terraform login