Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit d336934

Browse files
committed
fix(infra): hardcode the Task role of the ECS streamlit task
it turns out that the parameter "TaskRole" in the template is not being set by Copilot, so it does not resolve. Because of this, we need to hardcode the name of the Task role.
1 parent 8d6d5d7 commit d336934

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

infra/copilot/streamlit/addons/s3-marts-access-policy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ Parameters:
88
Name:
99
Type: String
1010
Description: Your workload's name.
11-
TaskRole:
12-
Type: String
13-
Description: The ARN of the task role.
1411

1512
Resources:
1613
S3martsBucketAccessPolicy:
@@ -19,7 +16,7 @@ Resources:
1916
PolicyName: s3martsBucketPolicy
2017
# Attach this policy to the TaskRole provided by Copilot.
2118
Roles:
22-
- !Ref TaskRole
19+
- "pems-dev-streamlit-TaskRole-5Zuwi15thMkN"
2320
PolicyDocument:
2421
Version: "2012-10-17"
2522
Statement:

0 commit comments

Comments
 (0)