Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/aws_lambda_function: Ignore the VPC configuration if it is empty #1341

Merged
merged 1 commit into from
Sep 6, 2018
Merged

resource/aws_lambda_function: Ignore the VPC configuration if it is empty #1341

merged 1 commit into from
Sep 6, 2018

Commits on Mar 1, 2018

  1. Ignore the VPC configuration for a Lambda function if it is empty

    I have a `lambda_function` module, which supports both EC2 classic and VPC. The problem I have, however, is that there is no way to specify a null configuration for `vpc_config`. This pull request changes the behavior so that the following Terraform configuration is //ignored//, instead of failing with an error (the current behavior):
    
    ```
    resource "aws_lambda_function" "test" {
      # ...
    
      vpc_config {
        security_group_ids = []
        subnet_ids         = []
      }
    }
    ```
    
    See also #1187 and #1190.
    Joshua Spence committed Mar 1, 2018
    Configuration menu
    Copy the full SHA
    b614fc6 View commit details
    Browse the repository at this point in the history