You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,18 @@ Previously, VPC endpoints were configured as standalone resources with their own
13
13
1. Move the endpoint resource from the main module to the sub-module. The example state move below is valid for all endpoints you might have configured (reference [`complete-vpc`](https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/examples/complete-vpc) example for reference), where `ssmmessages` should be updated for and state move performed for each endpoint configured:
14
14
15
15
```
16
-
tf state mv 'module.vpc.aws_vpc_endpoint.ssm[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ssm"]'
17
-
tf state mv 'module.vpc.aws_vpc_endpoint.ssmmessages[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ssmmessages"]'
18
-
tf state mv 'module.vpc.aws_vpc_endpoint.ec2[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ec2"]'
16
+
terraform state mv 'module.vpc.aws_vpc_endpoint.ssm[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ssm"]'
17
+
terraform state mv 'module.vpc.aws_vpc_endpoint.ssmmessages[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ssmmessages"]'
18
+
terraform state mv 'module.vpc.aws_vpc_endpoint.ec2[0]' 'module.vpc_endpoints.aws_vpc_endpoint.this["ec2"]'
19
19
...
20
20
```
21
21
22
22
2. Remove the gateway endpoint route table association separate resources. The route table associations are now managed in the VPC endpoint resource itself via the map of maps provided to the VPC endpoint sub-module. Perform the necessary removals for each route table association and for S3 and/or DynamoDB depending on your configuration:
23
23
24
24
```
25
-
tf state rm 'module.vpc.aws_vpc_endpoint_route_table_association.intra_dynamodb[0]'
26
-
tf state rm 'module.vpc.aws_vpc_endpoint_route_table_association.private_dynamodb[0]'
27
-
tf state rm 'module.vpc.aws_vpc_endpoint_route_table_association.public_dynamodb[0]'
25
+
terraform state rm 'module.vpc.aws_vpc_endpoint_route_table_association.intra_dynamodb[0]'
26
+
terraform state rm 'module.vpc.aws_vpc_endpoint_route_table_association.private_dynamodb[0]'
27
+
terraform state rm 'module.vpc.aws_vpc_endpoint_route_table_association.public_dynamodb[0]'
28
28
...
29
29
```
30
30
@@ -43,14 +43,10 @@ tf state rm 'module.vpc.aws_vpc_endpoint_route_table_association.public_dynamodb
43
43
44
44
See the [VPC endpoint sub-module](modules/vpc-endpoints) for the more information on the variables to utilize for VPC endpoints
45
45
46
-
- None
47
-
48
46
3. Removed outputs:
49
47
50
48
-`vpc_endpoint_*`
51
49
52
50
4. Renamed outputs:
53
51
54
-
VPC endpoint outputs are now provided via the VPC endpoint sub-module and can be accessed via lookups. See [`complete-vpc`](https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/examples/complete-vpc) for further examples of how to access VPC endpoint attributes from outputs.
55
-
56
-
- None
52
+
VPC endpoint outputs are now provided via the VPC endpoint sub-module and can be accessed via lookups. See [`complete-vpc`](https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/examples/complete-vpc) for further examples of how to access VPC endpoint attributes from outputs
| <aname="input_create"></a> [create](#input\_create)| Determines whether resources will be created |`bool`|`true`| no |
89
84
| <aname="input_endpoints"></a> [endpoints](#input\_endpoints)| A map of interface and/or gateway endpoints containing their properties and configurations |`any`|`{}`| no |
90
85
| <aname="input_security_group_ids"></a> [security\_group\_ids](#input\_security\_group\_ids)| Default security group IDs to associate with the VPC endpoints |`list(string)`|`[]`| no |
91
86
| <aname="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids)| Default subnets IDs to associate with the VPC endpoints |`list(string)`|`[]`| no |
92
87
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to use on all resources |`map(string)`|`{}`| no |
93
88
| <aname="input_timeouts"></a> [timeouts](#input\_timeouts)| Define maximum timeout for creating, updating, and deleting VPC endpoint resources |`map(string)`|`{}`| no |
94
-
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| The ID of the VPC in which the endpoint will be used |`string`|n/a|yes|
89
+
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| The ID of the VPC in which the endpoint will be used |`string`|`null`|no|
0 commit comments