Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Mesh Envoy Authorization Policies #657

Open
TheRealMkadmi opened this issue Jan 17, 2024 · 0 comments
Open

App Mesh Envoy Authorization Policies #657

TheRealMkadmi opened this issue Jan 17, 2024 · 0 comments

Comments

@TheRealMkadmi
Copy link

TheRealMkadmi commented Jan 17, 2024

Description

When deploying a service using the AppMesh extension, the Envoy container logs the following error:

gRPC config stream closed: 7

This issue is similar to the one documented in aws/aws-app-mesh-roadmap#80.

Steps to Reproduce

  1. Deploy a service with the AppMesh extension.
  2. Observe the Envoy container logs.

Expected Behavior

The Envoy container should not log any gRPC config stream closed: 7 errors.

Observed Behavior

The Envoy container logs an error: gRPC config stream closed: 7.

Proposed Solution

The issue can be resolved by adding the following lines in the useTaskDefinition method:

public useTaskDefinition(taskDefinition: ecs.TaskDefinition): void {
    super.useTaskDefinition(taskDefinition);

    // Reference: https://github.com/aws/aws-app-mesh-roadmap/issues/80
    taskDefinition.taskRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('CloudWatchFullAccess'));
    taskDefinition.taskRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AWSXRayDaemonWriteAccess'));
    taskDefinition.taskRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AWSAppMeshEnvoyAccess'));
}

This addition grants the necessary permissions to the task role, resolving the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant