It's simple: I want to be able to support directly adding content to the TF script, or refer to a file with that data, but not both. When I try this, I get an error
content: ConflictsWith cannot be set with Required
Schema: map[string]*schema.Schema{
"content": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ConflictsWith: []string{"file"},
},
"file": {
Type: schema.TypeString,
Sensitive: true,
Required: true,
ConflictsWith: []string{"content"},
},
}
How can I make this terraform provider either accept a file, OR content, but not both? Obviously, if I set both to optional then neither is required.