-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
ID is not getting assigned to bucket_lifecycle_configuration #96
Comments
@anemiroffsumer I am sorry you are having trouble with our module. It appears you are new to Terraform and do not understand how modules work, or how our module repos are laid out. This code in your module "cloudtrail-s3" {
source = "cloudposse/cloudtrail-s3-bucket/aws//examples/complete"
version = "0.26.4"
region = "us-east-1"
} The The Our modules make use of our null-label module to handle generating IDs. This module gives you some flexibility about how you construct IDs, but the short story is that while all the inputs are optional, you have to prove some kind of input. For people who do not want to take full advantage, we recommend just setting Third, the provider "aws" {
region = "us-east-1"
}
module "cloudtrail-s3" {
source = "cloudposse/cloudtrail-s3-bucket/aws//examples/complete"
version = "0.26.4"
name = "cloudtrail-s3-bucket"
lifecycle_rule_enabled = var.lifecycle_rule_enabled
}
variable "lifecycle_rule_enabled" {
description = "Enable lifecycle events on this bucket"
type = bool
default = false
} I hope this answers your questions, and if so, please close this issue. If not, please reach out to us in the |
Describe the Bug
I have a main module that uses your module as a sub module , which is turn is passed to a template. There has been no alteration to your code.
When , I try to generate the plan I get 18 resources created:
Expected Behavior
All resources are able to be created in the plan.
I also expect when I set the
I would expect no lifecycle rules to be created and thus this error wouldn't even occur.
Steps to Reproduce
Module:
Main.tf
Click to reveal additional code
providers.tf
variables.tf
Screenshots
Environment
Windows VSCode
Latest version of your module
Additional Context
I tried both in terraform and opentofu same error.
The text was updated successfully, but these errors were encountered: