Refactor all_services to remove name attribute
This commit is contained in:
parent
6f9f888478
commit
1d14ac888e
16 changed files with 42 additions and 71 deletions
|
|
@ -13,7 +13,7 @@ data "scaleway_iam_user" "serguzim" {
|
|||
|
||||
resource "scaleway_iam_application" "service_applications" {
|
||||
for_each = local.services_s3
|
||||
name = each.value.name
|
||||
name = each.key
|
||||
}
|
||||
|
||||
resource "scaleway_iam_policy" "service_storage_policies" {
|
||||
|
|
@ -28,7 +28,7 @@ resource "scaleway_iam_policy" "service_storage_policies" {
|
|||
|
||||
resource "scaleway_object_bucket" "service_buckets" {
|
||||
for_each = local.services_s3
|
||||
name = "${each.value.name}.serguzim.me"
|
||||
name = "${each.key}.serguzim.me"
|
||||
lifecycle {
|
||||
prevent_destroy = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ variable "default_ssh_key" {
|
|||
|
||||
variable "services" {
|
||||
type = map(object({
|
||||
name = string
|
||||
host = string
|
||||
dns = optional(list(object({
|
||||
domain = string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue