Skip to content

Resource: awsAppmeshMesh

Provides an AWS App Mesh service mesh resource.

Example Usage

Basic

/*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.appmeshMesh.AppmeshMesh(this, "simple", {
  name: "simpleapp",
});

Egress Filter

/*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.appmeshMesh.AppmeshMesh(this, "simple", {
  name: "simpleapp",
  spec: {
    egressFilter: {
      type: "ALLOW_ALL",
    },
  },
});

Argument Reference

The following arguments are supported:

  • name - (Required) Name to use for the service mesh. Must be between 1 and 255 characters in length.
  • spec - (Optional) Service mesh specification to apply.
  • tags - (Optional) Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

The spec object supports the following:

  • egressFilter- (Optional) Egress filter rules for the service mesh.

The egressFilter object supports the following:

  • type - (Optional) Egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

Attributes Reference

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

  • id - ID of the service mesh.
  • arn - ARN of the service mesh.
  • createdDate - Creation date of the service mesh.
  • lastUpdatedDate - Last update date of the service mesh.
  • meshOwner - AWS account ID of the service mesh's owner.
  • resourceOwner - Resource owner's AWS account ID.
  • tagsAll - Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

App Mesh service meshes can be imported using the name, e.g.,

$ terraform import aws_appmesh_mesh.simple simpleapp