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

Propagate tags #212

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infrastructure/aws/run-task
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ echo "Running one-off task on $CLUSTER cluster with command: $2"
NETCONFIG=$(aws ecs describe-services --cluster $CLUSTER --services $SERVICE_WEB --output json | jq '.services[0].networkConfiguration' | jq '.awsvpcConfiguration.assignPublicIp = "DISABLED"')
OVERRIDES=$(printf '{"containerOverrides":[{"name":"%s","command":["%s"]}]}' "$TASK" $(join_by '","' $2))

aws ecs run-task --overrides "$OVERRIDES" --started-by "one-off task CLI" --group "one-off" --launch-type "FARGATE" --network-configuration "$NETCONFIG" --task-definition $TASK_WEB --cluster $CLUSTER --output json
aws ecs run-task --overrides "$OVERRIDES" --started-by "one-off task CLI" --group "one-off" --launch-type "FARGATE" --network-configuration "$NETCONFIG" --tags '[{"key": "team", "value": "searchneu"}]' --propagate-tags "TASK_DEFINITION" --task-definition $TASK_WEB --cluster $CLUSTER --output json
2 changes: 1 addition & 1 deletion infrastructure/aws/scrape
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ echo "Scraping on $CLUSTER cluster"
# Get the network config from the web app service
NETCONFIG=$(aws ecs describe-services --cluster $CLUSTER --services $SERVICE_WEB --output json | jq '.services[0].networkConfiguration' | jq '.awsvpcConfiguration.assignPublicIp = "ENABLED"')

aws ecs run-task --started-by "CLI scrape" --launch-type "FARGATE" --network-configuration "$NETCONFIG" --task-definition $TASK --cluster $CLUSTER --output json
aws ecs run-task --started-by "CLI scrape" --launch-type "FARGATE" --network-configuration "$NETCONFIG" --tags '[{"key": "team", "value": "searchneu"}]' --propagate-tags "TASK_DEFINITION" --task-definition $TASK --cluster $CLUSTER --output json
Loading