Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bucket destroying after adding default value in var.tf #304

Closed
kotresh-cera opened this issue Mar 18, 2024 · 2 comments
Closed

bucket destroying after adding default value in var.tf #304

kotresh-cera opened this issue Mar 18, 2024 · 2 comments
Labels

Comments

@kotresh-cera
Copy link

Hi Team.

i am trying to run terraform init without -var-file to avoid that i need to add default value in var.df, after adding default valus it deleting all resources which is created previously please suggest.

variable "buckets_list" {
description = "The buckets to be created within the specified project."
type = list(
object(
{
name = string,
location = string,
uniform_bucket_level_access = string,
labels = map(string),
lifecycle_rules = list(
object(
{
action_type = string,
action_storage_class = string,
condition_age = string,
condition_created_before = string
}
)
),
permissions = list(
object(
{
role = string,
members = list(string)
}
)
)
}
)
)
default = []
}

@kotresh-cera
Copy link
Author

getting erros along with destroy
because key ["bucket name"] is not in for_each map

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label May 17, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant