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

AppMesh timeout configuration support #14361

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
b5d8206
r/aws_appmesh_route: Add support for retry policies.
ewbankkit Jan 18, 2020
7ec8be0
r/aws_appmesh_route: Add support for retry policies.
ewbankkit Jan 18, 2020
9120d0a
r/aws_appmesh_route: Support gRPC and HTTP/2 services.
ewbankkit Jan 18, 2020
e64113e
r/aws_appmesh_route: Support gRPC and HTTP/2 services.
ewbankkit Jan 18, 2020
9b7b246
r/aws_appmesh_virtual_router: Test gRPC and HTTP/2 listener protocols.
ewbankkit Apr 16, 2020
f6901c2
r/aws_appmesh_route: Add gRPC route timeout configuration support.
ewbankkit Jul 27, 2020
3040745
r/aws_appmesh_route: Add TCP route timeout configuration support.
ewbankkit Jul 27, 2020
d7f9550
r/aws_appmesh_route: Add HTTP and HTTP2 route timeout configuration s…
ewbankkit Jul 28, 2020
9f3a7c5
r/aws_appmesh_route: Fix HTTP and HTTP2 route timeout acceptance tests.
ewbankkit Jul 29, 2020
e0c7d66
r/aws_appmesh_route: Refactor timeout serde functions.
ewbankkit Jul 29, 2020
b5ee366
r/aws_appmesh_virtual_node: Add timeout configuration support.
ewbankkit Jul 29, 2020
dbd6726
r/aws_appmesh_virtual_node: Add 'testAccAwsAppmeshVirtualNode_listene…
ewbankkit Jul 30, 2020
b790b3b
Fix compilation errors after rebase.
ewbankkit Sep 14, 2020
0367605
r/aws_appmesh_virtual_node: Use '_Values()' (#14601).
ewbankkit Sep 14, 2020
ab05641
r/aws_appmesh_virtual_node: Update resource testing and documentation…
ewbankkit Sep 14, 2020
d384377
Remove duplicate example in aws_appmesh_route documentation.
ewbankkit Sep 14, 2020
c14869d
Fixes after rebase.
ewbankkit Oct 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions aws/resource_aws_appmesh_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ func resourceAwsAppmeshRoute() *schema.Resource {
},

"method_name": {
Type: schema.TypeString,
Optional: true,
},

"prefix": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(0, 50),
Expand Down Expand Up @@ -257,6 +262,58 @@ func resourceAwsAppmeshRoute() *schema.Resource {
},
},
},

"timeout": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"idle": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(appmesh.DurationUnit_Values(), false),
},

"value": {
Type: schema.TypeInt,
Required: true,
},
},
},
},

"per_request": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(appmesh.DurationUnit_Values(), false),
},

"value": {
Type: schema.TypeInt,
Required: true,
},
},
},
},
},
},
},
},
},
},
Expand Down Expand Up @@ -318,6 +375,37 @@ func resourceAwsAppmeshRoute() *schema.Resource {
},
},
},

"timeout": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"idle": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(appmesh.DurationUnit_Values(), false),
},

"value": {
Type: schema.TypeInt,
Required: true,
},
},
},
},
},
},
},
},
},
},
Expand Down Expand Up @@ -546,6 +634,58 @@ func appmeshRouteHttpRouteSchema() *schema.Schema {
},
},
},

"timeout": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"idle": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(appmesh.DurationUnit_Values(), false),
},

"value": {
Type: schema.TypeInt,
Required: true,
},
},
},
},

"per_request": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(appmesh.DurationUnit_Values(), false),
},

"value": {
Type: schema.TypeInt,
Required: true,
},
},
},
},
},
},
},
},
},
}
Expand Down
Loading