Skip to content

Data Source: awsAppmeshVirtualGateway

Terraform data source for managing an AWS App Mesh Virtual Gateway.

Example Usage

Basic Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsAppmeshVirtualGateway.DataAwsAppmeshVirtualGateway(
  this,
  "example",
  {
    meshName: "mesh-gateway",
    name: "example-mesh",
  }
);
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsCallerIdentityCurrent =
  new aws.dataAwsCallerIdentity.DataAwsCallerIdentity(this, "current", {});
new aws.dataAwsAppmeshVirtualGateway.DataAwsAppmeshVirtualGateway(
  this,
  "test",
  {
    meshName: "example-mesh",
    meshOwner: dataAwsCallerIdentityCurrent.accountId,
    name: "example.mesh.local",
  }
);

Argument Reference

The following arguments are required:

  • name - (Required) Name of the virtual gateway.
  • meshName - (Required) Name of the service mesh in which the virtual gateway exists.
  • meshOwner - (Optional) AWS account ID of the service mesh's owner.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the virtual gateway.
  • createdDate - Creation date of the virtual gateway.
  • lastUpdatedDate - Last update date of the virtual gateway.
  • resourceOwner - Resource owner's AWS account ID.
  • spec - Virtual gateway specification. See the awsAppmeshVirtualGateway resource for details.
  • tags - Map of tags.