Open quixoticmonk opened 3 months ago
The Upstream API requires one of ExpireTime
or NoExpiry
to be set however both attributes are specified as optional in the schema.
I believe this schema should support oneOf so this could be handled better in the provider.
Opened an internal ticket with the service team on the optional fields.
@breathingdust , I believe we still need to handle oneOf
in the emitter.go to fully support this scenario?
I noticed that awscc_ssmcontacts_plan
uses oneOf and these attributes are marked as optional still:
https://github.com/hashicorp/terraform-provider-awscc/blob/31700f73fb64ce1f8ff61d4c6dc567f95eb5fb61/internal/service/cloudformation/schemas/AWS_SSMContacts_Plan.json#L120-L133
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
The configuration below are the inputs required per schema. The expiry based inputs are required based on the API response when a Terraform apply is performed.
Debug Output
Panic Output
Expected Behavior
The resource should be created without any errors.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References