Added the a13labs namespace to scaleway
Terraform Scaleway IAC Validate on Pull Request / iac-validate (pull_request) Failing after 54s

This commit is contained in:
2026-07-05 23:22:32 +02:00
parent 3063561832
commit 32da5410bc
3 changed files with 40 additions and 1 deletions
+22
View File
@@ -96,3 +96,25 @@ resource "scaleway_iam_api_key" "gitea_app_api" {
application_id = scaleway_iam_application.gitea_app.id
description = "gitea access API key"
}
resource "scaleway_iam_application" "ci_app" {
name = "ci_app"
}
resource "scaleway_iam_policy" "registry_full_access" {
name = "CI Registry full access policy"
description = "Gives CI app full access to container registry in project"
application_id = scaleway_iam_application.ci_app.id
rule {
project_ids = [data.scaleway_account_project.default.id]
permission_set_names = [
"RegistryFullAccess",
]
}
}
resource "scaleway_iam_api_key" "ci_app_api" {
application_id = scaleway_iam_application.ci_app.id
description = "CI app API key for registry push"
}
+17
View File
@@ -49,3 +49,20 @@ output "gitea_bucket_name" {
description = "The name of the Gitea bucket."
value = scaleway_object_bucket.gitea.name
}
output "registry_endpoint" {
description = "The endpoint of the a13labs container registry."
value = scaleway_registry_namespace.a13labs.endpoint
}
output "ci_app_api_access_key" {
description = "The access key for the CI app API."
value = scaleway_iam_api_key.ci_app_api.access_key
sensitive = true
}
output "ci_app_api_secret_key" {
description = "The secret key for the CI app API."
value = scaleway_iam_api_key.ci_app_api.secret_key
sensitive = true
}
+1 -1
View File
@@ -1,5 +1,5 @@
resource "scaleway_registry_namespace" "a13labs" {
name = "a13labs"
description = "A13Labs container registry"
is_public = false
is_public = true
}