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" {
124124 wait_for_applied_spec_revision = altinitycloud_env_aws.this.spec_revision
125125}
126126
127+
127128# 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
135132}
136133```
137134
@@ -196,6 +193,12 @@ data "altinitycloud_env_aws_status" "this" {
196193 name = altinitycloud_env_aws.this.name
197194 wait_for_applied_spec_revision = altinitycloud_env_aws.this.spec_revision
198195}
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+ }
199202```
200203
201204<!-- schema generated by tfplugindocs -->
Original file line number Diff line number Diff line change @@ -57,3 +57,9 @@ data "altinitycloud_env_aws_status" "this" {
5757 name = altinitycloud_env_aws. this . name
5858 wait_for_applied_spec_revision = altinitycloud_env_aws. this . spec_revision
5959}
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" {
5454 wait_for_applied_spec_revision = altinitycloud_env_aws. this . spec_revision
5555}
5656
57+
5758# 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
6562}
You can’t perform that action at this time.
0 commit comments