Skip to content

Commit

Permalink
fix: README
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Dec 15, 2023
1 parent 722cc71 commit c2c87dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/aws-cdk-lib/aws-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ cluster.addAsgCapacityProvider(capacityProvider);
The following code retrieve the Amazon Resource Names (ARNs) of tasks that are a part of a specified ECS cluster.
It's useful when you want to grant permissions to a task to access other AWS resources.

```typescript
```ts
declare cluster: Cluster;
declare taskDefinition: TaskDefinition;
const taskARNs = cluster.arnForTasks('*'); // arn:aws:ecs:<region>:<regionId>:task/<clusterName>/*
Expand All @@ -203,7 +203,6 @@ taskDefinition.addToTaskRolePolicy(
)
```


### Bottlerocket

[Bottlerocket](https://aws.amazon.com/bottlerocket/) is a Linux-based open source operating system that is
Expand Down

0 comments on commit c2c87dd

Please sign in to comment.