resource/lambda_function: Enhance plan-time validation #16515
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/lambda
Issues and PRs that pertain to the lambda service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Description
As the Lambda function resource has been extended and new plan-time validation options have been added to the Terraform Plugin SDK we have some validation gaps that can now be closed.
ConflictsWith
ons3_bucket
,s3_key
,s3_object_version
,image_uri
, andfilename
withExactlyOneOf
and addRequiredWith: []string{"s3_key"}
ons3_bucket
ConflictsWith: []string{"filename", "s3_bucket", "s3_key", "s3_object_version"}
toimage_config
schema.Resource
fieldCustomizeDiff
to ensure that the value ofpackage_type
and the values ofs3_bucket
,s3_key
,s3_object_version
,image_uri
,image_config
, andfilename
are appropriateThis may not be an exhaustive list of validations.
Affected Resource
References
The text was updated successfully, but these errors were encountered: