Current Terraform Version
Terraform v0.11.11
+ provider.aws v2.16.0
+ provider.local v1.2.2
+ provider.null v2.1.2
Use-cases
We have use case in AWS lambda where we either want our user to provide the artifactory path for lambda code or his own code. There are 2 variables used as download artifactory needs local-exec mechanism where are local file needs archive zip way.
Right now, user can provide both options. We want options in variable to mar another variable as mutually exclusive
Attempted Solutions
N/A
Proposal
variable "local_file_content" { description = "If you have file present on owned tf, Mutually exclusive with download_location" type = "string" default = "" exclusive= ["download_location"] }
References
NA
Current Terraform Version
Use-cases
We have use case in AWS lambda where we either want our user to provide the artifactory path for lambda code or his own code. There are 2 variables used as download artifactory needs local-exec mechanism where are local file needs archive zip way.
Right now, user can provide both options. We want options in variable to mar another variable as mutually exclusive
Attempted Solutions
N/A
Proposal
variable "local_file_content" { description = "If you have file present on owned tf, Mutually exclusive with download_location" type = "string" default = "" exclusive= ["download_location"] }References
NA