terraform-ibm-modules / terraform-ibm-toolkit-vpe-gateway

"Sidecar" module to provision a Virtual Private Endpoint Gateway for a particular service
0 stars 2 forks source link

Build Error - Permission denied to execute CLI scripts #25

Open balasgit opened 1 year ago

balasgit commented 1 year ago

╷ │ Warning: Experimental feature "module_variable_optional_attrs" is active │ │ on .terraform/modules/subnets/version.tf line 10, in terraform: │ 10: experiments = [module_variable_optional_attrs] │ │ Experimental features are subject to breaking changes in future minor or │ patch releases, based on feedback. │ │ If you have feedback on the design of this feature, please open a GitHub │ issue to discuss it. ╵ ╷ │ Error: local-exec provisioner error │ │ with module.icr.null_resource.create_registry_namespace, │ on .terraform/modules/icr/main.tf line 34, in resource "null_resource" "create_registry_namespace": │ 34: provisioner "local-exec" { │ │ Error running command │ '.terraform/modules/icr/scripts/create-registry-namespace.sh 'eu-gb' │ 'vpc-count-rg' 'uk-south' 'vpc-count-rg' 'true'': exit status 1. Output: │ The region is set to 'uk-south', the registry is 'uk.icr.io'. │ │ OK │ Checking registry namespace: vpc-count-rg │ Registry namespace vpc-count-rg not found, creating it. │ Adding namespace 'vpc-count-rg' in resource group 'vpc-count-rg' for │ account GoldenEye GoldenEye Development's Account in registry uk.icr.io... │ │ FAILED │ The requested namespace is already in use in registry 'uk.icr.io'. │ Choose a different namespace. │ │

balasgit commented 1 year ago

Fixed Random string but 2 of those comes error already in use

Error: [0m Error: [ERROR] More than one resource instance found with name matching [vpc-count7-cos] │ If not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or service │ │ with module.cos.data.ibm_resource_instance.cos_instance, │ on .terraform/modules/cos/main.tf line 42, in data "ibm_resource_instance" "cos_instance": │ 42: data ibm_resource_instance cos_instance { │ ╵ ╷ │ Error: local-exec provisioner error │ │ with module.icr.null_resource.create_registry_namespace, │ on .terraform/modules/icr/main.tf line 34, in resource "null_resource" "create_registry_namespace": │ 34: provisioner "local-exec" { │ │ Error running command │ '.terraform/modules/icr/scripts/create-registry-namespace.sh 'eu-gb' │ 'vpc-count-rg' 'uk-south' 'vpc-count-rg' 'true'': exit status 1. Output: │ The region is set to 'uk-south', the registry is 'uk.icr.io'. │ │ OK │ Checking registry namespace: vpc-count-rg │ Registry namespace vpc-count-rg not found, creating it. │ Adding namespace 'vpc-count-rg' in resource group 'vpc-count-rg' for │ account GoldenEye GoldenEye Development's Account in registry uk.icr.io... │ │ FAILED │ The requested namespace is already in use in registry 'uk.icr.io'. │ Choose a different namespace. │ │ ╵ ╷ │ Error: More than one resource instance found with name matching [vpc-count7-redis] │ If not specified please specify more filters like resource_group_id if instance doesn't exists in default group, location or database │ │ with module.redis.data.ibm_database.redis_instance, │ on .terraform/modules/redis/main.tf line 41, in data "ibm_database" "redis_instance": │ 41: data ibm_database redis_instance { │ ╵

balasgit commented 1 year ago

More details about test run - https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-vpe-gateway/actions/runs/3061069419