File tree Expand file tree Collapse file tree 3 files changed +20
-14
lines changed
examples/resources/altinitycloud_env_aws Expand file tree Collapse file tree 3 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,11 @@ data "altinitycloud_env_aws_status" "this" {
124
124
wait_for_applied_spec_revision = altinitycloud_env_aws.this.spec_revision
125
125
}
126
126
127
+
127
128
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint.html
128
- resource "aws_vpc_endpoint" "this" {
129
- service_name = data.altinitycloud_env_aws_status.this.load_balancers.internal.endpoint_service_name
130
- vpc_endpoint_type = "Interface"
131
- vpc_id = var.vpc_id
132
- subnet_ids = var.subnet_ids
133
- security_group_ids = var.security_group_ids
134
- private_dns_enabled = true
129
+ # Use this value as `service_name` in the `aws_vpc_endpoint` resource to create the VPC Endpoint
130
+ output "vpc_endpoint_service_name" {
131
+ value = data.altinitycloud_env_aws_status.this.load_balancers.internal.endpoint_service_name
135
132
}
136
133
```
137
134
@@ -196,6 +193,12 @@ data "altinitycloud_env_aws_status" "this" {
196
193
name = altinitycloud_env_aws.this.name
197
194
wait_for_applied_spec_revision = altinitycloud_env_aws.this.spec_revision
198
195
}
196
+
197
+ # https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection_accepter
198
+ # Use this value as `vpc_peering_connection_id` in the `aws_vpc_peering_connection_accepter` resource to accept the peering connection.
199
+ output "peering_connection_id" {
200
+ value = data.altinitycloud_env_aws_status.this.peering_connections[1].id
201
+ }
199
202
```
200
203
201
204
<!-- schema generated by tfplugindocs -->
Original file line number Diff line number Diff line change @@ -57,3 +57,9 @@ data "altinitycloud_env_aws_status" "this" {
57
57
name = altinitycloud_env_aws. this . name
58
58
wait_for_applied_spec_revision = altinitycloud_env_aws. this . spec_revision
59
59
}
60
+
61
+ # https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection_accepter
62
+ # Use this value as `vpc_peering_connection_id` in the `aws_vpc_peering_connection_accepter` resource to accept the peering connection.
63
+ output "peering_connection_id" {
64
+ value = data. altinitycloud_env_aws_status . this . peering_connections [1 ]. id
65
+ }
Original file line number Diff line number Diff line change @@ -54,12 +54,9 @@ data "altinitycloud_env_aws_status" "this" {
54
54
wait_for_applied_spec_revision = altinitycloud_env_aws. this . spec_revision
55
55
}
56
56
57
+
57
58
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint.html
58
- resource "aws_vpc_endpoint" "this" {
59
- service_name = data. altinitycloud_env_aws_status . this . load_balancers . internal . endpoint_service_name
60
- vpc_endpoint_type = " Interface"
61
- vpc_id = var. vpc_id
62
- subnet_ids = var. subnet_ids
63
- security_group_ids = var. security_group_ids
64
- private_dns_enabled = true
59
+ # Use this value as `service_name` in the `aws_vpc_endpoint` resource to create the VPC Endpoint
60
+ output "vpc_endpoint_service_name" {
61
+ value = data. altinitycloud_env_aws_status . this . load_balancers . internal . endpoint_service_name
65
62
}
You can’t perform that action at this time.
0 commit comments