-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from byu-oit/enh/multipleCollections
Enh/multiple collections
- Loading branch information
Showing
12 changed files
with
297 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
provider "aws" { | ||
version = "~> 3.0" | ||
region = "us-west-2" | ||
} | ||
|
||
variable "postman_api_key" { | ||
type = string | ||
} | ||
|
||
data aws_ssm_parameter role_permissions_boundary_arn { | ||
name = "/acs/iam/iamRolePermissionBoundary" | ||
} | ||
data "aws_ssm_parameter" "vpc_name" { | ||
name = "/acs/vpc/vpc-name" | ||
} | ||
data "aws_ssm_parameter" "vpc_id" { | ||
name = "/acs/vpc/${data.aws_ssm_parameter.vpc_name.value}" | ||
} | ||
data "aws_ssm_parameter" "subnet_id" { | ||
name = "/acs/vpc/${data.aws_ssm_parameter.vpc_name.value}-private-a" | ||
} | ||
|
||
module "postman_test_lambda" { | ||
source = "../../" | ||
app_name = "advanced-example" | ||
postman_collections = [ | ||
{ | ||
collection = "1117094-d4bd5a5f-c37c-4fe9-8723-3c3e8b1e2015" # terraform-aws-postman-test-lambda-example collection from postman TF Modules and HW Examples workspace | ||
environment = "1117094-95627910-aeb0-4aed-b959-7e2034e2f6ce" # terraform-aws-postman-test-lambda-env environment from postman TF Modules and HW Examples workspace | ||
}, | ||
{ | ||
collection = "terraform-aws-postman-test-lambda-example.postman_collection.json" | ||
environment = "terraform-aws-postman-test-lambda-env.postman_environment.json" | ||
} | ||
] | ||
postman_api_key = var.postman_api_key | ||
role_permissions_boundary_arn = data.aws_ssm_parameter.role_permissions_boundary_arn.value | ||
vpc_id = data.aws_ssm_parameter.vpc_id.value | ||
vpc_subnet_ids = [data.aws_ssm_parameter.subnet_id.value] | ||
memory_size = 528 | ||
timeout = 120 | ||
} |
14 changes: 14 additions & 0 deletions
14
examples/advanced/terraform-aws-postman-test-lambda-env.postman_environment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"id": "49389826-c016-4ce5-b91d-5d70df654292", | ||
"name": "terraform-aws-postman-test-lambda-env", | ||
"values": [ | ||
{ | ||
"key": "foo", | ||
"value": "bar", | ||
"enabled": true | ||
} | ||
], | ||
"_postman_variable_scope": "environment", | ||
"_postman_exported_at": "2020-07-17T18:36:40.432Z", | ||
"_postman_exported_using": "Postman/7.28.0" | ||
} |
65 changes: 65 additions & 0 deletions
65
examples/advanced/terraform-aws-postman-test-lambda-example.postman_collection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "f49e7563-d035-4164-baa9-0e77af3c6221", | ||
"name": "terraform-aws-postman-test-lambda-example", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "24c58423-6eb9-4ce5-9d28-b579702c91ef", | ||
"exec": [ | ||
"pm.test(\"Status test\", function () {\r", | ||
" pm.response.to.have.status(200);\r", | ||
"});" | ||
], | ||
"type": "text/javascript" | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "https://postman-echo.com/get", | ||
"protocol": "https", | ||
"host": [ | ||
"postman-echo", | ||
"com" | ||
], | ||
"path": [ | ||
"get" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"id": "9b9fbc0f-a0c8-4154-93bb-2af32f6e4e66", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"id": "67ead005-33ee-4e55-8469-2d94edbf5072", | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": {} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.