terraform: add buckets module

This commit is contained in:
2025-05-28 12:01:19 +02:00
parent 62148d2af5
commit dc24dae779
9 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#############
# APP OUTPUT
#############
output "app_name" {
description = "Name of the application"
value = scaleway_iam_application.apps.name
}
output "app_id" {
description = "ID of the application"
value = scaleway_iam_application.apps.id
}
output "app_desc" {
description = "Description of the application"
value = scaleway_iam_application.apps.description
}
output "api_access_key" {
description = "App access key"
value = scaleway_iam_api_key.keys.access_key
}
output "api_secret_key" {
description = "App secret key"
value = scaleway_iam_api_key.keys.secret_key
}
##############
# BUCKET OUTPUT
##############
output "bucket_ID" {
description = "ID of the bucket"
value = [ for b in scaleway_object_bucket.s3_buckets: b.id ]
}
output "bucket_endpoint" {
description = "Bucket's endpoint"
value = [ for b in scaleway_object_bucket.s3_buckets: b.endpoint ]
}