-
Notifications
You must be signed in to change notification settings - Fork 3
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
Basic installation with empty aws account #4
Comments
Hi @oytunyuksel thank you for intresting in Wireguard module. |
Hi @azatsafin, Thank you for help in advance. Actually, i'm using in Terragrunt. Terragrunt is running terraform in the background. The Terragrunt file is below:
And Terragrunt apply's related outputs are below: # module.wg_manage_image.docker_registry_image.this will be created
+ resource "docker_registry_image" "this" {
+ id = (known after apply)
+ insecure_skip_verify = false
+ keep_remotely = false
+ name = "324245454524.dkr.ecr.eu-central-1.amazonaws.com/wireguard-vpn-service-wg-manage:e1e420b522c92f7e2657973a4426fa74bc0ee8691cebff3f2b86ed953eb62hef"
+ sha256_digest = (known after apply)
+ build {
+ context = "./lambdas/wg-manage-iam:b89a4e002ffe8868c2ed2059be1d2f5c4a4ed8dd3ef104cf04d64aa160344432"
+ dockerfile = "Dockerfile"
}
}
Plan: 14 to add, 0 to change, 0 to destroy.
module.wg_manage_image.docker_registry_image.this: Creating...
╷
│ Warning: Argument is deprecated
│
│ with module.cognito_auth_redirect.aws_s3_bucket_object.lambda_package,
│ on .terraform/modules/cognito_auth_redirect/main.tf line 115, in resource "aws_s3_bucket_object" "lambda_package":
│ 115: bucket = var.s3_bucket
│
│ Use the aws_s3_object resource instead
│
│ (and 9 more similar warnings elsewhere)
╵
╷
│ Error: Error building docker image: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
│
│ with module.wg_manage_image.docker_registry_image.this,
│ on .terraform/modules/wg_manage_image/modules/docker-build/main.tf line 22, in resource "docker_registry_image" "this":
│ 22: resource "docker_registry_image" "this" {
│
╵ |
@oytunyuksel could you please check your setup from specified branch. I still not sure what option is the best path.cwd or path.module , because path.cwd could lead re-creation of resource if the path will be changed due to CD/CI systems or running the same state from different computers. |
I checked and i think passed the Dockerfile finding step, but i get this error now: Error: Error building docker image: 1: The command '/bin/sh -c yum install -y wireguard-dkms wireguard-tools' returned a non-zero code: 1
│
│ with module.wg_manage_image.docker_registry_image.this,
│ on .terraform/modules/wg_manage_image/modules/docker-build/main.tf line 22, in resource "docker_registry_image" "this":
│ 22: resource "docker_registry_image" "this" { It looks like related to some wireguard packages. Probably something wrong on Dockerfile. |
Just checked full deployment from the scrutch with following terragrunt definition
All works fine. Regading you build, please check you build machine internet connections, you could also try to build Image with debug to see why it failed. |
I'm still getting same error @azatsafin . Can it related with Apple M1? Did you test in M1 chip before? For my guess, maybe "wireguard-dkms" and "wireguard-tools" packages doesn't support M1. |
I don't have any 'm1' based computer, I can test it later. |
Thanks a lot @azatsafin . I will try find a solution. |
Hi all,
I'm trying to create vpn with this module. I created fresh aws account. But i'm getting error. Version is 0.2.3
Error: Error building docker image: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
I'm using this config:
instance_type = "t2.nano" wg_group_name = "VPN" vpc_id = "MY_VPC_ID" wg_admin_email = "MY_EMAIL"
Do you have any idea?
The text was updated successfully, but these errors were encountered: