Hi all,
Every time I try to terraform apply the configuration I get this error:
module.boundary.module.boundary_management.boundary_scope.sxdev: Still creating... [1m0s elapsed]
Error: error calling read scope: error performing client request during Read call: context deadline exceeded
After this, every time I run terraform plan I get the same Error and plan can’t finish.
The only way to move forward is to delete terraform states and try to configure it again.
I have tried with multiple configurations including the one on Boundary web.
Any insight would be very helpful
These are the terraform config files
scopes.tf:
resource "boundary_scope" "sxdev" {
global_scope = true
name = "SXDEV"
description = "Global Scope for SXDEV"
scope_id = "global"
}
resource "boundary_scope" "metatrader_windows" {
name = "metatrader-windows"
description = "MetaTrader Windows"
scope_id = boundary_scope.sxdev.id
}
resource "boundary_scope" "active_directory_domain_services_project" {
name = "active-directory-domain-services-project"
description = "Active Directory Domain Services Project"
scope_id = boundary_scope.sxdev.id
}
resource "boundary_scope" "active_directory_windows" {
name = "active-directory-windows"
description = "Active Directory Windows"
scope_id = boundary_scope.active_directory_domain_services_project.id
}
resource "boundary_scope" "active_directory_linux" {
name = "active-directory-linux"
description = "Active Directory Linux"
scope_id = boundary_scope.active_directory_domain_services_project.id
}
auth.tf:
resource "boundary_auth_method" "password" {
name = "password_auth_method"
description = "Backup auth method until OIDC"
type = "password"
scope_id = boundary_scope.sxdev.id
}
main.tf:
terraform {
required_providers {
boundary = {
source = "hashicorp/boundary"
version = "1.0.1"
}
aws = {
source = "hashicorp/aws"
version = "3.27.0"
}
}
}
provider "boundary" {
addr = format("%s%s%s", "http://", var.alb_dns, ":9205")
recovery_kms_hcl = <<EOT
kms "awskms" {
purpose = "recovery"
key_id = "global_root"
kms_key_id = "${var.kms_recovery_key_id}"
}
EOT
}