diff --git a/tests/integration/local/start_api/test_start_api_with_terraform_application.py b/tests/integration/local/start_api/test_start_api_with_terraform_application.py index e8ab21d01d..be98e8e76f 100644 --- a/tests/integration/local/start_api/test_start_api_with_terraform_application.py +++ b/tests/integration/local/start_api/test_start_api_with_terraform_application.py @@ -95,9 +95,20 @@ def tearDownClass(cls) -> None: "Skip Terraform test cases unless running in CI", ) @pytest.mark.flaky(reruns=3) +@parameterized_class( + [ + { + "terraform_application": "terraform-v1-api-simple", + }, + { + "terraform_application": "terraform-v2-api-simple", + }, + { + "terraform_application": "terraform-v2-api-quick-create", + }, + ] +) class TestStartApiTerraformApplication(TerraformStartApiIntegrationBase): - terraform_application = "terraform-v1-api-simple" - def setUp(self): self.url = "http://127.0.0.1:{}".format(self.port) diff --git a/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip b/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip new file mode 100644 index 0000000000..4daa6de02d Binary files /dev/null and b/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/HelloWorldFunction.zip differ diff --git a/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/main.tf b/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/main.tf new file mode 100644 index 0000000000..9c0bba204d --- /dev/null +++ b/tests/integration/testdata/start_api/terraform/terraform-v2-api-quick-create/main.tf @@ -0,0 +1,49 @@ +provider "aws" { +} + +resource "aws_iam_role" "iam_for_lambda" { + name = "iam_for_lambda" + + assume_role_policy = <