Terraform support for Alexa Smart Home Lambda trigger #2248
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/lambda
Issues and PRs that pertain to the lambda service.
Milestone
Terraform version 0.10.7
Lambdas can be invoked using an Alexa Smart Home skill. The function policy to configure this trigger looks like:
At the moment, the
aws_lambda_permission
resource does not support setting thisCondition
on the permission.I think we might need to rethink how the
aws_lambda_permission
is defined, as currently it tries to construct this entire policy using specific input args. However each time Amazon adds a new trigger type, these args need to be expanded (e.g. see also #1977). It would be good to have an escape hatch that allows the policy to be given manually, like:So that any custom policy, or a policy for a new type of trigger which terraform has no understanding of, can be used.
The text was updated successfully, but these errors were encountered: