Skip to content

Commit 87e3a87

Browse files
Create vpc-lattice-lambda-tf.json
1 parent b82648f commit 87e3a87

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"title": "Amazon VPC Lattice with AWS Lambda as weighted targets",
3+
"description": "This pattern demonstrates how to create a VPC Lattice which shifts traffic to different targets based on the weighted routing policy.",
4+
"language": "Python",
5+
"level": "200",
6+
"framework": "Terraform",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"VPC Lattice is to designed to help you easily and effectively discover, secure, connect, and monitor all of the services within it. Each component within VPC Lattice communicates unidirectionally or bi-directionally within the service network based on its association with the service network and its access settings. Access settings are comprised of authentication and authorization policies required for this communication.",
11+
"This pattern uses Lambda as weighted targets. VPC Lattice service shifts traffic based on the percentage of weight configured for target groups under VPC Lattice listener. User may update the weight for the targets according to their use case and requirements."
12+
]
13+
},
14+
"gitHub": {
15+
"template": {
16+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/vpc-lattice-lambda-tf",
17+
"templateURL": "serverless-patterns/vpc-lattice-lambda-tf",
18+
"projectFolder": "vpc-lattice-lambda-tf",
19+
"templateFile": "main.tf"
20+
}
21+
},
22+
"resources": {
23+
"bullets": [
24+
{
25+
"text": "VPC Lattice Service",
26+
"link": "https://docs.aws.amazon.com/vpc-lattice/latest/ug/what-is-vpc-lattice.html"
27+
},
28+
{
29+
"text": "Lambda",
30+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
31+
}
32+
]
33+
},
34+
"deploy": {
35+
"text": [
36+
"terraform init",
37+
"terraform apply"
38+
]
39+
},
40+
"testing": {
41+
"text": [
42+
"Invoke Demo Lambda function using CLI/Console and observe traffice shift from VPC Lattice service."
43+
]
44+
},
45+
"cleanup": {
46+
"text": [
47+
"<code>terraform destroy</code>",
48+
"terraform show"
49+
]
50+
},
51+
"authors": [
52+
{
53+
"name": "Makendran G",
54+
"image": "https://drive.google.com/file/d/1mUObnbmn52UWL-Zn39EpgpneiBNv3LCN/view?usp=sharing",
55+
"bio": "Cloud Support Engineer @ AWS",
56+
"linkedin": "makendran",
57+
"twitter": "@MakendranG"
58+
}
59+
],
60+
"patternArch": {
61+
"icon1": {
62+
"x": 20,
63+
"y": 50,
64+
"service": "vpc-lattice",
65+
"label": "Amazon VPC Lattice"
66+
},
67+
"icon2": {
68+
"x": 80,
69+
"y": 50,
70+
"service": "lambda",
71+
"label": "AWS Lambda"
72+
},
73+
"line1": {
74+
"from": "icon1",
75+
"to": "icon2"
76+
}
77+
}
78+
}

0 commit comments

Comments
 (0)